android

Checking RadioState in my Application

Hi, How do I check the current radio state in my application? I'm interested in the RadioState defined in CommandsInterface. My application checks for the current radio state: The state would be RADIO_OFF when Airplane mode is active, and NV_READY when radio us up. Is there any other way to get the status of the fields that I'm lookin...

How we place the images in rectangle at runtime depending on some condition.

Hi I am displaying bitmap images in canva and rectangles also.I am moving that bitmap to tectangle depending on some condition(if condition is ok) i am placing that bitmap into rectangle otherwise that bitmap come back to its previous place.Place the bitmap in rectangle not at the time of rectangle draw.Depending on some condition i want...

Is there anyway to implement Full Text Search (FTS) in SQlite from Android platform?

I am trying to create an application which collects a lot of notes from users. I want to implement full text search on the notes so that the user can get relevant notes from the whole array of notes. I am looking for a solution for this. Full-text-search(FTS) is actually supported by SQLite, but is it available for Android? Can anybody ...

android twitter xauth example

Android: I am trying the following xAuth example for android share. http://stackoverflow.com/questions/3280328/xauth-authentication-for-twitter-share-in-android System.setProperty("twitter4j.oauth.consumerKey", "your token"); System.setProperty("twitter4j.oauth.consumerSecret", "your token secret"); Twitter twitter = new TwitterFactor...

Need help chosing a Game Engine for Android

I am thinking about creating some games in Android using an engine. The game will be in birds eye view and you will be similar in style to Command & Conquer. I will need to use some game AI as well so I want an engine that has that support also if possible. I am prepared to pay money if necessary Some Free ones I don't think they con...

Install android sdk 2.2 on htc g1 device.

Hello all, On my android htc g1 device currently there is 1.6 sdk is install. But now i am working in android 2.2, so now i want install this new sdk in my HTC g1 device and i am working on Linux machine. I don't know how to do this. Help me... Many Thanks ...

what is the folder of sdcard and how can i create files and read and write them in it.

please somebody tell me what is the folder of sdcard and how can i create files in it.because i am new to android and i have googled so much but could not find any comprehensive stuff.i want to create file in sdcard manually. please help. here is my code i have written but now it says fileNotFoundException. hence i have created a file i...

Android ExpanableListView and CursorTreeAdapters -- StaleDataException

Hi, I am trying to create an ExpandableListView from Cursors. The underlying database/table contains Group data and Child data as multiple rows. I am running a distinct + group by query to get the Group data and a separate query for the related Child Data (using a whereClause). The child view contains EditTexts and I have put FocusChan...

Failed Binder transaction

Can anybody tell me the reason for !!!failed binder transaction!!! error??? I can see this error message in logcat I am getting this error while trying to put an bitmap dynamically in a widget.. ...

textview.getLineCount always 0 in android

Hi all, I'm trying to dynamically resize my textview but getlinecount() method always returns me 0 even after settext() and invalidate(). I'm using the following code: if(convertView == null){ convertView = lInflater.inflate(R.layout.listview, null); holder = new ViewHolder(); holder.text2 = ...

Map Marker Management, Android

Hi, I have a map that dispays markers. If the user clicks on a marker a popup shows up. A method calculates wheather there is a marker at the clicked position. My Problem is that I have a lot of different markers, but in this method I can handle only one specific marker. I need something like a general bitmap, that holds all marker re...

Android AsyncTask problem

Hi! I have a string that I want to update using AsyncTask class here is my code: public class MainActivity extends Activity{ private String str = "oldString"; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); se...

how to set custom layout for gallery view

friend's I need help on setting gallery with custom layout,because i need the galley view have curved face at both ends(right and left),how can i get it. Thanks in advance. ...

ListView with checkbox

How do i on checkboxselected , show a toast that has data from database? Thank you. ...

Change content of tab on button click

I have been reading a lot of comments on how it is more lightweight to use views instead of intents in setContent when using tabs. Since I will be creating an app with tabs, I am trying to implement this instead of having intents inside setContent. However, I am having a difficult time looking for examples or straightforward tutorials o...

On resart activity how to clear stored variables?

When I restart an Activity using Intent intent = new android.content.Intent(); intent.setClass(this, this.getClass()); this.startActivity(intent); A lot of the state is remembered, but I want to clear it all (its a rare exception handler that I am using to try to clear all). ...

Android Data Encryption dilemma

I'm creating an application that encrypts data with a key that is created each time the user logs into the app. However, there are times when data will be received via a BroadcastReceiver that needs encrypting, but the user is not logged in and so the encryption key is not available. Security is pretty important and so using a key stored...

How to config computer/phone network to access local web server via USB (Android:GAE)?

Current configuration Use Android emulator and GAE tools (to access local GAE service I set uri http://10.0.2.2:8888/XXX and it works. Question I would like to use Android device(phone) via USB to call web service running on connected "local" computer. What is best configuration practice ((I don't have static IP) I am using mac and ...

HTTPResponse debugging

I would like to know if there is anyway to debug the HTTP response with the android emulator. my logs show that the response is not arriving complete to the application and i would like to know if it is the server that does not send the complete response or if my application is not processing the response completely. I tried hooking up ...

How to keep a Android app always running?

Hi all, I am writing an android app which must be always running in the background untill user exit it from the app's menu. But now I notice that in Android after some time my app is stopped by itself without user intervention. Any idea how to make sure my app will always be running in the background? Thanks In Advance, Perumal ...