android

Android C2DM Registration_ID max size

What is the maximum possible size of the registration_id field used for Android C2DM service? ...

Application With Multiple Activities and Single Launcher

I have an application which has multiple activities associated with it. When the user clicks on the launcher icon I want the last used activity of the application to be shown. What's the best way to accomplish this? ...

Problem Run Application API Version 8

when I configure and run the application, an error occurs URL Image! http://i.imgur.com/6r3yW.png ...

Extracting Android .apk and reading contents of XML file in res/layout

I am trying to reverse engineer an existing android app and understand how a particular UI is constructed. I've found that I can rename the apk to zip and view some of the compiled source. The res/layout directory is populated with all the xml files that define the UI, but while they do have the xml extension, they are not in XML format...

How do I invoke a servlet from my android application?

Hi, I am absolutely new to android development and I need help in know how can I invoke a remote servlet which is gonna send me data from a database in the form of xml. I am a beginner and I don't understand jargon. If possible provide me with a link/tutorial for the same. Any help is greatly appreciated, Thanks! ...

Maintain ListView Item State

My ListActivity is bound to an ArrayAdapter where I have overriden the getView() method. If I change the visibility of a widget in that method or modify the view's background color, those changes somehow get lost once that modified list item returns after being scrolled off the screen. In fact, some other view in the list is picking up...

Where do I get the admob jar?

I'm sure this is a stupid question, but I can't find a link anywhere and their wiki just says "Copy the AdMob Jar file into that libs directory." but not where to get it. ...

Android SyncAdapter

I am writing a syncadapter using google account and app engine. The account appears in account and sync, but when I try to select the account for syncing, I am getting a hard database error. I am trying to figure if this error is on mobile or the app engine. Further, what can be causing this error Another error that I am getting is fail...

android app play youtube

Hi all , i'm trying use the MediaPlayer and videoView class to play youtube videos but all failed , is that feasible?? i have seem some app can do that , i'm just thinking how to implement .....= =a? ...

Android Sqlite "null" Exception caught

So I am programming an android application and I am getting unusual error. In the code below I am loading the data from an sql file into a sqlite database and updating a progress dialog while I do this. After successfully executing a number of statements I am getting an exception on one execSQL statement. This statement is a perfectly fo...

Android boolean preference problem

I want to have the status of a checkbox be saved into my prefs. I set a listener on the checkbox, and if it is checked I do a prefs.putBoolean("cbstatus", true), and it is it unchecked i do a prefs.putBoolean("cbstatus", false); Trouble is, in my onStart() when I get prefs, my Boolean getcbstatus = prefs.getBoolean("cbstatus", false); ...

MultiTab Activity Problem

Hi, i want to make an IM application which show a contact list as main page and when i want to chat or do a conference it opens a new tab. I have looked in this web, but it all kind get blurry. Do i need to use LocalActivityManager, or ActivityGroup ? and if i need to use it, how can i implement it the right way. Right...

Android, should I make MediaPlayer a service?

I'm trying to write an Android application which will allow users to listen to a radio station. I have got the start and stop buttons to work and it plays the stream. If I press the home key and start doing other bits and pieces with the phone, the stream continues to play. This is how I want it to work. Should I bother creating a serv...

TextView Scrolling Issue..

Hii I was coding for an application that shows the list of running process and i was using TextView to display the running process in screen. I was trying 2 different method for displaying the TextView. In one method i was declearing the TextView in the code itself TextView tv = new TextView(this); this.setContentView(tv); In the sec...

How to view tables created in a database

Hi, I am new to android. I created a data base named as example.db with some tables in SqlLite. It worked fine. It was also created in data/data/com.mypackage.myapp/databases/example.db. Now, I need to open that database and see the content in the database. How can I do this? ...

Android Image Intent from URL to Browser or other activity

I want to have an image open from a URL to an intent, most likely the browser or maybe a picture previewer like the one built into twidroyd. Intent intent = new Intent(); Uri uri = Uri.parse("http://nssdc.gsfc.nasa.gov/image/planetary/earth/gal_new-zealand.jpg"); intent.setDataAndType(uri, "image/*"); intent.setAction(android.content....

Android: GUI: Getting items from listview

I am having custom listview(with image, text and check box) and a button(named Done) in my listactivity. I am able to check/un check check box upon list item click event by implementing listvw.setOnItemClickListener(). Now when i click Done button, I want to know how many list items are checked. How to do that? ...

Android DefaultHttpClient accept all certificates for SSL session help

I am attempting to connect to a local HTTPS server using the apache DefaultHttpClient on a Android device. DefaultHttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost("http://192.168.1.121:4113/services"); ... header and content filling in ... HttpResponse response = httpclient.execute(httppost); I am ...

Network availability to make a call

In my application I have written code to make a call to helpline just by clicking on button. When I copy this application to my Android device, if the network is not available it exits the application. I want to display a error message rather than exiting. One more issue,I have written code to add a helpline number to contactbook when t...

Login to PalPal interface in Android in Sand Box environment.

Hello guys, i have integrated the PayPal in to my Android App. But as i click on the yellow color "Pal with PayPal" button a interface in web view opens where it requres paypal user name and password. But login fails, i tried this with 2-3 paypal ids. I am running the App in PayPal SandBox environment and using the Test A...