android

How do I use InputFilter to limit characters in an EditText in Android?

I want to restrict the chars to 0-9, a-z, A-Z and spacebar only. Setting inputtype I can limit to digits but I cannot figure out the ways of Inputfilter looking through the docs. ...

How to get the instance of the dialog (like DatePickerDialog, ProgressDialog, TimePickerDialog) after it pop up

the precondition: I'm working on the android automated test, so we can not touch the source code of app, but just test it. the question: How to get the instance of the dialog after it pop up? After we get the instance of it, it will be so convenient for the further operation, like directly set the value of it, instead of send the k...

MediaPlayer not playing sounds on DroidX

I have some pretty simple Soundboard applications on the Android Market that work flawless on an LG Ally, the Motorola Droid, and the Nexus One, but I recently received an e-mail from a user with the Motorola DroidX claiming that most of the sounds do not work. I've exchanged a few e-mails with him. He claims the Soundboard is the only...

Problem when try to insert in Content Provider[RESOLVED]

Look what Im doing. Im getting a SMS message and breaking word by word using the StringTokenizer class.I've done this, but when I try to insert the word in the content provider, the application stops, and the emulator says the application stoped unexpectadly. I don't know what to do anymore, I've tryied everything you can think about, b...

Debugging Web Requests on an Android Device

Is there a way to route requests made through the web browser on an Android device through Fiddler? I would like to debug web requests that my device is making when I load a web page, and the equivalent emulator not necessarily giving me the same results. Thanks, Dave Morris ...

what does mean about battery_level in event log

I got a event log information I/battery_level( 1147): [0,3200,420] I look up event-log-tags and find: 2722 battery_level (level|1|6),(voltage|1|1),(temperature|1|1) I find the follow information in the file for the format. Optionally, after the tag names can be put a description for the value(s) of the tag. Description are in the ...

Android:how use to my file

How can use in my raw(html file) to webview? ...

How to make real time log for incoming/outgoing/missed calls on phone...

Please Help me in making real time call log... I want to create real time log for incoming/outgoing/missed calls in my phone but i am unable to do this as it seems impossible to have account of running calls. i am getting last call in call history but not the running one. Please suggest some method to implement this.I need help urgent...

How to configure ListView to automatically change its height?

I have three ListView widgets in the same LinearLayout. Something like this (I'm omitting XML elements that are not relevant in this example): <LinearLayout> <ListView android:layout_width="fill_parent" android:layout_height="360dp"/> <ListView android:layout_width="fill_parent" android:layout_height="360...

Rotate image in RemoteViews?

I am creating an Android widget. This widget has a ImageView on it. I would like to rotate the image in the ImageView - is there any way to do this (without manually creating new images in a desktop photo editor such as Photoshop and including them in the app)? ...

BaseAdapter or ArrayAdaptor - Android

I am going to make a grid of images and I am trying to figure out whether to use an array adaptor or a baseadaptor. While the GridView example, stores the data in an array, it uses a BaseAdapter rather than a ArrayAdaptor. I am curious why this is. One thing I noticed about an ArrayAdapter, is that its constructor takes a textViewResourc...

SQLite android login and register

From the previous question I asked, I am still having the same question. I do not know how to use database (SQLite) to 'sync' with my application to log in or register package log1.log2; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickLis...

How to embed android contact to MY application

I want to access contacts in my app and don't want to start the native app, but write my own contacts listview and processing filter is too much tricky. So is it possible to embed the contactslistview into my application? ...

How to convert xml to sqlite database in android platform?

I have a xml file with info inside. I want to convert the xml file to sqlite database without using a SD card in android platform(Java Language). Does anyone have any idea how to do it? ...

Is it possible to create a php based iphone/android app with PhoneGap or Appcelerator?

I want to be able to make an iphone and android app using php. I have looked at phonegap and appcelerator and it seems like only html and javascript can be used. These frameworks want to make it easy to make apps using web technologies and PHP i would argue is one of the biggest web technologies, but I'm not seeing much (if any) support....

When should I close the cursor that I supply to ListView

Hi, I supply a cursor to a ListActivity like this: My question is how/when should I close my cursor when I am done? Cursor cursor = getContentResolver().query(uri, null, null, null, null); if (cursor != null) { mCursorAdapter = new CursorAdapter(this, cursor); setListAdapter(mCursorAdapter); } ...

tooltip in android

Can anybody help me to create a tooltip in android ? ...

Off the shelf or roll my own?

I want to take an Anroid based tablet - not a phone, I need a large screen and I don't need 3G. The guy with the tablet will attach a web cam to it and a s/w application in the Adnroid tablet will stream the cameras feed to a web page (there may later be a need to stream video back to the Android tablet - tbd). Additionally, I need 2 w...

Is Zeroconf API available in Android ?

Does android 2.2 have support for Zeroconf and MDNS related APIs ? ...

Emulate android preference category look/feel

hello, i like title bar style in android preference category. In my activity (no preferenceactivity) i want to use same style, how i can do? Thanks. ...