Hi everybody, I need your help because i'm stuck in a problem!
I have 4 radiobuttons that shows respectively 4 different images.
Now i need to change those images after a selected spinner.
I used this code but doesn't work properly because the listener takes only the first radio button and nothing else.
Do you know how help me? I know th...
Everywhere I look online, it seems that I must use an animation to change views dynamically (like slide in, out). Do I have to do this, or can I simple just setContentView() on each new activity?
Thanks!
...
I'm working on my first Android app, and am almost to the point where I can start thinking about putting it up on the market as a paid app.
In the process of researching this step, I found out that it's basically trivial to break Google's copy protection scheme. I don't know how big of a problem this really is, or if we need to look int...
I have a ListAdapter with in this case contains a single item.
That item produces a view that has an EditText.
When the view get displayed I want to open the soft keyboard to allow the user to edit the field.
I tried to call in the getView() function of the adapter:
View edittext = view.findViewById(R.id.EditText01);
edittext.requestF...
Hi,
I've made a ListActivity. I have an xml file that defines the layout for this Activity. I also have an xml file that defines the layout for an item in that list. This item layout has 3 TextViews inside of it. If I add the inputType="text" property to one of these TextViews, the onListItemClick handler no longer executes when I r...
i get NullPointerException at the start of the for
where am i going wrong?
public void checkzone(Location loc)
{
X = new List<float[]>() {
};
Y = new List<float[]>() {
};
X.clear();
Y.clear();
float x = (float) loc.getLatitude();
float y = (float) loc.getLongitude();
float A1...
I can't seem to rotate properly an image on the entire screen. The problem is that when the image rotates, you can see the background in some areas. I want the image to fill the screen also when it rotates. Here is the layout. I've tried different scale types without success.
<LinearLayout
xmlns:android="http://schemas.android.com/a...
I've got two activities, one of them is called MyActivity. I want both of them to be able to use a function located in a class othat we may call MyClass. In MyClass, I try to use an intent to launch the activity AnotherActivity. Since the constructor takes a context as parameter, I simply tried to store a context from the activity in the...
Hello,
I start the activity (descendant of PreferenceActivity) from my worker activity as follows:
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data)
{
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == 1458)
loadInfo();
}
void showSettingsDialog()
{
start...
Hi,
I'm facing some problems with the progress dialogs. I use a managed progress dialog to show the user that an operation is being carried out with the following code written in the onCreateDialog(int id) function:
case PROGRESS_DIALOG :
{
dialog = new ProgressDialog(this); ...
Or am I going to have to write an app to do that??
...
Hello,
I am working on an app that connects to a media providing site and downloads mp3 files to the user phone. I would like for the user to be unable to copy these files off the phone but only listen to them through my app.
I am currently trying to encrypt the files using DES and encryption and decrypt and play the file in bits in th...
How can I make an array that handles some of my images so that I can use it like this?:
ImageView.setImageResource(image[1]);
I hope I explained well...
...
Hi,
Is there a way to get the height of the statusbar + titlebar? Checking the dev forum shows the same question but no solution (that I could find).
I know we can get it after the initial layout pass, but I'm looking to get it in onCreate() of my activity.
Thanks
...
I'm torn about how to implement this because Content Provider URI querys do not support the simple SQL "DISTINCT" query method to return a cursor to the Artists of the songs in the mediastore, removing any duplicate entries.
I can query and get a cursor to all the artists, I'm just torn as to how to remove the dupes, or simply not show ...
Hi
I'm using textview objects to hold labels such as Score, Level etc on my game screen but they don't seem to be displayed where I want them to be. I understand about view hierarchies (parents, children) and am using the gravity tags in the XML layout file but it doesnt seem to have any effect.
Could someone just quickly provide a gu...
Hi there,
I am working on a video editing app and on my Wildfire the camera app uses a sliding drawer for image adjustments, but it doesn't only list the options (as icons) but when you tap an icon the actual functions or adjustments that you can make are also part of the sliding drawer (see image).
I was wondering if I also could d...
Hi all
Here's my problem:
I've have an application with tabs.
in each tab I have a list that list to an other list then to a screen with an image, clickable text etc.
In one word I have Tasks inside tabs.
Question
Despite long seek among forum and tutorials I still can't figure witch is the best pactice to do that : switching activit...
Hello all,
I have a local Service running together with my application. I also have a class derrived from Application class.
When the local service is created it gets and uses the Application instance using getApplication.
Can the app itself be terminated while my service is still running and what happens if so? Would getApplication ...
Hi,
In android phone app, I use touch screen to dial a number. And then I place the phone next to my ear for the phone call. And android will show 'Double Tab to unlock' on screen to disable anything activated/touched.
Can you please tell me how can I do that in my own application?
Thank you.
...