android

Android: How to detect if users if within distance of GeoPoint on MapVIew

I have an application with a map and an ItemizedOverlay, and need to determine if the user is within a certain distance of a GeoPoint on the ItemizedOverlay. If thats the case then start a new Activity.. How do I approach this? ...

Placing two TextView together..issue

Hi All, i need to place two text box in such a way that it sloud look like this.. =================== Username contents contents contents contents contents contents contents contents contents contents contents contents contents contents contents contents ==================== Here, the Username is one TextView which is Clickable a...

need help on pointing findme location in mapview without taking long time

friend's I need help on pointing mapview findme location option,when i click find me from map it shows location without identificaton,after long time only the circle with pin point appears,but i need it to appear immediately,what can i do what the problem is. Here my code for findme click event... try { ...

Yahoo Messanger Client for Android

Hi, I am developing YM client for Android.I've included openymsg0.5 api ,when i run the program it shows following error. ***ERROR/InputThread(262): error on process packet ERROR/InputThread(262): org.openymsg.network.LoginRefusedException: Login Failed, unable to retrieve stage 2 url ERROR/InputThread(262): at org.openymsg.network.Se...

Android Thread details

I can create a class which extends Thread and overrides the run method with a loop. I then start it with myThread.start(), which create the OS thread and executes my run(). That's all good. However, I don't quite understand the details. I'll have a go at working this out using test code when I get the chance, but before then can anyone ...

Find out if resource is used

I am looking for an efficient way to find out if a resource (mostly a drawable) is used in java or in an XML file. The problem is, that on my current project the drawables are changed often and now I have some drawables, which might never be used. Is there a tool/way to find those unused drawables without search each filename in the wh...

Using phone and bluetooth headset with Walkie-Talkie functionallity

Hey guys! I wonder, if the following task is possible: I've got a bluetooth headset. I connect this headset to my phone. My app should popup a dialog, which discovers, that there is a headset connected and a button would forward it to some activity. There it should be possible to hold a button and talk through the normal phone mic. The ...

android.provider.Telephony.SMS_RECEIVED not available!

I'm trying to create a new SMS receive listner. I have googled the problem and all I found was it requires android.provider.Telephony.SMS_RECEIVED but it doesnt exist in android 2.2 how to listen to new incoming messages is my question.! ...

Android intent filter, associate app with file extension

This has been asked many times, but no working answer was given. I have a custom file type/extension that I want to associate my app with. As far as I know, the data element is made for this purpose, but I can't get it working. http://developer.android.com/guide/topics/manifest/data-element.html According to the docs, and a lot of forum...

Android: invoking a regular Java-style program with i/o redirection

Hi, I have an apk (or .class, whatever) with a 'public static void main'-method (java style) which does some things. Compiling and installing the apk this gives works fine (from eclipse). Now from a regular Android app I would like to invoke that code while redirecting its stdin/stdout to Input-/Output- Stream objects. Is this possibl...

Rotating image. Animation list or animated rotate? (Android)

I want to create a rotating progress image, and wonder what's the best way to proceed. I can make it work with an animation list with for example 12 images changing every 100ms. This works fine, but it's quite tedious to create 12 images or for every size and resolution: <animation-list xmlns:android="http://schemas.android.com/apk/res/...

scaling view dynamically

Hi i want to display 4 frames in layout which contains customized views.when ever i clicked on one frame it has to occupy total screen. please let me know how to do . ...

can i modify the way an android device captures audio

I would like to sample the data that an android device captures. How can i do this? I want to save this as preference and always give this sampled audio other applications which make use of microphone captured audio, like dialer for example. ...

How to Block the Sending Mails to a Particular Domain in Android?

Hai Friends, I have created an Application which sends email to any domain, but my wish is, ie i want to restrict the user to send mail only to a particular Domain, I am very struggling to implement this. The code for sending Email is given below, can u pls tell me what change i have to do to achieve my target mentioned abo...

Implement signature-level security on Android services with more than one allowed signature

Hi folks, I'm developing on an application at the moment which contains quite a lot of personal user information - things like Facebook contacts, etc ... Now, one of the things I want to be able to do (and have done, quite effectively) is open up parts of the application to "3rd Party" applications, using Android's build-in inter-proces...

Can android Emulate a HID device?

I was attempting to design an app that would allow me to have android emulate a hardware device. I.E. a generic keyboard, a generic mouse. I could essentially plug in my android (HTC) to a computer, and program it to use a software keyboard as the computers hardware keyboard. I don't have any direction on how to accomplish this. I on...

How to write files to assets folder or raw folder in android?

I am working on some a application where I have to update some files present in assets / raw folder runtime from some http location. Can anyone help me to by sharing how to write files in assets or raw folder programmatically? Thank you for help. dwarkesh ...

Password text dont completely convert in the password character on orientation change

I uses EditText to read password from user. When we enter text in the edit view, if we change the orientation before the last character entered changed to password character(dot), the last character never gets converted to password character. Example: Let we want to enter a word stack as password.As we enter the character it changed to ....

Adding photo as attachment from photo application on Android

I have an application that 'registers' itself to images. I.e if I open Photos application, select a photo and press 'Share' my application will show up in the list. If I press on my application it will launch. Now I would like to get the image that i previously selected to share within my own application. How do I do that? Is there a met...

update sql database with ContentValues and the update-method

Hello all, i would like to update my sql lite database with the native update-method of the SQLiteDatabase class of android. ContentValues dataToInsert = new ContentValues(); dataToInsert.put("name", "flo"); dataToInsert.put("location", "flotown"); String where = "id" + "=" + id; try{ db.update(DATABAS...