android

TabWidget not stable at the bottom in Android? Why?

Hi folks, I set my tabWidget at the bottom. When i want to edit the edittext the keyboard will raise up. But the tab widget come above the keyboard. To support for the multiple screen i set the android:layout_weight="1.0". After that, I got this problem i added my layout code below. any idea to make the TabWidget at the bottom stably? ...

TableLayout formatting loss after device rotation

I'm seeing a strange issue with a TableLayout after the device is rotated from either orientation. If you load the view in either portrait or landscape mode, the table loads fine. But once you rotate the device, the columns collapse to just fit their width. I would expect that after rotation, the columns would still stretch to fit the...

How to update a TextView on ButtonClick with Spinner(s) values

Hi, I am trying to populate a TextView based on the current selected options in 3 Spinner(s) but cant seem to figure out how to retrieve the selected values from the Spinners to invoke the update function with. Here is my current code (quite messy but I'm just learning Java :)), public class AgeFun extends Activity { private String[] d...

android hellomap example giving exception

06-14 22:13:33.992: ERROR/AndroidRuntime(331): Uncaught handler: thread main exiting due to uncaught exception 06-14 22:13:34.031: ERROR/AndroidRuntime(331): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example/com.example.HelloMap}: android.view.InflateException: Binary XML file line #6: Error inflating class c...

runtime exception ListView whose id attribute is 'android.R.id.list'

hi, I am getting a run time exception java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' I dont know what is wrong>can anyone please help me @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.newsli...

vb classic coder to android how to transition?

Hi guys. I'm a VB/vba coder and would like to start android dev. Currently I'm learning Java from scratch and. Its quite tough. I've read about oop but never actually written any OO code. Java syntax is also quite foreign but I'm getting the hang of it. My question is, which is absolutely the best transition path for a vb old dog to writ...

Changing layout positions at runtime

I would like to change the position of a view at runtime based on either mouse movements or sensor data such as the heading. I have a Tab Group, first tab calls an Activity PeopleNearMe. In PeopleNearMe I call MyListView and set it as mPeopleListView. The layout for mPeopleListView is defined in XML. I need to be able to change the po...

Android ListView: getTag() returns null

Hallo all, I have a ListView which contains a Button in each line. The following code is part of the getView() Method public View getView(final int position, View convertView, ViewGroup parent) { View row = convertView; TextView tv; Button saveA_button; EditText edittext; FITB_ViewWrapper wrapper...

Droid Incredible Not Returning Valid DeviceID?

I have an application that utilizes the phones DeviceID in various ways. I am now getting emails from users who have the HTC Droid Incredible phone that they are getting the error message I have added to the app that is showing the DeviceID being returned is not valid - which means it is either empty/null or the default ID used in t...

How to display data in TextView

I have a view in which there is a text box where user enters data, when clicks on submit, I want to store the input and display in another box. final EditText edittext = (EditText) findViewById(R.id.edittext); mText = (TextView) findViewById(R.id.timepicker_input); How can I do it, please help ...

Vala for Android?

Is it possible to write a Vala application and get it to run on an Android device? ...

multiple dependent android projects in eclipse

Hi there! I just started to play with android dev and java+eclipse is pretty new to me. I managed to create simple project and run it on my device. Now I want to create simple game (more of them actually) and I would love to use shared code base for all of them (game loop, initialization, etc..). Problem is that I have no idea how to c...

Assigning ID to a Row in an Android ListView

I have a ListView. When an item on the ListView is tapped, it loads a SubView. I want to assign an ID to each row of the ListView, so I can pass that ID along to the SubView. How do I assign a specific ID to each row in the ListView? Here is how I am currently loading the ListView: setListAdapter(new ArrayAdapter<String>(this, R.layout...

Android: Can rawQuery be used for a local search in Android apps?

Hi everyone, I am trying to implement a local applications search for my Android app and I'm having difficulties. I've set up my searchable.xml: <?xml version="1.0" encoding="utf-8"?> <searchable xmlns:android="http://schemas.android.com/apk/res/android" android:label="@string/app_label" android:hint="@string/search_hint" > ...

Can you run Android Market from a virtual device?

Can you run the Android market app in a virtual device(a simulated android) or in the emulator? ...

Where should I report mistakes in Android documentation?

This is my first post ever -- I love the Android SDK (been at it for a week), but I did notice a small typo in the official documentation that needs correcting. On this page within the example source code, the source says "CountdownTimer" on line 1 when it should say "CountDownTimer" (notice the capitalization of the letter "D"). An ea...

Android API Target Level 5 and 6 for Ubuntu

Today i installed Ubuntu 10.4 and Eclipse Galileo. Then I downloaded the Android SDK and tried to install all packages via the Android SDK Tools. But unfortunately, only the Target Levels 3, 4, 7 and 8 were available. API Level 5 and 6 are missing. Does anybody know the reason for this? I already did a Google search and there seems to b...

Does oneway declaration in Android .aidl guarantee that method will be called in a separate thread?

I am designing a framework for a client/server application for Android phones. I am fairly new to both Java and Android (but not new to programming in general, or threaded programming in particular). Sometimes my server and client will be in the same process, and sometimes they will be in different processes, depending on the exact use ...

Android: Playing an audio clip onClick

How do I set up an audiofile to play when a user touches an image. Where should I store the audio file and what code should I use to actually play the file? I don't want to bring up the MediaPlayer interface or anything like that. I was thinking of doing it like this: foo = (ImageView)this.findViewById(R.id.foo); foo.setOnClickLis...

Attempted GCF app for Android

I am new to Android and am trying to create a very basic app that calculates and displays the GCF of two numbers entered by the user. Here is a copy of my GCF.java: package com.example.GCF; import java.util.Arrays; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener...