I wanna add three layout in a TabActivity, but it was force closed when I ran it.
Here is the code:
import android.app.TabActivity;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;
public class Test1 extends TabActivity {
public void onCreate(Bundle savedInstanceState) {
super.onCrea...
On my Mac I installed Eclipse, the SDK and created a new project, then hit build expecting to see my first helloworld app.
I got the error "the project cannot be built until build path errors are fixed".
After going thru all the path-like options in Preferences, I noticed that on the tab "Java Build Path" the "Google APIs [Android 2.2...
Hi,
How can we pass Android Home Screen Widget info ( putExtra maybe ) to an Activity.. What particular method callback will handle this one?
...
I read somewhere (and have observed) that starting threads is slow. I always assumed that AsyncTask created and reused a single thread because it required being started inside the UI thread.
The following (anonymized) code is called from a ListAdapter's getView method to load images asynchronously. It works well until the user moves the...
I want to add a non-native shared library to Android so every application on the device would be able to use it. I mean using packaged classes just like a core library as if they were present in the application itself.
I studied Android source code to figure out a way to add a new path to the application ClassLoader and found out that i...
Is it possible to automatically detect, which certificate was used for signing APK? I'd like to have both debug and release Maps certificates in application and pass valid one to MapView constructor.
With such setup I will not make mistake while releasing application - I'm using debug certificate on emulator and my device, then sign wit...
My goal is to set the users notification sound from a file that is stored onto the SD card from with in the application. I am using this code:
if(path != null){
File k = new File(path, "moment.mp3");
ContentValues values = new ContentValues();
values.put(MediaStore.MediaColumns.DATA, k.getAbsolutePath());
values.put(Me...
Hello,
I need to create a map with items on it (the map consists of a drawable object, which represents a room) and I thought about using buttons with background images for the items so that they are clickable.
I guess the AbsoluteLayout fits here the best, but unfortunately it's deprecated.
What layout would you recommend me for this ...
There's a webpage I pull up with webview, however i'd like to hide the 1 text link at the top. Is there a way to do this? The link is in the body, so I can't hide the body element in whole.
The webpage is all text, and one tiny image at the bottom, but the text is generated each time you load it, so I can't just copy/paste the body.
Tha...
Hi, I am new to android, I have learned how to display drawable pic in gallery,
and display a url pic use ImageView. Now I dont know how to display online pictures in gallery. Should I use listview or not? In addtion, I want to know how to get pictures urls from flickrs with given userid
...
I’m doing an application that listens to the android.intent.action.SCREEN_OFF in a Service (if that matter) and then it is supposed to wait a few seconds and launch an action, I’ve tried a timer schedule method, thread and handler postDelay method but all of them seems to fail, they are never executed on a device, it seems like it’s bein...
I'd like to use a small (icon size) image as the background for my view, but it gets stretched to fill all the view.
Any solution (including some way to place a view under my current one and make the latter transparent) will be appreciated.
Thanks !
current code:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android...
I came across this android example that runs an AsyncTask from a UI thread. The class ExportDatabaseTask is declared and instantiated in the Activity, and apparently it is possible to reference the activity's UI context from the onPreExecute and onPostExecute events, like this:
public class ManageData extends Activity {
private Expo...
I am working on an app that beeps every second. When I hit the home button I want it to close the program and stop beeping. Right now it closes the program but continues to beep.
What am I doing wrong?
if ((keyCode == KeyEvent.KEYCODE_HOME)) {
isdone = true;
mp.release();
counter.cancel();
finish...
Hello,
I have a android webservice client application. I am trying to use the java standard WS library support. I have stripped the application down to the minimum, as shown below, to try and isolate the issue. Below is the application,
package fau.edu.cse;
import android.app.Activity;
import android.os.Bundle;
import android.widge...
hi,there, I freshed install Eclipse, jdk, android sdk 1.5 in winxp. but when I run the "hello world" app, the emulator always stop at "andorid" loading message. In eclipse console, it shows "waiting for HOME..." and in DDMS LogCat, it shows following msg:
there are some error and warning. So, what's wrong with my case? I have googled lo...
Hello!
I am using some home replacement that allow me to hide the notification Bar and that's something I really like.
All the informations can be replaced by some widgets, but I would like to display the notifications too.
As I already developed some applications, I would like to know if there is a command line that allow an applicat...
is it possible to port android (android tv) on Nokia booklet 3G , i like the booklet hardware (built in 3g modem and hdmi port and overall build) but windows 7 is horrible.
it would be great to have android with android tv port on nokia booklet 3G
any idea how to do?
...
In Android, I am trying to make it so that the user downloads a font from the browser, and I am able to view the font when downloaded. After multiple issues, I still have one lingering one: Registering the filetype with the browser.
When trying to download with the Emulator (2.1-u1), I get "Cannot download. The content is not supported ...
How to store and retrieve preferences in ANDROID?Please Help
...