android

In Android is it possible to send sms message to more than one recipient in code?

Using the smsManager class can I send the same SMS to multiple numbers at the same time? Or would I need to do some sort of loop? I want to send the sms from within my app not through the messaging program. ...

Alternatives to using a Service for BroadcastReceiver Logging

Seems that a Service on Android is not the most popular method for implementing a persistent process for performing some background activity in Android. The suggestion is to use something like the alarm manager - however I am not sure if it is applicable to my situation. Advice welcomed. What I am trying to implement is some background ...

Pattern recogntion - Magic the Gathering Card

I am hoping to create a program on my android (and/or more likely back at the server) to use the camera on the phone to capture an image of the card and break it into the corresponding parts and use them to identify the card to use in a database of my own creation. The pattern recognition is where I could use help. Ok, a card has a bla...

How to use Rotating Progress Bar?

Hi i'm using Rotating Progress Bar in my Android Music Plyer Application....I'm not able to stop it. While working with horizontal Progress bar i used handler to stop and start it. But while working with Rotating One, The progress bar goes into Infinite Loop..... Can you please suggest method to stop the indefinite loop. Thanks in adv...

Videoview, wrong size in vertical mode

Hi. I stream a Video from URL. That works fine. My Problem is, when I start the stream (vertical) the video is to big. It goes over the right border and takes all the height from the display. How can I do that the video is always only has the max values from his parent? In horizontal mode the video has the correct properties. XML: ...

what is the difference between CharSequence[] and a String[]?

Hi , what is the difference between CharSequence[] and a String[]? plz helpme.. ...

Size of android notification bar and title bar?

Is there a way to obtain the size of the notification bar and title bar in android? At the moment I obtain display width and height with: Display display = getWindowManager().getDefaultDisplay(); int width = display.getWidth(); int height = display.getHeight(); After that I want to subtract the sizes of the bars so that I can stretch ...

SearchDialog & ListView

Hello everybody, i got this wired issue with the SearchDialog. I followed the tutorial on Using the Android Search Dialog Everything works fine the search is available from any activity and does his job. So my problem is that when i invoke the searchactivity with the SearchDialog, my imageorder in the listview, i use, is confused. th...

Which unlocked Android 2.2 phones are close to or better than the N1 for development?

I hope this isn't too off topic for this forum, but I have been developing Android apps using an unlocked N1 with 2.2 and would like to continue with two additional unlocked Android phones. A similar question was asked in January, but much has changed since then, eg: Brightstar is out of N1 stock and there are a lot of new devices on the...

Can an ACTION_USER_PRESENT BroadcastReceiver not be registered in the manifest?

Hey all, I see that multiple broadcasts (ACTION_TIME_TICK, for example) cannot be registered in the manifest, the must be explicitly registered via Context.registerReceiver(). I am having trouble with the ACTION_USER_PRESENT broadcast intent. Specifically, I test on the emulator and my application keeps force closing with the error: ...

How to add items to a ListView during runtime?

How to add items to a ListView in Android during runtime? ...

Android - TextView height issue according to content (text)

I have a RelativeLayout whose layout_height is set to "wrap_content" and inside that I have a TextView whose text is set at runtime. I have set android:layout_height="wrap_content" to my TextView, but it doesn't seems to change the height of the Textview even if the content is larger than 1 line. It only takes the height of single line...

Load class from the internet/filesystem in Android

Is it posible to load a class from the internet in Android? My app would download a class with some data, save it on sdcard, and then load the class. I want this because loading data via classloader is much faster then from a file. ...

window.open() returns undefined when called from setTimeout on Android

I am having strange behaviour on my Android emulator. window.open() always returns undefined when called from setTimeout or callback function e.g. AJAX callback. However window.open() successfully opens a popup when called from an event handler e.g. onclick here is sample code: <html> <head> </head> <body> <script type="text/jav...

Intent.getData() is null when trying to read contact data on device

I am writting my application using api 1.6. The code runs just fine on the emulators 1.6-2.2. But when I try to debugging it on my device which runs 2.1 data.getData() returns null. I have this in the AndroidManifest.xml <uses-permission android:name="android.permission.READ_CONTACTS"/> Any one have any thoughts. I am new to android, ...

I am trying to generate SMS notification to application.

I am trying generate SMS notification to application in android. I have a client application which is capable of generating the events, from the server side if i requesting to generate a SMS the client application will generate SMS in the phone. How to do that, also i am new to android whether this is possible. i tried with the below sam...

How can i manage Simultaneous activities in android

how can i improve the performance of simultaneous processes agains the time and space in androied? ...

Android Database Access Design Approach

I have a general Android design question around data access. I have a number of activities in my application that need to access a SQLite database. In order to wrap up all data access logic in one place I have created a DatbaseHandler class that takes care of all data access logic. This class takes care of building up where clauses, call...

How to display a custom view in Android?

I am generating a custom View that contains a number of drawables that are added to the View dynamically. This means the View's size could be anything, and is likely to stretch off the screen. Where it does stretch off the screen I want scrolling to be enabled. So far I have tried: adding the custom view directly to my Activity - this...

Parsing a XML file in Android

Can anyone provide me with the info to parse an XML file in an Android application... any link on this will b helpful... ...