android

Is there any material on Android middleware developement?

Hi, I am working on Android applictions since last 8 months. Iam interested in learning android middleware devlopement.I searched on google for this.But i haven't found any material.please send me,is there any material or tutorial or links to learn. Give me guidance to quick learning? Regards, Rajendar ...

Android: How can I pass parameters to AsyncTask's onPreExecute()?

I use an AsyncTask for loading operations that I implemented as an inner class. In onPreExecute() I show a loading dialog which I then hide again in onPostExecute(). But for some of the loading operations I know in advance that they will finish very quickly so I don't want to display the loading dialog. I wanted to indicate this by a boo...

Android ==> Preference ???

my app crashes with a null pointer exception on the code below. i have an xml preference file under res/xml/defaults.xml Any idea why it's crashing? public class Preference extends Activity { public Preference() { } public String getPreference(String key) { //it still crashes here SharedP...

how to gettext from edittext in android?

I use the following code to take values from the textbox.But it's not working it gives the exception and force to close only.How to get the value of the textbox ?can anyone help me? public class alertwithlogin extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) ...

In Android, is there a similar method to the repaint() in java?

In Android, is there a similar method to the repaint() in java? ...

how do i start (and bind) a remote service in android that is implemented in another app (different package)?

hi there! i'm a bit stuck with remote services in android. thing is i implemented a remote service in package "a.b.c" and i want other applications to be able to access this service. i got rid of the whole crappy aidl-stuff and designed the "interface" of the service to work via broadcasted intents. works fine so far... problem is: how...

Get web results from HttpClient for Android

For example: Say I searched something on the Walmart homepage. Like this. How would I retrieve the information from the first product listed. Information like product name, price, details, rating, model. And how would I search in the box. The only way it seems like to me is to replace http://www.walmart.com/search/search-ng.do?search_con...

android / phonegap newbie question

hi, i've read about phonegap which enables to write web-based apps for android and i was wondering: how is performance of phonegap compared to a "real" android app what would NOT work in phonegap? i know it's possible to implement google maps with phonegap but i guess there's a lots of limitation compared to direct coding the maps und...

Menu button can only be clicked one time

I added a custom menu to the menu button using the following code: @Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); if (getDisplayedView() instanceof WorkspaceView) { ((WorkspaceView) getDisplayedView()).showEditMenu(); } return true; } and ...

Http connection timeout on Android not working

I'm writing an application that connects to a webservice and I don't want it to wait too long if it can't get a connection. I therefore set the connectionTimeout of the httpparams. But it doesn't seem to have any effect whatsoever. To test I turn of my WLAN temporarily. The application tries to connect for quite some time (way more than...

How to retrieve array ( list, vector , anything ) of objects as a result from .NET web service in Android ?

public class a extends Activity { public static final String SOAP_ACTION = "http://vladozver.org/GetAllCategories"; public static final String METHOD_NAME = "GetAllCategories"; public static final String NAMESPACE = "http://vladozver.org/"; public static final String URL = "http://192.168.1.3/Services/CategoryService...

Application install problem

when I am trying to install my application apk into suitable emulator the followingerrors are coming C:\Program Files\android-sdk-windows\tools>adb install TeslaWorldNet.apk 1583 KB/s (2911477 bytes in 1.796s) Can't dispatch DDM chunk 46454154: no handler defined Can't dispatch DDM chunk 4d505251: no handler defined pkg: /data/l...

Loading remote images

What is the simplest approach to the following in Android: Load an image from a remote server. Display it in an ImageView. In other words, if you had to explain to someone how easy it is to work with remote images in Android how would you do it? ...

discripencies while compressing a bitmap on Google nexus

Hi all, I am compressing a bitmap object to OutputStream using "Compress" function. Here is my code: try { if (bitmap != null) { bitmap.compress(Bitmap.CompressFormat.JPEG, 100, bytes); } else { Message message = hand...

Read from "output" as from "input"

Hi Dear community! Some on of you saw this. So the question is, how to access mobile audio out in read mode? Thank you! ...

i need to send two long variable to the other acitivity ? Please help me out?

iam using intent to call activity here and i need to send to long variable to the other acitivity ? Porjct.java Intent i = new Intent(ProjectList.this,RoleList.class); Bundle c = new Bundle(); c.putLong("PID", projectID ); c.putLong("CTSID", castingTimeSlotID); i.putExtras(c); startActivityForResult(i,0); ...

Android GridView Reversing After Handling Orientation Change

EDIT: This problem may be related to http://stackoverflow.com/questions/3121153/baseadapter-causing-listview-to-go-out-of-order-when-scrolled My main application screen uses a GridView to display a grid of icons. Each icon has an image, name, and Intent. I have the Activity set to handle orientation changes so I can change the backgro...

Android: Scrollable tabs

Hi, I'm currently working on my first android application. I am using a tabbed layout for my application. I followed the tutorial for this on the dev guide and ran into a problem. The tutorial only used three tabs, but I have a need for more. As such, the tabs resize and bunch up. I was hoping someone could tell me how I can make them s...

Android - how to design an app that targets all platforms (1.5 and higher)

I have been developing an Android app and testing with a 1.5 AVD and the manifest setting of <uses-sdk android:minSdkVersion="3" /> My goal is to make this app available to all phones running 1.5 and greater. I had thought that as long as I develop to 1.5 then that was basically all I had to worry about and any phone running 1.5 or h...

Handler.sendMessageDelayed(msg, delay) not working correctly

I have defined a splashscreen to be shown during loading. But depending on the internet connection it can takes only 600ms to load or sometimes 5000ms. So i defined that the splashscreen is at least shown 3000ms so that the user is not irritated by flackering screen. I define the start of the splashscreen the following way: private vo...