android

Password protect system application android.

When a user tries to launch an application I want to suppress that application and then call another application. Example I want the user to authenticate himself before launching a particular system application (settings application etc). The authentication application should pop up every time the user launches the settings application ...

how to connect mysql server on external server in j2me application

I have a hosting account at godaddy ruinning Linux. Is has MySQL. I am creating a J2ME application that runs on android and I was wondering if there is any simpler way to connect from j2me application to my MySQL server? Is it required to install anything at my server? which I cannot do because of the shared account. Any way to just op...

Not able to view SDCard folder in the FileExplorer of Android Eclipse

Hi, I am not able to view SDCard folder in FileExplorer of DDMS in Android. But I was able to view SDCard folder when I used adb command from command prompt like below: androidsdk\tools>adb shell $ ls I am able to view list of folders when I typed ls in which I can see sdcard folder from the list of folders .my d...

Android How to preview an image, using its file path from SDcard, from my application

File is present in sdcard/image.jpg I would like to create my own application (activity). On a button press, the image stored in the sdcard needs to be displayed using the built-in image viewer. On pressing the back button from the Image viewer, it should go back to my running application. Need some help. ...

Android:Drawing Many Text Views

Hi, I'm new to android platform , I'd like to settext using textviews , I tried to write set text into two textviews but its just draws one textview why ?? I can't draw two textviews TextView tv1; TextView tv2; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); layout = new Lin...

Full screen App in Android: a good practice?

Is it a good practice to develop an app that uses the full screen? It is not a game, full screen would be just nice to have more space on the screen for GUI elements. But I have the dim feeling, that a full screen app could break some recommandations for good app design. The developer guide gives no answer to this. Who knows more? I'm...

Selector for Buttons not working after setting backgroundResource of the button in Android

Hi, I have applied the follwoing selector to all my buttons by specifying it in my theme: <selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; <item android:drawable="@drawable/my_btn_pressed" android:state_pressed="true" /> <item android:drawable="@drawable/my_btn_focussed" android:state_focused="true" /> ...

How to create a list view as a part of a form in android

How to create a list view as a part of a form in android using listview as a part of the form .. something similar to select option in htmk is what i am looking for ...

ProgressDialog created from onCreateDialog stops animating on second run

I create a ProgressDialog in onCreateDialog() like so: protected Dialog onCreateDialog(int id) { if (id == DIALOG_PROGRESS_ID) { ProgressDialog dialog = new ProgressDialog(this); dialog.setMessage(getResources().getString(R.string.MyLabel)); dialog.setCancelable(false); dialog.setIndeterminate(true); re...

linearlayout clickable? having listview disabled as only child

i want to have the parent linearlayout as clickable which i have done, but its only child is list view disabled which will not pass the event to parent any one? further more i actually want to notify the user to wait for loading data and should not allow the scrolling, of the list can any one help me with this thanks ...

How to get horizontal acceleration in Android?

I'm trying to translate the accelerometer values from the device coordinates to the world coordinates. It's not clear how to do this. I guess getRotationMatrix method can do sth about this,and I use the matrix R the method generated multiply accelerometer values but I did not get what I expected. Here is my code: public void onSensorCh...

Background task, progress dialog, orientation change - is there any 100% working solution?

I download some data from internet in background thread (I use AsyncTask) and display a progress dialog while downlaoding. Orientation changes, Activity is restarted and then my AsyncTask is completed - I want to dismiss the progess dialog and start a new Activity. But calling dismissDialog sometimes throws an exception (probably because...

Control Caps-Lock of android softkeypad

I have an EditText. The softkeypad should popup as "Caps on" state, when I want to edit the editText. Is there any way to do this ? ...

Set Timeout while accessing .NET Webservice from an Android application using Java SOAP jar

Hi, I wanted to set the Timeout while accessing the .NET Webservice from an Android application using JAVA SOAP jar . Kindly provide the code snippet for implementing the same. Warm Regards, CB ...

Decimal separator comma (',') with numberDecimal inputType in EditText

The inputType numberDecimal in EditText uses the dot '.' as decimal separator. In Europe it's common to use a comma ',' instead. Even though my locale is set as german the decimal separator is still the '.' Is there a way to get the comma as decimal separator? ...

Android Illegal Argument Exception

I have the following program i got the exception below, package com.contacts; import java.util.ArrayList; import android.app.ListActivity; import android.content.ContentResolver; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; imp...

Android:To have a transluscent background for an android activity?

Hi, I wish to have a transluscent background for an activity, so that the previous activity can be seen beneath this activity. Something like a transluscent menu that pops up over a videa being played in the background. Is this possible? Can you tell me how? Note:I cannot use the default transluscent theme from android, since I am usi...

android : dynamically changing the linearlayout width or height

Hi, I am trying to change linear layout or any other widget width or height dynamically but throwing exception. My layout is =>>>>>>> android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="ghghjkgj ghjg hjgj ghj g hjgjgh jhg " /> and My activity is =>>>>>>>>>> public void onCreate...

Is it possible to place one view over another in android?

Hi, Can we place a small view over another large view? For example, i have a VideoView which is playing a file in the background. Over this, somewhere in the middle/corner, I want to place another ImageView. But in Linear/Relative Layout, views can be placed only one after another or relativ to each other. And Absolutelayout is advise...

Android-Hello World

Hi there, I'm currently learning how to create android applications so I started with the basic "Hello World" tutorial over at the Android Developers home page. The code is quite simple but when I run it(I'm using Eclipse and a AVD v2.2), it only shows "Android." It does not go to the Home Screen. I updated everything and I still get th...