android

Can the same Android App be used for mobile phones, tablets and Google TV?

Is it possible to develop one app that can be used on mobile phones, tablets and GoogleTV? Thanks! ...

Live Testing of the Android LVL

I have a paid app that's been out in the Android Market for a few months now, and up to this point that app had no type of copy protection or license verification scheme. I have just finished adding an modified version of the LVL code to my app. To test out the code's license response handling, I signed into my dev account on the emulat...

create one activity application

I want to create an activity that uses the intent action for Screen_off - is there an easy way to do this? I keep getting lost as to where I should start - does the screen_off activity need to be defined somewhere and then referred to? ...

Android SRC build - Snow Leopard

Trying to build android src. Followed all instructions from source.android.com I know it says Snow-Leopard is not supported, but have googled and have found many guys are able to build android src So , installed Macports 1.9.1 dmg file and repo sync the code Ran 'make' , got some kind of error that said "object_error_freed" In som...

onConfigurationChanged-it's still showing the first layout...

Hi all, I have an activity which handles configuration changes. But now i have to change layout.I tried in onConfigurationChanged callback just to set again the layout and hoping will get the correct layout(land) but it's still showing the first layout for portrait view ( there two layout(same name) are placed in res/ layout and res/...

Eclipse Android Plugin sluggish

I have recently installed the most recent Android Plugin for Eclipse on the most recent Eclipse version. The problem is that the syntax proposals are now very, very slow. I have to switch them off. To be precise. If I press "." after an Android class instance, it takes several seconds, before the proposals for the methods appear, and I ...

get device phone number through javascritp in android

hi folks i want to get device phone number through javascript for validating user. i am sending sms to client when he click on url i need to perform some operation. for that i want to get device phone number in smartphones ...

SlidingDrawer using a 9 patch handle image.

How do I achieve the following? The first image shows the result I want to achieve. The second one is the current result I'm getting from my layout. Note The image I'm using is the one from android 1.6 jar. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orie...

I am not able to apply view flipper on list view ?

My XML structure has a view flipper in linear layout which is again in Frame layout. I am not able to flip my layout and see next child. I want to apply it on OnTouch() of layout @Override public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub Log.i("onTouch", "INDSIDE ONTOUCH OF FLIPPER...

How do I put an admob adview in the settings screen for a live wallpaper?

I've seen the Mario live wallpaper uses admob ads in the settings screen, but I haven't been able to do it myself. If I put the adview into the settings.xml like you would with a normal layout I get a class cast exception. Here's a screenshot of the mario live wallpaper to illustrate what I'm trying to do. ...

Issues creating cache files and directories on HTC Desire

Hi all, I've experienced a strange issue running (my own) applications on the HTC Desire. When I call getApplicationContext().getCacheDir() or getApplicationContext().getFilesDir() from my activity this always returns null. In the emulator /data/data/com.myapp.android/cache respectively /data/data/com.myapp.android/files is returned. ...

Radio button click doesn't register inside ListView

Hi! I have a radiobutton group in Android that I populate with data from a database. To get the data to show next to each radiobutton I have used the ListAdapter: String[] columns = new String[] {DataHelper.KEY_WORD, DataHelper.KEY_ALT1 , DataHelper.KEY_ALT2 ,DataHelper.KEY_ALT3 ,DataHelper.KEY_ALT4 }; // the XML defined vi...

Android threaded conversation view

What would be the best way to go about designing a threaded conversation view like the one we see in the messages app? I'm not that familiar with the layout views in Android so any help is appreciated. ...

Android market "Whats new in version xyz" - information

Hi there, While browsing through various apps in the market, I noticed that there's a "New in version xyz: ... " text, just above the number of downloads and comments. Did I miss something, or is there a dedicated field to provide this kind of information while uploading a new version of your app in the market instead of just changing y...

set the time in Alarm manager Android - alarm fired instantly

I have this code which will call alarm notification public static Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(System.currentTimeMillis()); cal.add(Calendar.HOUR_OF_DAY,hour); cal.add(Calendar.MINUTE, min); Intent intent = new Intent(this, OnetimeAlarmReceiver.class); PendingIntent pendingIntent = PendingIntent.getBroadc...

Android SQLite _id column problem

Hello all, I'm a newbie in android, working on list adapters right now. I know some type of list adaptors need _id column to process the data. I provide an _id column but I couldn't make it work. I follow notepad example, so here is my code : I create the db by this statement : private static final String DB_TABLE = "radios"; public s...

How reliable is Android 2.2

Its been around 2 years since Android's first release and already there are 6 to 7 Android releases, unlike Windows mobile. And I found between 2.1 and 2.2 there are lots of changes. The way to call my local services, and other methods have been deprecated etc.. So how stable is Android 2.2. Are we gonna have more frequent release? Deve...

Android 1.6 ksoap2 -java.lang.RuntimeException: Cannot serialize: java.util.GregorianCalendar -Error while passing datetiem parameter

Hi, I soppose to call .net web services in android using ksoap2 api. My code is working well for passing parameter as String or int. But it showing "java.lang.RuntimeException: Cannot serialize: java.util.GregorianCalendar....." while passing Calendar object as parameter. I converted date into string and parsed it into date object but it...

Android : Skipping to Listview position given input char or string

Hello, Can someone tell me how to skip to a position in an alphabetically sorted ListView when given a char or string input from an onClick method? For example, I have a dialog that passes back a char. If that char is a B I want the listview to skip to the first B entry. Any help would be greatly appreciated. Thanks, Josh ...

Gettring a reference to a managed ProgressDialog

In my activity I need a ProgressDialog with a horizontal progress bar to visualise the progress of a background task. To make the activity care for the dialog e.g. in case of screen rotation, I would like to use a managed dialog created in onCreateDialog. The problem is that I need to update the progress bar of the dialog after it has be...