android

AVD (emulator) won't start on Linux

Running Ubuntu Lucid, 32-bit. Eclipse Galileo with Android SDK Tools installed. After setting up an Android Virtual Device in the Android SDK and AVD Manager: Name Target Name Platform API Level TestDevice Android 2.2 2.2 8 ...clicking the Start... button does nothing--no errors anywhere, no sounds, no wi...

howto handle mailto: in android webview

I am trying to intercept mailto: links in an embedded webview in my app. What I have is working ok, except when the user presses the link it is blurred upon returning to the app. Here is what I am doing in my WebViewClient @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { if(url.startsWith("mailto:"...

Multicast on Android 2.2

Has anyone gotten Multicast to work on Android 2.2, specifically JmDNS for Bonjour service detection. There are many questions & answers from the Android 1.5->2.0 timeframe, including on stackOverflow, that indicate varying levels of success, and a bug in the bug tracker that indicate it was fixed, and closed, for 2.2 (http://code.googl...

Android Edittext Cursor and Highlight Problem Options

I am trying to implement a textview which has select text/copy and paste functionality. I tried to do this by making an Edittext with the following properties. I currently have the following Edittext: <EditText style="?android:attr/textViewStyle" android:editable="false" ...

Android push new instance of main Activity?

Is it possible to create/push-onto-stack a new Activity of the same main Activity in an Android application with an argument passed to the Activities constructor? Specifically from a Dialog object... ...

Android Calendar "Grid of Dates"

I am looking for an Android open source Calendar control which displays the full month in a grid, much like a real printed-on-paper calendar. It's for an app to show special days. Like this from my iPhone version we are porting: ...

getCallingPid() returning my PID in onBind()

I am just getting started with Android programming, and I have implemented a very simple remote service. I am able to bind to my service from other processes and send simple "ping" and "pong" messages back and forth. (I am not using AIDL, stubs, etc. I am just passing Messages and using the what field.) I am now investigating permiss...

How to make an Android app that can edit MP3 files ?

I want to make an app that downloads a specific MP3 file, allow the user to crop/trim it and re-upload it back to our server. How can I trim MP3 files inside my app ? Do I need to achieve this in C and then port it/use NDK ? If MP3 is tough, I can switch over to other easy formats too. Will be great if anyone can show me the right path....

What is the best way to stop an activity and alert the user?

I have an application that must create a database and if that fails, then no sense moving forward. I've built an AlertDialog and show() it but it never displays. The logic falls through and then barfs because of the missing database. What is the right/best way to throw up a message and halt the activity? The code below executes fine ...

Setting up the IMediaPlaybackService for Android.

Hello all, I'm having trouble with the IMediaPlaybackService for Android. I'm told that all I need to do is place it into its package (in this case, com.android.music), however I can't get my project to build when I do this. The code for IMediaPlaybackService is as follows: /* //device/samples/SampleCode/src/com/android/samples/app/R...

Accessing Android Service Through Global Object

I've a simple service that several of my activities need to access. The standard approach seems to be: Create ServiceConnection to specify what to do after binding [with the service object] call bindService with ServiceConnection But that requires calling bindService at least once per activity. What if I call bindService exactly once...

How to control Activity flow - Back button versus Home button

I have 3 activities in my app: Activity1 -> Activity2 -> Activity3 Inside Activity3, if the user presses Back, I would like to return to Activity2. In Activity3's onPause event, I added a finish() statement. That's probably not even necessary, but I wanted to make sure this Activity gets cleaned up. This works fine. However, while ...

List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView

I am new to android, and ended up (have to) ask a question here, Let's make it simple, I simply want to make my own TextView-like (MyView extends View), this is my code: public class MyView extends View { private Paint mPaint; private String mText; private Bitmap mBitmap1; private Bitmap mBitmap2; public MyView(Con...

Android - locking mic to audio signal

Do android sdk supports opening the Mic to lock in a audio signal which would cause the app to trigger a function. ...

Returning through multiple functions

Alright, this might be kinda simple, but I cannot figure out how to do this. How can I change this function to return the String class_name? I know that I need to change the function from void to String, but what else do I need to do? Much appreciated! public void addClass() { AlertDialog.Builder alert = new AlertDialog.Builder(thi...

Help With SharedPreference, For Android Live Wallpaper

Ok well I need help adding settings to choose which texture to show you should be able to tell what I mean because there are already two set up. i have the gui for the settings set up along with the activity I just can't figure out how to implement it. If you can help me I'll credit you in the app in the settings and the market post. Alo...

android: Adding a Custom action button in the softkeybord

Hi all i need to know to how add a new custom action button exactly at the lefthand corner of my soft keyboard...so once i tap on the ok(my custom button name), it should force the softkeyboard to hide. if possible please provide me with some reference.. Thanks in advance.. ...

how to show the html contents to the webview using android

Following is my html content which i want to show in the webview using android sdk. It will displays only //Please but when i put this html content into the browser then it shows differently. <br /><br />Read the handouts please for tomorrow.<br /><br /><!--homework help homework help help with homework homework assignments elementa...

[Android] Layout Parsing Xml

hi.. i'm make example parsing xml from http://www.androidpeople.com/android-xml-parsing-tutorial-using-saxparser/ in this example, layout using an array textview.. I tried to change the layout into a ListView, but is not working.. I get error in adapter.. can anyone help me? ...

How to retreive contacts from emulator to my application in android?

Hi Anyone please help me solve my problem. i want to create a contact list application in my android phone.i want to retrieve all the contact list from emulator and the contacts should be listed.so please help me in this . Thanks in advance Regards Revathy ...