android

Gmail content provider for message access

Unlike Contacts, there is no currently public API available in the SDK to allow access to Gmail, SMS, and MMS. The Gmail content provider does not appear to be publicly supported. Does anyone have any information on using this content provider with Android 2.x, and/or the status of making Gmail, SMS and/or MMS access officially support...

finish() not triggering onActivityResult

I want to refresh a list when the user goes back to the main Activity from a child Activity. I Overrode onActivityResult and the function is called when I press the back button on the child Activity. However, there are other ways to get back to the main Activity from the child Activity and all ways should trigger the refresh. However whe...

Android & HDMI: Other use than videos/slideshows

I'm looking for an Android device suitable for presentation of Android applications. I seen that some devices are starting to include support for HDMI TV out, which is great but they all seem to only allow usage for video and sideshow playing purposes. Do anybody know if there is a way (or device) that allows you to have the Android sc...

Android simulate button press

I am trying to execute an event mouse press within my android application. When the user enters a CARRIAGE RETURN when entering text into a text field. I would like to execute a mouse button press on an ADD button when that character is detected in my OnClickListener for that EditText ui. ...

Rotate a bitmap in android about a point without animation of view.

I found some good resources for rotating a bitmap in android here and elsewher eon the net. I am close to getting my code to work but apparently I don't fully understand how the Matrix Translations work. The following is three main functions from my sprite class. THey worked great before I added things to facilitate the matrix rotatio...

Pause/Resume ActivityGroup's Child Activities?

I have an activitygroup managing a number of child activities. I would like to pause/resume child activities when they go off/on the screen just like they were top-level activities. How can I do this? From the documentation it seems as if moving focus from Activity A to Activity B should pause Activity A, but I am not seeing this beha...

not getting the result using SharedPreferences in android

i am trying to store the user preference of whether the checkbox is clicked or not in an Activity , but when i shutdown and restart the app, i don't get the desired result . i.e if the user had checked the checkbox then on restarting i am not getting it as checked. here's what i have tried: public void onCreate() { .... checkbox=(C...

How to be notified on wifi network status change?

Hi All, I am writing an app that connects to a telnet server via wifi. I have a service that manages the socket connection. It all works fine, but when the phone sleeps it disconnects the wifi radio, which causes the socket connection to break (and throws a SocketException). I feel like I should be able to set up a a broadcast rec...

Internal Storage android -Device memory

Can some one help me explain how to read and display the data stored in the Internal Storage-private data on the device memory. String input=(inputBox.getText().toString()); String FILENAME = "hello_file"; //this is my file name FileOutputStream fos; try { fos = openFileOutput(FILENAME, Context.MODE_PRIVATE); fos.write(input.get...

Is the book 'Sams Teach Yourself Android Application Development in 24 Hours' worthwhile to a beginner

Hello, I am currently interested in learning more about developing android applications. I've made hello world for android but that is pretty much it. Has anyone read 'Sams Teach Yourself Android Application Development in 24 Hours'? If so would you recommend it? If not, could you point me towards some other resources? Thanks a lot!...

Android: Progress Dialog spinner not spinning.

This seems to be an Android-wide problem, which you can see in API demos under Views -> Progress Bar -> Dialogs. Basically, if you show a progress dialog, it works as expected the first time around. If you dismiss it and show it again (without destroying the activity or anything like that), the spinning image stops spinning. In the API ...

Android layout manager available for Netbeans 6.8

I just Installed android 2.2 as a NetBeans 6.8 plugin, it works but I'm missing some tools like the layout ui manager, ïs this a ide specific tool or tis available for all of them? ...

Size of background images to support all medium and large android screens

I'm writing an app and I want one of my activities to have a background, I've read the android docs about supporting multiple resolutions etc, but my designer is asking me what size the wallpapers should be and I do not want a lot of images for low,normal,high dpi in all the screen sizes. What would be the most space efficient way to g...

Using AbsoluteLayout on Android?

All pages of my application use the AbsoluteLayout which is deprecated. I was told that the reason i should not use absolutelayout is that it's not flexible in different screen sizes. I tested my app with every simulator comes with android sdk, and I had no problem. But all screens on all simulators seem to have the same size. am i safe...

Start service at boot and after app has been installed

I know you can start a service on Boot, but how do I start the service after the app has been installed or reinstalled? I would like to start the service once the app is put on device by Debug/Run of Eclipse. ...

Make Bitmaps listen to touch events

Hi all! How can I add touch capabilities to a simple bitmap? I've tried to create a wrapper class for a bitmap, which implemented OnGestureListener, but it didn't work. I want to avoid extending View class to achieve this. Thanks! ...

Which layout do you suggest

Here is a video of my app: It's currently using absoluteLayout, and since absoluteLayout is deprecated i decided to change my layout. So what Layout do u suggest using for this app? Please see the part of the video, that the game has started, that's the only part with absolutelayout. Thanks ...

How can I ensure a service is started at 9am and stopped 9pm every day?

I have a service that will monitor location changes daily. What I know so far that to start a service at boot, I have to follow the linked tutorial. This way I can get the service started at boot, but to save battery I need it only between 9am-9pm. Question is pretty simple, so I will repeat: How can I ensure a service is started at 9a...

Android - Reliably getting the current location

My app checks at a specific time whether a user is at a given location. I use the alarm manager to start a service that makes this call: locationManager.requestLocationUpdates(bestProvider, 0, 0, listener); And also checks: locationManager.getLastKnownLocation(bestProvider); But I'm having problems when running on a real device. F...

Intent object not triggering intent-filter

Perhaps I'm misunderstanding how Intents and intent-filters work, but it seems to me that this should be a strait-forward case. However it's not working. Here is the Intent I'm sending: Intent i = new Intent(Intent.ACTION_VIEW); i.setType("vnd.android.cursor.item/vnd.connectsy.event"); startActivity(i); And here is the intent-filter:...