android

how to open a application from widget in android?

when we click the widget at that time i need to open a activity screen(or application).How to do this? Thanks in advance !! ...

Android 2.1 camera preview error

hi! I have a problem with using the camera of an Android 2.1 phone (HTC Desire), maybe you can help me. After calling camera.open() DDMS in Eclipse shows the following errors: ERROR/MediaPlayerService(30): error: -2 ERROR/MediaPlayer(30): Unable to to create media player ERROR/CameraService(30): Failed to load CameraService sounds. ...

Alternative to AbsoluteLayout? Best approach for sprite animation?

The AbsoluteLayout class (and contained LayoutParams class with x and y properties) is deprecated. While it is possible to roll my own class that extends ViewGroup and enables me to control the absolute positioning of the child views - is this the best approach for sprite animation? First of all, I've made the assumption that moving Im...

how to realize " android:scrollbars="vertical" " programatically?

hello, i want to dynamic design scrollbars in the EditText using code,but i donot find this api as setscrollbars,could you tell me if i can programatically? realize " android:scrollbars="vertical" ",if can ,how to realize? ...

Problem with reciving information from GPS on Android

I just started playing with android device and have problem with getting updates from GPS listener. Firstly, the code, so You could check if I'm doing everything right: In AndroidManifest.xml I have: <uses-permission android:name="android.permission.LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /...

LocationManager requestLocationUpdates and timertask in android

Hello all, I have the following code: if (gps_enabled) { Log.e("$$$$$$$$$$$$$$", "GPS is enabled requestion location updates... interval value is: " + interval); lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListenerGps); } else{ ...

Which is Android/Java corresponding method to the C#/C++ method GetTickCount()?

Well, the title say it all. I wanna know a corresponding method in Android/Java that is like the GetTickCount method in C#/C++? Thanks in advance! ...

Android marketplace private applications for hardware exclusive?

We're working with a client who's planning on bundling their software on a new piece of hardware. The app will be bundled on the internal memory and needs to be updateable but is device specific, it's a hardware exclusive app. Ideally we'd like to use the marketplace as the update backbone but there don't seem to be any options for hav...

how to add own custom IME at Select Input method dialog

I'd like to show my ownIME at Select input method chooser dialog like Japanese IME and Chinese IME. how can I do for that. I am new to Android. I have tested GreekIME and otherIME. Although .apk is successfully upload. But can't show in it and how to choose own IME from this place. What I need to do in my code. ...

How to know the current IME in Android?

I want to know what IME is using currently in android. I tried InputMethodManager.getEnabledInputMethodList(), but I can only get the list of IMEs. I can't figure out how to determine which one is currently selected of the list. How can I get which input method had selected currently? ...

Inserting a JFreeChart chart into a TableRow.

I have a TableRow that is empty on compile time. The tablerow is supposed to be filled with a chart generated by JFreeChart during runtime. How do I add the chart into the tablerow? ...

What is the maximum memory limits per application for Android 2.2?

What is the maximum memory limits per application for Android 2.2? ...

how can we get online user to gmail chat?

i am developing gmail chat application in android...anybody know how can we get the online user? i would login from my gmail id...i want to show the my friends who is online from chat list... ...

Android list view not mapping correctly

Hello .................... i have a list view and custom list adapter for it. There are various other fields in it and a Checkbox. The problem is that it is not able to map Checkboxes properly. I mean if an entry is already present in database it should come checked. When i put a log in the View function it shows some of the ent...

A Good JAVA library to parse HTML, POST AND GET HTTP suitable for Mobile?

Hello, I'm making an android client for a web site. my app have to go through the website, parse HTML, post some forms, send HTTP requests etc. What library covering all this stuff you recommand me to use ? thanks. ...

ListView In Android

How to add Image in ListView.Please Post some sample code for this. ...

How Titanium is helpful in developing android applications ?

How Titanium works with android? And it is easy to work with titanium for developing android applications? ...

Textured sphere in OpenGL ES

I want to have a textured sphere in OpenGl ES. What is the best way to do this? One option is to create it manually. Another is to create it in e.g. Blender and load it - what file format should I use? ...

Intent to launch the clock application on android

Hello, I am facing a problem with a clock widget i made. I want the user to touch the clock and launch the clock app on the phone. this is the code: //this worked on my nexus 2.1 if(VERSION.SDK.equals("7")){ RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.widget); Intent AlarmClockIntent ...

Transparent PNG image not looking nice...

I have an image that has a fairly large shadow around it and its background is transparent. I have saved it as a PNG file from photoshop and am using it in an ImageView through xml. This results in the shadow having a banding effect and just doesn't look nice. Not too sure what to do... ...