Preserve newlines when parsing xml
I'm using the SAX xml parser to parse some xml data which contains newlines. When using Attributes#getValue, the newline data is lost. How can keep the newlines? ...
I'm using the SAX xml parser to parse some xml data which contains newlines. When using Attributes#getValue, the newline data is lost. How can keep the newlines? ...
Hello, When I do a ListActivity my ListView works correctly : I can scroll by dragging with the TouchScreen or with the Mouse Wheel. However when I incorporate a ListView in a layout (with buttons, textview, linearLayouts, ect... ) I can't scroll it by dragging, I can just scroll with the mouse wheel. How can I enable the "touch" scroll...
I've been working in Eclipse programming for Android for about a year now. I suddenly have an enormous problem. Here is the error: "Content Assist" did not complete normally. Please see the log for more information. java.lang.NullPointerException I go to Help>About Eclipse SDK>Installation Details>Configuration>View Error Lo...
Hi, I am somewhat of a new android developer and have a question regarding changing the background dynamically at runtime. What I want to do is set a background color in a LinearLayout Tag, and later change that background color in my activity class. This code below is not working. Am I missing something or is this the wrong approach...
I'm writing a Android app which uses WebViews for some of it's content. In at least Android 2.1 and 2.2, it appears the web-view has a feature that turns text that looks like addresses into clickable links of the form "geo:...". I've also something similar with phone numbers. However, in many cases the text is not actually an address...
Hi all, How can i check my application works with 3G. since in my app I need to connect to a URL to get data. Thanks ...
I have an onActivityResult returning from an mediastore image selection which I can get a URI for an image using the following: Uri selectedImage = data.getData(); Converting this to a string gives this: content://media/external/images/media/47 Or to a path gives: /external/images/media/47 However I can't seem to find a wa...
Is it possible to start an Activity in the background? I need such an Activity that can operate in the background and spawn other Activities as needed in response to user commands issued to my Home Screen widget. ...
For example if a WebView loaded "test.html?PageId=10", how would I get that PageId is equal to 10? ...
I have been trying to optimize my single thread app which loads a bunch of tiles that makeup a large bitmap. The app was becoming very sluggish when it would load the new tiles into system memory. Im now looking trying to use Async Tasks for this purpose. The app detects which tile is in the top left in a method called by onDraw, creates...
When I run my application on a physical phone from within Eclipse, my Google MapView works perfectly. If export the app to an apk file and install it to the same phone from the command line with adb then the MapView comes up but shows only the Google logo and grid - no map tiles appear. I'm using a debug application key and a GMaps API k...
I want to record and then upload that on server using camera but without any notification. Is their any way to start camera programmatically in video mode with screen remain off?? ...
I have a 100 meg zip file that I need to download when the app first starts. It needs to unzip to the SD card (400 meg). I'd rather not have to have it touch the phone's storage as many phones won't have 400 meg free on the phone's storage. Can this be done (any one have an example?) Thanks, ian ...
Hi all, I encounter an issue of INSTALL_FAILED_DUPLICATE_PACKAGE, when trying to deploy an apk into an emulator. The following is the console display message: [XXX] Installation error: INSTALL_FAILED_DUPLICATE_PACKAGE [XXX] Please check logcat output for more details. [XXX] Launch canceled! However, when I check with the logcat, I s...
so im trying to set up a setOnClickListener for my ListView but its causing a crash in my program for some reason when i try.. im quite new to programming so when it comes to troubleshooting i cant really do anything sadly :( my code is below so any ideas on what could be wrong would be extremely helpful public class HomePageActivity ex...
Right now I have an AlphaAnimation that fades out, the problem is that my fade out animation run on something already faded out, causes it to appear and fade out, when I'd rather it simply stay faded out. Is there a way to do this? ...
I am trying to open a Resource by passing the result of context.getResources().getString(R.drawable.myimage) to another class that is not an activity. context.getResources().getString(R.drawable.myimage) returns res/drawable-mdpi/myimage.png However, when I try and open this file, it throws a FileNotFoundException. What is the proper ...
this method can update photo to my android emulator but could not sync to gmail contacts, I think this method is not correct, who can tell me how to do that? I think android photo could not be sync to gmail contact, is this thinking correct? this is my code: Bitmap photo = getMyPhoto(); ArrayList<ContentProviderOperation> ops = new Ar...
Hi folks, i am developing phone-gap app in android. In app I am calling a servlet returning JSON. Under app code I am calling following method through javascript in index.html JQuery.getJSON(servleturl,function(data){alert(data)}); When running in emulator the alert is getting displayed, but data is always null. However if i launch t...
Hello everyone, I wanna try an example of storing images into sdcard and displaying out to see if it works. However, my images can't be shown. Please help me check my problem. public class SDCard_Image { //read drawable files Resources res = getResources(); Drawable drawable = res.getDrawable(R.drawable.mood_1); //insert into sd car...