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
...
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...
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...
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.
...
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...
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...
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">
<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 using listview as a part of the form .. something similar to select option in htmk is what i am looking for
...
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...
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
...
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...
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...
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 ?
...
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
...
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?
...
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...
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...
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...
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...
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...