I am trying to launch a new intent after I have loaded data. I am using a handler that calls a method when the thread is complete and then in this method I am trying to launch a new Intent but my app is crashing every time. I have narrowed it down to the Context variable in the Intent constructor. Here is my code:
/** Called when the...
Hello Friends,
I am working on horizontal menu that will open on top of the screen.
Layout is something like following,
|| < || Menu Item1 || Menu Item2 || Menu Item3 || > ||
I want to put this on top of the screen. It can have more than 3 menu
item and it can traverse through previous and next arrow.
I started with like this,
Relat...
Is it possible to place an imageView in a class that extends View in android?
If possible please give me a sample code.
Thanks.
...
Here is my ArrayAdapter. I would like to make this more efficient by following the ViewHolder pattern:
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List14.html
but am not sure how to accomplish this.
UPDATE: ViewHolder Pattern
private class QuoteAdapter extends ArrayAdapter<Quote> {
...
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="Notifications">
<CheckBoxPreference
android:key="vibration"
android:title="Vibrate"
android:summary="Vibrate phone for notifications" />
...
Hello everyone,
How can I build and signed (keystore) the .apk file using 'apkbuilder.bat' via windows command-line ?
I try to run the following line:
apkbuilder.bat %APK_File_Name% -u -z %Project_Path%\bin\resources.ap_ -f %Project_Path%\bin\classes.dex -rf %Project_Path%
but I'm getting the following exception:
java.lang.ArrayInd...
Hi all,
I am using the following snippet for screen orientation in android..
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.layout.main);
// ---change to landscape mode---
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
// ---c...
I'm on a new android project - just a simple one.
I have three "tabs" (activity1,2,3) with different tasks.
Anyways, how do I add these 3 activities do the AndroidManifest?
my manifest;
</application>
<uses-sdk android:minSdkVersion="4" />
Yeah,...
I use in the getView()-Method of this example a static function to download the source of an ImageView. Later there will be threading included. However, I like to know in general how save the use of static function is in this case.
Because I experienced, that in some cases (when I scroll really fast) the Images get mixed up.
/**
...
Hi, is there any Java validator libraries i can use to validate text input from an android app?
i know that in spring there are validators for various different types such as checking if a value is a int, if a value is a valid email, etc etc.
Anything similar in core java or even android?
cheers in advance. i dont want to re-invent th...
I've downloaded the source for both google's default home screen and adw. I created a project in Eclipse and used those sources. However, I can not compile the code as there are quite a few errors. Does anyone know how to do this correctly? Do I need to add all of the google code to my project?
(I asked the same question in another t...
Hey guys & gals,
I have an app that allows you to record short voice memos. Some users aren't able to record any audio(LG Ally being one device) at all. I'm using the MediaRecorder in android and am curious if there might be a "better" standard way to handle audio recording?
...
I have the following hierarchy: [Activity] -> [PopupWindow] -> [CustomView].
My the PopupWindow itself is a square, but transparent, so you can see the Activity sitting in the background. The CustomView is a circle embedded inside the PopupWindow.
What I have achieved so far is
User clicks on green circle and I invoke "some stuff"
U...
Hi,
I open a new thread to talk about my problem :-) , I have problems with communication between "service" to the "Activity"
what I have:
I have a FTP download of a file that is downloaded in the background as a service! In the end I had a time X in a variable.
furthermore it is checked whether the file is also fully load , I make it ...
Hi
I have a setting in my app that allows user to select different localization (language), ie Chinese, German, etc.
What i would like to do is that once the user makes their choice, to immediately update the layout with strings in the currently selected language. Of course, i want the lang change propagated to ALL current activities...
I am creating an Android application which will have some embedded music inside of it ( ~ 80 MB ). I was planning on putting it in the res/raw folder.
Since android stores that all in it's internal memory, is this way too large? What are my options? I have come up with the following:
Copy resources out of internal storage and onto the...
I know this question has been asked and answered before, but after following all the instructions, I'm still having the same problem: I have a MapView in my Android application but the view is only showing the underlying grid (and overlays), but not the map itself.
I am building the project in Eclipse, if that makes a difference.
I hav...
Hi,
I'm trying to read which ROM the user is using from my app.
It seems that this info can be seen in the phone's settings, in the About Phone setting under "Build Number".
How can I read this info with code?
Couldn't see it with android.os.Build class..
Thanks.
...
I have a webview in my program. I loaded a string into this webview that contains javascript function. When i loaded it in the emulator it's not working
i.e if I write a simple alert the webView won't display the alert.
I have enabled the javascript. But then also its not working.
what may be the reason?
Please help
Thankyou
...
straight from http://code.google.com/android/add-ons/google-apis/mapkey.html it says:
To register for a Maps API Key, you need to provide an MD5 fingerprint of the certificate that you will use to sign your application. Before you visit the registration page, use Keytool to generate the fingerprint of the appropriate certificate.
First,...