Hey y'all,
So I ran into a problem today while working on my Android program. I have a class that turns that an XML string into a Java object (third party) and it works fine in as a regular java project but on Android I get this weird error:
06-21 22:44:26.402: DEBUG/App(259): java.lang.ClassNotFoundException: com.package.mycode.Class ...
package one.two;
import java.util.ArrayList;
import java.util.List;
import android.app.ListActivity;
import android.database.Cursor;
import android.inputmethodservice.Keyboard.Row;
import android.os.Bundle;
import android.view.Menu;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
pu...
hi , i have an app which reads out the messages as it is received. The pgm seems to be working fine when i launch it or even when i press the back button on the emulator, however when i start another app in the same emulator and then if a message is received then i can see the message as Toast but am unable to receive any sound, so how d...
I want to develop an app targeting Android version 2.1 (6) and above so I have started the SDK and AVD Manager. In Available packages, for version 2.1 it shows Update-1 (version code 7) but not versions 5 and 6, which I guess are superseded.
If I install that version and compile against it, does it mean that handsets on version 6 cannot...
I am using service class to play the mp3 file using media player object on Android platform, problem is, i am not able to handle the alarm interruption.
When any previous set alarm clock reach to it's alarm time it starts to play in parallel with mp3.I want that mp3 should become paused and after alarm it again start to play,same thing s...
How do I replace the following lines of code with an Asynctask ?
How do you "get back" the Bitmap from the Asynctask ? Thank you.
ImageView mChart = (ImageView) findViewById(R.id.Chart);
String URL = "http://www...anything ...";
mChart.setImageBitmap(download_Image(URL));
public static Bitmap download_Image(String url) {
//-...
public class List_View extends ListActivity {
private TextView toptext;
private TextView bottomtext;
DBAdapter db = new DBAdapter(this);
public void onCreate(Bundle icicle)
{
super.onCreate(icicle);
setContentView(R.layout.list);
getData();
toptext = (TextView) findViewById(R.id.to...
When using
file.createNewFile();
I get the following exception
java.io.IOException: Parent directory of file does not exist: /.../pkg/databases/mydb
I am wondering is there a createNewFile that creates the missing parent directories?
...
I want to display a progress bar/wheel, when doing some process, for instance, on a button click I want the screen to freeze and show a progress wheel , till the pressed action for example saving data in database is completed.
Is it possible, please provide code if applicable.
...
I have a webview with some content.
I want to know the ratio of Pixel when I use the built-in
Zoom control means the amount of pixel Increase and Decrease when the Zoom Buttons are pressed???
...
I am using gallery widget i want to change selected image.
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
if(lastSeen != null){
lastSeen.setImageResource(unselected image);
}
(ImageView(view)).setImageResource(selected image)
lastSeen = view;
}
When i run the...
Hi ,
iam facing problem in creating the .apk file using the ant script . The generated .apk named as _unaligned.apk instead of .apk and on installing the _unaligned.apk file to the device i get force-close showing the java.lang.VerifyError exaception , but the same apk generated using IDE works fine . i am struck on this for a long tim...
i have a launcher activity which shows up the blank screen at the start up..i want to show up some animation using an animatd.gif...i initialize my layouts viz home etc when the oncreate of launcher is called, but how do i add some animated image until my first layout is shown..i also doubt whether android supports animated gifs or i hav...
Hi, I'd like to know how to disable the highlighting effect when the user clicks the notification in the status bar and furthermore, I'd like to allow the user to interact directly with the RemoteView I have placed in the notification by means of button pressing.
I know this can be done as HTC's Sense has an ongoing notification while a...
Ive made mis-leading topic in my last question, so i open this new question to clear what I realy want. sorry for the inconvenience.
I wanna run two system(Android) activities one after another in specific order from my main activity.
now as we know, startActivity is an asynchronous operation, so i cant keep on a specific order.
so i ...
A friend got an error on his HTC Desire trying to install an app. He uses eclipse for installing.
The error from LogCat:
E/PackageInstallationReceiver( 244): Remove /data/local/tmp/my.package.apk Fail! W/System.err( 244): java.io.IOException: Error running exec().
I used adb shell to see whats inside this tmp folder. And there was no...
Hi! I have this code:
try{
File f = new File("/data/cizip.zip");
if(f.exists()){
ZipFile zf = new ZipFile(f); //this always throws an error
/*some of my codes here*/
}
catch(IOException e){
AlertDialog.Builder abd = new AlertDialog.Builder(this);
abd.setMessage(e.getMessage());
abd.show();
}
the line ZipFile zf = new Zi...
I'm trying to find a way to check to see if a current EGLContext exists and is ready to use on Android. By specification, I've tried using
((EGL10)EGLContext.getEGL()).eglGetCurrentContext()
and then comparing it to EGL10.EGL_NO_CONTEXT (tried .equals() and != ). However, even though through debugging it 'seems' that it is returning an...
(Question also posted here: http://www.google.com/support/forum/p/Android+Market/thread?tid=68dc1f694537c7dc&hl=en )
http://developer.android.com/guide/publishing/publishing.html
recommends searching for apps by Developer Name using the URL:
market://search?q=pub:
I can't get this to work for two word names. For instance, if I want...
Hi everyone. Can you please tell me how can I make a simple connection with remote db in android app? Basically, I want to save users names, emails etc. in a remote database and retrieve them later on demand. When answering - could you provide me some sample code so I can figure it out myself please? Thanks in advance!
...