I am working on an application specifically for Samsung Galaxy S(I am not the one making decision here) and they want its layout to be pixel-precise accurate.
Can I just use normal 2.1 AVD?
So I tried creating WQVGA432 but it looks like this. I'm not sure why the LinearLayout does not fill up the screen but only use up to the large imag...
Hello all,
In my android application, I create shortcuts by code to some activities within my application. I do this feature by using the broadcast:
intent.setAction("com.android.launcher.action.INSTALL_SHORTCUT");
sendBroadcast(intent);
and that's cool, that really work!
Now I would like to do something different: I have se...
Hi all,
I have been working on an app, which basically consists of imagebuttons.
I want to achieve the push button effect with imagebutton.
Is it possible to achieve..
...
I am using the AVD manager in eclipse. Is there a setting that I can use to stop the on screen keyboard appearing when an input field has focus?
I tried has hardware keyboard = true, but then the emulator doesn't seem to start at all :-S
...
I am new to android.I use Ical4j for parsing the ics file(outlook calendar file).
When I build my application in Eclipse it shows following warnings.
[2010-07-22 15:58:31 - Google Calendar Upload] warning: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute. (This...
I just load thumbnails(MINI_KIND) into GridView to show overview of local images of Camera.Click on it to show a bigger thumb(MICRO_KIND).And now I need to get the original image through MediaStore.Images.Thumbnails.IMAGE_ID(to upload the original file).Should I query again through MediaStore?
like photoshop.com for android
...
Hello,
I am a newbie in Android development. I try to write something to a file.
I am using the code:
try {
FileOutputStream fOut = openFileOutput(
"out.txt", MODE_WORLD_READABLE);
OutputStreamWriter osw = new OutputStreamWriter(fOut);
osw.write("s...
Is there a method (like onDestroy() or onPause() for example) that is only called if I press the Home Button on my device?
...
Actually I have 52 images which r basically cards.
images names are from 1 to 52.
when I put all the 52 images in my drawable folder then it is showing an error in R.java file which is:
Syntax error on token "image name(any
between between 1 to 52)", invalid
VariableDeclaratorId
what is the problem?
...
I created a GridView which is populated using images from the SDCard. I want the same functionality as that of the selection in Android's Media Gallery. There, we can select images, upon which a green checkmark appears on the image.
I created the Grid using this guide: Displaying Images from SD Card In Android - Part 2
How can I go abo...
Hi.,
Am working on screen capture in android mobile..
As of now am able to capture my application screen..
But my requirement is my application should run in background and should capture the main menu screen and home screen and etc..
...
Hi all, my app has a styles.xml file with various visual constants defined.
I'd like my users to be able to switch the entire app to an alternative visual theme. I'd like to provide an alternative styles2.xml file and switch at runtime (via the Settings).
Is this possible, and how? I suspect the style names' appearance in the generated...
I am working on an application thats captures all the keys that are being pressed.
As of now I can capture the keys in application.
But how can I capture the keys while the application is running in android.
I am aware of services concept, but am unable to capture the keys while application in running in background.
...
Let's say I have 2 files on Desktop: (Note that I have another file than .apk application.)
.apk file
.zip file (wich contains a large of data that .apk must unizp and do some work with it).
I want to plug an Android device and programmatically copy these both files to Android.
The application must be visible to user and the .zip f...
Is it possible to have a button in a Toast?
In theory, yes because you can build a custom Toast from a layout in XML, but I tried to put a button in it and couldn't get it to register the click.
Did anyone manage to do something like that?
...
I have a doubt, I don't know how to retrieve the key from the shared preference?
...
I can change locale as code below, but it does not seem to change the actual locale of the phone as "Locale & text > Select locale", would do (permanently). I need this to change similar to the LocaleSwitch app on the Market (which gets it right). Any help?
Code:
Locale newLocale = new Locale(currentModelStringLang, currentModelStringCo...
I have used the Java Sax parser, but am trying to implement Android's with this XML.
<?xml version="1.0" encoding="utf-8"?>
<adc_database xmlns="http://www.weather.com">
<units>
<temp>F</temp>
<dist>MI</dist>
<speed>MPH</speed>
<pres>IN</pres>
<prec>IN</prec>
</units>
<local>
<city>S...
Hi
After setting wall paper in Android 1.6 using code
Context context = ImageSwitcher2.this.getBaseContext();
Bitmap mBitmap = BitmapFactory.decodeResource(getResources(),
mImageIds[pos]);
context.setWallpaper(mBitmap);
sets the wallpaper. But on the home screen on Android 1.6 device screen gets blurred on doing...
If I don't import R, I get "id cannot be resolved or is not a field"
(R.id.mainanim);
And if I import R, the id error is gone, but I get "main and mainanim cannot be resolved or is not a field". They're my xml files! :0
Can you help me?
Also here is ALL my code... maybe there is an error I didn't see?
JAVA:
package com.examp...