android

Different widgets one configuration activity android

Hi all, Some apps clog up the select widget activity by adding different configuration activities. like the screenshot here: Multi Configuration activities Is there a way to have one icon in the select widget (like Mini Info) and one configuration activity and set different layouts for widgets there? Thank you ...

Export / Save Picture of Map + Overlays in Android

Is there a way (after the mapview has been created and overlays added) to save a picture of the mapview? I am writing a GPS app in which the customer needs to produce a report of where the user has been. The need to overlay blips to show the route traveled and then export the map and route to be saved as an image. ...

adjustsFontSizeToFitWidth for Android

The iPhone has the method adjustsFontSizeToFitWidth for the UILabel. Is there a way to automatically adjust the width of the text to match the width TextView or Button in android? ...

ViewRoot.draw(boolean) ERROR!

hi can someone help me with this?? when i debug i got this error? how do i solve it?? Thanks in advance Where Am I [Android Application] DalvikVM[localhost:8639] Thread [<1> main] (Suspended (exception NullPointerException)) ViewRoot.draw(boolean) line: 1431 ViewRoot.performTraversals() line: 1163 ...

Changing drawableBottom with java

Is it possible to change a drawable on a button via java? Example; I have a button like this. <Button style="@style/Buttons" android:id="@+id/butFavTeam" android:drawableBottom="@drawable/venue"/> I want to change the current drawableBottom image with another from my drawable directory. ...

How to route audio for incoming SCO connection?

I'm developing a headset/handsfree app and run it in a demoboard.After connecting to a phone successfully and when the app is reading data from the phone,I call or play music with the phone.The phone doesn't make sounds,and so does the demoboard.Now the system log shows "Rejecting incoming SCO connection",why?How to route audio for incom...

MapActivity error , force close

I create new MapActivity class ClassProba. From main Activity I want to show MapActivity, on bitton click event I put this code: Intent myIntent = new Intent(this, com.art.mode.MapProba.class); startActivity(myIntent); But I receive Force close error. In my xml file I use this code: ... LinearLayout xmlns:androi...

Android MediaStore.Images.Media.getBitmap returns error

ContentResolver cr = getContentResolver(); Uri pic = Uri.parse("content://media/external/images/media/3"); Bitmap bm = Media.getBitmap(cr,pic); The above code is written in onCreate method of my Activity class. It throws the following error: 08-30 12:27:22.352: WARN/System.err(245): java.io.FileNotFoundException: No content provider: [...

How to disable Chinese Input Method when sign in or sign up?

There is "android:inputMethod" atrr in EditText, but I can't find any way to catch it. ...

Animated gif in android

Hi! i want to use animated gif in android. hows this possible? is it compatible in 1.6,2.0? ...

Android 2.2 app on HTC Hero running Android 1.5

I have an application developed using Android 2.2 SDK. Can i port it on HTC Hero running Android 1.5? Thanks Dheepak ...

Text alignment line by line in android Text-view using Gravity..

Can we align our text line by line(I mean whatever the text we have selected that should be aligned instead of the whole text) in android text-view dynamically!! Regards, vani. ...

Send HTTP request through 3G network without using WiFi?

First of all, Android phone is connected both 3G network and wifi. At this time I'd like to send http request through 3G network without using wifi. How can I do it? Possible Duplicate: http://stackoverflow.com/questions/3605643/id-like-to-send-http-request-through-3g-network-when-wifi-is-connected-in-androi ...

How to display "More" list item in ListView?

I want to display a list item that says "More" at the end of my ListView. Clicking on this list-item will perform some action. How can I create this "more" list item? ...

ListActivity registers correct position in onClick, but calls to its ListAdapter's getView() always count from 0

I have a ListActivity whose ArrayAdapter-subclass creates a (droid-fu) WebImageView. The problem is that whenever the list grows longer than can be displayed on a single page, whatever it is that calls getView() always starts from 0 and counts to 4 or 5 (depending on whether or not partial rows are visible), even when it's actually displ...

how to implement the push notification in android

I am doing lots of Research on push notification but i don't understand how to implement in android 1.6. I want to ask what is the requirements for this? which type of information we get from the server end either in tags form or just information? what will be the input or output regarding this.Which input i give to the server and which ...

Can i set the GLSurface view(Animation) as my backgroud.?

I'm developing a media player application in Android. I've an animation(Open Gl Surface View) which should run in background to my Activity when song is being played. Like the animation which we see when we are playing Windows Media Player. How can i achieve the above scenario??? ...

How to persist before application crash in android ?

I have a form and and a camera button in an application. First, one fills the form then launches camera. In case, camera crashes then the details entered in form is gone. Any way to store and restore the details before and after crash ? Storing and restoring using XML or SQL DB is very heavy. Since there are many places it is used. ...

Crash happened when the camera in my android app is launched (SHW-M110S)

Hi. Is there any differences between M100S and M110S? My app uses camera component. codes are as follows { ComponentName compName = new ComponentName         ("com.android.camera", "com.android.camera.Camera"); Intent camIntent = new Intent(Intent.ACTION_MAIN); actIntent.addCategory(Intent.CATEGORY_LAUNCHER); actIntent.setComponent...

[ask] display video from url

hi.. Can you give an example, how to display video from the url? thanks ...