android

Titanium vs The Native Tools

Hi, I'm still checking everything out. I'm wondering what the limitations are if we develop the app using Titanium. What cannot be done using Titanium, for iPhone and for Android? What things can only be done using only the the native tools? I heard that performance could be an issue. How bad is this going to be? Thank you in advance...

How to do 'busy' animation in Android ?

Doesn't seem to be covered in the books Ive looked at. ...

Android: Location.distanceBetween units and emulator not sending coordinates properly

Hy everyone, I have two questions 1) I have not been able to find out in which units Location.distanceBetween receivs the latitude and longitude. Is it degrees or microdegrees? Whats the unit for the distance returned? Sorry for this noob questions but I have not been able to find anything on the documentation. 2) In windows XP using E...

Android: chronometer as a persistent stopwatch. How to set starting time? What is Chronometer "Base"?

Hi! I do have one service running in the background. Whenever it starts I store in memory the starting time in milliseconds: startingTime = new Date().getTime(); I want to display a chronometer that starts counting when the service starts and never stops until the user presses a button. I want to allow the user to leave the activit...

Connecting to tcp server from client running in android device

Hi, I am trying to connect to a standalone desktop tcp server(java) from tcp client application in android device. But I am not able to connect to that. I tried to write a desktop tcp client and tried to connect to server(remote server). It is working fine. But When I am trying to connecting from android, I am getting a IOException wh...

Launch Time of an app...

What is the best way to launch an app and calculate its launch time in android(if it can be done with some code,then its better) ...

getting sqlite exception when insert ? how to???

i created the database like this db.execSQL("CREATE TABLE "+TABLE_NAME+" (" +_ID+" INTEGER PRIMARY KEY AUTOINCREMENT," + TITLE+" TEXT UNIQUE," + PUBLISHED+" DATETIME," + CONTENT+" TEXT," + RATERS+" TEXT," + VIEWCOUNT+" TEXT," + THUMBNAIL+" TEXT," + FAVCOUNT+" TEXT," + FAVSTAT+" INTEGER," + LI...

android - how do i add >1 views in one cell for tablerow?

as above, how do i put 2 views inside one cell in a tablerow? below is my code: TableLayout v = (TableLayout)inflater.inflate(R.layout.featureitem2, null); // v.setColumnStretchable(0, true); //adds each productname to the table if(productName.size()>1){ TableRow pnamesRow = new TableRow(t); pnamesRow.ad...

Android Development Machine

Hello Android community, With the latest SDK release, and the ability to download separate platforms releases into the SDK, the hardware resources required to develop for Android have increased significantly. Assuming that the developer targets all currently available seven platforms - that could take your dev machine to its knees. Take...

How to have a translation service in android app

How can a translation service be called in an Android app? Can we have an app that can translate multiple languages into another? ...

Camera Preview Issue?

In my Application the camera preview is working properly in both in potrait and in landscape mode .No crashes are occuring.but the users are complainting that the crashes are occuring when they are using the same. what is the problem with this? please anyone help me to solve this issue ...

Sharing resources between service and application in android

Hi All, The code I am trying to implement includes a service and an application. When the application is first launched, it starts the service using the startService(svc_name) call. Here svc name is an intent pointing to the class that runs the service. I want to share a resource(file/socket connection) between the service and th...

Android application stops unexpectedly

In the emulator, it shows me the infomation: The application my_app_name (process pack_name) has stoped unexpectedly.Pls try again What is the problem? Because i just add many field in the layout.xml file? I am a newbie in Android development. Thanks you for your help ...

Android emulator: disconnect GPS device from provider

I am developing a GPS enabled application on Android. There is no problem with the map display, but I want to test how my code would react to the situation in which the user enters a room, basement or a cave, so that the device would stop receiving any signal. My question is whether I can simulate this programatically or by using the DDM...

Android video stream capture for AR

Hi, I would like to be able to capture the video from an android phone camera, and then process this video. Processing involves adding a layer of AR to the live stream. Is this possible on android? Pretty sure it should be. I have looked at the android site [http://developer.android.com/guide/topics/media/index.html] but this seems to...

Android - Add typed objects to spinner widget

Hi, I have a Website class that has 3 get,set properties ID, Name, URL. For other hand i have a method that gets from database websites, and return a List I would like to bind this List into a Spinner. My questions are two: Its possible to add these websites list into a Spinner ? As my website class has the property ID and Name, i...

Starting Activity through notification: Avoiding duplicate activities

So I am currently showing a notification. When the user clicks this noticiation, the application is started. The notification persists, to indicate that the service is running in the background. Intent notificationIntent = new Intent(context, LaunchActivity.class); PendingIntent contentIntent = PendingIntent.getActivity(context, 0, noti...

how to Remove text onfocus of EditText in android?

I have a scenario, for example, a EditText in acitivity instead of using Textview as a label of it i want to put text "UserName" inside EditText and if user clicks on it. it should disappear and EditText should get empty to enter data in it. How can I achieve this? ...

how to check internet conection in android?

dear friends, i want to check internet connectivity in each activity if lost then it should display a message. can any one guide me how to achieve this? any help would be appriciated. ...

php xml response gave me this after android sax parsing: XML or text declaration not at start of entity

i need to parse this php xml response in android: <?phpxml version="1.0" encoding="utf-8"?> <SmsResponse> <version>1</version> <result>0</result> <resultstring>failure</resultstring> <description>error</description> <endcause></endcause> </SmsResponse> ...