android

Android: debug app on device with Eclipse and password-protected keystore?

I uploaded my application to Market and then downloaded it to my phone. Now I'm unable to use debug keystore which is used by default by Eclipse ADT Plugin (Re-installation failed due to different application signatures) and when I'm trying to setup own keystore in Eclipse->Windows->Android->Build->CustomDebugKeystore, I'm unable to ente...

Upload and launch apk on phone wirelessly from desktop for developing

Is there any way (e.g. with the command-line) I can upload an APK to an android phone wirelessly (wifi or Bluetooth) and launch it on the phone from a desktop machine? I can do this things with abd from the command line when a USB cable is attached but I'd like to know if I can do this without having to mess around with cables. ...

Android dev, SmsManager and double SMS

Hi, I am using following code to send sms message: SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(phoneNo, null, message, null, null); But when this code is executed two sms messages are sent. Does anybody have idea what can be a problem? I am using HTC Tattoo with android 1.6 I have tested this code on HTC Hero and e...

Set Android Gallery widget to show specific starting image

I have a task where the user can select an image from a GridView representing a photo album, and from this I start a new activity which displays a Gallery widget to show the images of the photo album. However, I can't seem to get the Gallery widget to show the contents of the photo album with a given image as the starting point. Ideally ...

Question on creating a Gallery view containing buttons?

I created a Gallery that contains buttons. Example code is below: public class Adapter extends BaseAdapter { private Context mContext; public ImageAdapter(Context c) { mContext = c; } public int getCount() { return 10; } public Object getItem(int position) { return position; } ...

I don't know when to use a Service or AsyncTask or Handler

Can someone tell me the TRUE difference? ...

Sending data to a server when the device is connected to Internet

My app needs to send some data to a server when the device is connected. I have been reading about native Android Broadcast actions. I was willing to find a way to use one as gmail does when the device connects to the Internet. (The "loading" icon on the top while it syncs mails) Is it ACTION_SYNC what I am looking for? If not, how do...

I have one Activity. In this Activity, I executed a AsyncTask , but it's not working.

private class ExecuteLocations extends AsyncTask<String, Void, Void>{ private final ProgressDialog dialog = new ProgressDialog(ListProfiles.this); protected void onPreExecute() { //this.dialog.setMessage("Starting pre-execute..."); //this.dialog.show(); } @Override protected Void doInBackground(Strin...

Confused about activity lifecycle usage in the notepad example

Hi all,I am confused about activity lifecycle usage in the notepad example,notepad example use "edit in place" user model,inserting new record in onCreate method, saving persistent state in onPause method,and save away the original text in onSaveInstanceState method. I am a J2EE programer,I can not understand the logic described above. w...

Android: How can I start an activity from a regular java class? the java class is servlet

How can I start an activity from a servlet? I have an i-Jetty server installed and a servlet that responds to HTTP request. I would like to start an activity from the servlet, does any body have any idea on how to do this? ...

Disable activity slide-in animation when launching new activity?

Hi, I have an activity which launches another activity, via a button click. By default, on newer OS versions of android, the OS will animate the new activity sliding in from right to left. Is there a way to disable this animation? I just want the new activity to appear without any sort of animation. Thanks ...

Layout :How to get the bottom bar under listview

I hope can get the layout like this: -----Search bar(EditTextview)--- -----Listview(Rows)-------- -----Bottom bar(Contain many buttons)--- Pls give many samples Thanks very much I paste my xml file here.Pls help me check it: ...

Android - Should I use multiple activities or multiple content views

Hi, i'm new with android. I'm working on an application using xml layouts. I wish to know which is better: 1. Use few activities and change its contentview 2. Use an activity for each 'view' needed If both works, in which case which option would be better? thx a lot ...

android splash screen

i have a program that shows a splash screen.But the problem is whenever i refresh same page again it appears.Is there any method to stop splash screen again and again.I want it just comes at first time not again and again. Thank you ...

How do I implement drill down (list)view ?

I'd like to implement drill down view in Android. Currently, onListItemClick, I refill the same list view with different data. questions: any other suggestions? Something like the way it is done using UITableView on iPhone? is it possible to animate (push left or right) the listview fill operation? ...

How to build opencore and run pv_2way engine test in android simulator?

I want to build opencore source code and run the test application for pv 2way engine.I tried the steps given in ..\opencore\quick_start.txt but I am unable to run 1.I tried building the open core as mentioned in quick_start.txt but there were no libraries installed inside folder opencore/build_config/opencore_dynamic/build/installed_lib...

OCR Application for Android

Hi I am a final year engineering student from India. Working on a project to develop an application to perform OCR on English Text on an Android mobile phone. I am hoping to use an existing open source OCR engine. like tesseract for example. Can anyone please help me? point me in the right direction? this is my first ever project. ...

How can i install android sdk set up revision 4 and launch emulator

Hi, I have downloaded "android-sdk_r04-windows", after unzip I tried to install "SDK Setup.exe", but i got following error and nothing was installed. Downloading Android SDK Tools, revision 4 Download finished with wrong checksum. Expected 1357f66cb935fc6ae31ba656024a81fe787349c9, got 54a9ee4a067aaa03a6703e0e46d64b62e68ed994. Skippin...

Gaming in Facebook for Android

Hi All, I've developed a Facebook application for Android. For further development, I would like to know whether I can enhance it to add gaming features of Facebook in it. Is there a flash player that I can use for it? Please reply ASAP.... ...

Android game with constant FPS?

Hi, I'm implementing a game loop with constant FPS. I'm thinking about 25-30 FPS should be enough. Any ideas from your own experience? Should I even restrict FPS at all? Thanks in advance! ...