android

Tutorial required for developing android desktop widgets?

I like to develop a product something quite similar to what is shown here in the following link:http://getclicky.com/blog/221/5000-for-an-android-desktop-widget Could someone provide me with an analysis of what is exactly required to develop a desktop widget for clicky.blog. Please comment and explain in detail. Thank you ...

Changing manifest meta-data from code

I have a app that uses ads. The ad id is set in the manifest id with a meta-data tag. I want to change this tag when i start the app in some cases (diferent id for some localisations) Can i do this in code? ...

'Flash for Android' vs 'AIR for Android' - differences?

Froyo and Flash Player are coming to our phones. In the Adobe PreRelease programs we can find AIR beta for Froyo and Eclair. With that, I can develop a Flash app and export it to my phone. So, is AIR player the Flash player? o_O I can't understand what differences are between AIR and Flash on Android. Can you help me? Thank you! ...

How to move to a certain view using ViewFlipper?

Hi, I would like to switch to certain views in a ViewFlipper. Currently, I have 6 children inside the ViewFlipper. And I am having some buttons for navigation. It is very much similar to "News and weather" application. ...

Displaying inverse numbers when loading Hebrew rss with android ...

Hi , I'm Loading an Hebrew (rtl) xml feed with xml Dom using eclipse android environment. When displaying the feed on TextView text is OK but numbers Displaying inverse for example : if feed (XML) contain 007 it WILL displayed as 700.. any help blessed (: thanks ...

Stop thread at the time of closing application in android?

I am new to android.At the time of closing application i need to stop the thread in android. Can anyone help me to solve this? ...

Position views at specific location?

Is there a way to place widgets / views on the screen at any specific position required? Something like a calendar with daily events that could overlap. e.g. if every hour in a day is represented by 1 hour and there are 2 appointments that overlap partially (say 12:00 - 12:30 and 12:20 - 01:00) this would be drawn in the same row but th...

error when use ant to build android project

jarsigner: Certificate chain not found for: csi.keystore. csi.keystore must ref erence a valid KeyStore key entry containing a private key and corresponding pub lic key certificate chain.. who has idea? thanks... ...

Android Preferences: Unlimited, extensible value-list

Hello, I would like to allow the user to enter (a non-predetermined amount of) values for an Android application preference. Existing examples that come to mind are the alarm clock applications found on various smartphones (iPhone, HTC Android, ...) where the user can add an alarm clock time.* Can anyone think of a simple way to presen...

Issue when setting a ListView in a AsyncTask class

Hi, I'd like to set a ListView to data I get from a web service. I get the data in a AsyncTask instance, but when I try to set some of my ListView attributes, it crashes (on line "lv.setVisibility(View.VISIBLE);"). Anybody can help? thanks public class Atable extends Activity { private EditText mSearch; private static final i...

Android: Options menu for nested Activity in Tab

I have a TabActivity which contains an Activity. When the tab for the activity is selected, if I press the Menu button, onPrepareOptionsMenu is called in the parent TabActivity, but not on the activity for the tab which was selected. The options menu for the activity in the tab isn't shown unless I click inside the tab, then I get call...

android.graphics.Point: all methods are stubs

I'm trying to use the Point class from android.graphics, but it appears that all the methods are stubs. For example, the line Point p = new Point(1, 1); causes java.lang.RuntimeException: Stub!. If I look at the bytecode for Point, I see a bunch of stubbed methods, e.g: // Method descriptor #17 (II)V // Stack: 3, Locals: 3 pu...

About nested PreferenceScreens

Hello, I have a PreferenceActivity that uses addPreferencesFromResource() to load the view from the xml. The xml contains has the following structure: <PreferenceScreen android:id="outer"> <ListPreference ...></ListPreference> <PreferenceScreen android:id="inner"> <CheckboxPreference ...></CheckboxPreference> <CheckboxPrefe...

Creating a ListView layout from an ArrayList

What I want to do in one of my tabs in my application is have a ListView of contacts. Though, in that example, the ListView is made from an array of Strings. Is there a way that I can create one of those using the values from an ArrayList? Thanks! ...

it there an Android event lister for speed?

I have an app for speed measuring and would to detect when a user goes above or below certain speed. Do I have to constantly monitor the speed or there an event I can create? ...

Android Multitouch Imagebuttons

I apologize for asking a question that's already been asked, but I see that someone provided a possible solution to allow multiple imagebuttons to be pressed at the same time: http://stackoverflow.com/questions/2528160/multiple-button-presses-for-android-2-x His code is as follows: @Override public boolean onTouchEvent (MotionEvent ev...

Debugging Web-Applications on Android

Hi, I'm developing a web-application for iPhone and Android. It works flawlessly on the iPhone but when I try to run it on an Android device, it just does not work. But to the point… I need to access the (JavaScript) error console in the Android default browser. Is there a way to do that? I tried changing the "Enable tracing" setting a...

Changing Java ListView to XML

Alright, so I followed a tutorial on the Android website, and I got a ListView going in my application. But, the example they had did everything in Java basically. How could I transform the following code to XML? setListAdapter(new ArrayAdapter<String>(this, R.layout.list_item, COUNTRIES)); ListView lv = getListView(); lv.setTextFilt...

Can't access content provider of another application (android)

Hi, I have created a custom content provider in application A and have another application B access this content provider in A. Below are my code snippets: In content provider in application A: public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { int ta...

Use PreferenceActivity to configure widget, how retrieve preference?

Hello, i'm using PreferenceActivity class to configure my widget. PreferenceActivity class automatically saves user preferences, so in widget update service i can call context.getSharedPreferences() and i obtain user preferences. Problem is follow: if you have many widget of same type, how PreferenceActivity class saves prefs? how ...