android

android service by mean share by all activities

Android: i want to create service by extending a Service class which i start when application get started and all activities can share its state and when i want stop it from other activity and when i want start it again from any activity ? ...

Android, Iphone app with JS and HTML

Hi, I have read some post about apps programming for Iphone and Android, but I have one question. Is it posible when there is a mobile website optimized for mobile phones, that I can create apps for Iphone, Android, Win 7 and Blackberry, that only statrts the browser as instance and display the mobile website? What do you think, is this ...

ListView Activity & Dialog

Hi, I've a listView Activity where user could open a dialog to display more information about a line of the list. On the Dialog user could modify a line. So my purpose is to refresh listView when User modify it by the Dialog. The problem is that I couldn't use myArrayAdapter.notifyDataSetChanges() so How I could do that ? ...

the best way to Encode Video For Android

Dear all, I have videos that should be run on android. and those videos will be host on web server - so my android app will hit the web server to play the video. I try several way to encode the video and the result is not good enough, sometimes the sound and the video is not align or sometimes the video is not shown but i can still he...

Android x86 Prelink

Please throw some light on How the prelinking or preloading is handled in Android-x86 platform. Because, I am seeing only prelink-linux-arm.map in the code. The x86 loader is also using the same filename? If so, Is the loading address in the map file is same for both x86 and ARM platform? ...

Programmatic screencapture on mobile device

Dear developer, I would like to implement some sort of remote assistance tool (like vnc) for Android. Is there the possibility to capture a screen programmatically on the device? Thanks a lot Wolfgang ...

Android jAudioTagger Problem - Reading mp3 file - VerifyError

Hi All, I have the following error but cannot workout the problem, i am READING MP3 files and the below error seems to come as it tries to WRITE MP4 files. AudioFile f = AudioFileIO.read(m_file.get(x)); Error comes after calling the above and passing the first MP3 file 08-27 09:51:47.671: ERROR/dalvikvm(4485): Could not find class ...

Android Handle requests

Hi all! I am developing a multi-player game for android. I already have all the mechanical part of the game done and for now, I have to handle the requests between players. So, imagine the follow situation. The player A choose his opponent and make his move. He only can play x or y. The player B have to receive a notification that the ...

fetch media from internet and storing in imageview

hi, I have implemented application in which i am using tabs and want to fetch the images,audio,video from server and show on appropiate tab. can anybody help me .. Thanks Rakesh ...

Android activity stack problem

Hi, In my application, I have problem with activity management. Indeed, consider I have 3 activities : - Splashscreen - SignIn - Home I would see : - First launch (user not logged) : Splashscreen -> SignIn -> Home (log in valid) - Other launch (user registered) : Splashscreen -> Home (auto log) The problem is : Back from SignIn or Hom...

Android/Eclipse problem

When I start a new Android project in Eclipse (Helios), the strings.xml has 2 strings, app_name and hello (which is normal, of course), but they're not shown in the resources view. They seem blank and on clicking anywhere or typing in either views brings up an error dialog, saying "An error occured.. java.lang.NullPointerException. I'm a...

Android Intent Action "ACTION_CALL" - Correct way of getting back to own application after call?

Hello. I got one question regarding the intent action "ACTION_CALL". What is the correct way of getting back to the own application/activity after the user ends the call? The only way that came to my mind uses a PhoneStateListener in a background services that waits for the CALL_STATE_IDLE event starting up the application again. B...

What is the most efficient way to deliver the same functionality on Windows Mobile, Android & Blackberry?

What is the most efficient way to deliver the same set of functions on different mobile platforms (Windows, Blackberry & Android, possibly iPhone)? What are your real life experience of the conversion of a common design to the minimum possible sets of source code? What are the good/bad tools? ...

Is it possible to do frame by frame animation without AnimationDrawable?

I'm using a lot of animation drawables on my app and not all frames are gettings played. I'm wondering if there is another, more efficient method of doing frame by frame animations than AnimationDrawable? ...

Support for other protocols in Android webview

Hi guys.I've created a web view app, the page that is displayed features market:// links but upon clicking them I get the 404 screen along with the error that the protocol is not supported. I've tried looking through documentation but was unable to find anything relating to this. Any help is much appreciated. ...

Problem with ExpandableListView refreshing

Hi, I have problem with ExpandableListView refreshing. Everything is ok until I click on the list after calling onDataChanged(). I call this method in another class. public class OnlineVisitorsView extends ExpandableListActivity{ MyAdapter adapter; //SINGLETON private static OnlineVisitorsView ourInstance; public static OnlineVisitors...

Android: recorded video seems *distorted*

Hi all I'm trying to record video from the Camera using the MediaRecorder. Here's a code snippet snip.. mr.setAudioSource( MediaRecorder.AudioSource.MIC ); mr.setVideoSource( MediaRecorder.VideoSource.CAMERA); mr.setOutputFormat( MediaRecorder.OutputFormat.THREE_GPP ); mr.setAudioEncoder( MediaRecorder.AudioEncoder.AMR_NB ); ...

Get index of selected tab in tabHost

I'm trying to store the index of the currently selected tab in onSaveInstanceState so I can restore it. However the getCurrentTab apparantely gives me back the String I used in the etTabHost().newTabSpec, which I find a bit weird since the documentation says it returns an int and setCurrentTab also taking an int. Does anyone know how I c...

Android: Illegal View State Exception on Keyguard unlock

I have an activity, on which when I press the Keyguard lock button, the onDestroy() function is called. At then when I disable the keyguard lock, that activity is shown no more as I get a RuntimeException in Illegal View State. How can I prevent from onDestroy() to be called? Please help. ...

Where is a good place to grab GPS data?

I in my android application I want to track GPS information and use this information in all activity. Is it a good way to use onLocationChanged, in the Application class? I also want to have a timer that will measure the elapsed time, and use in all applications not only in one Activity The information onLocationChanged and timer and ...