hi
what i'm trying to achieve is #1 but what i get is #2
http://s48.radikal.ru/i120/1005/ff/6e439e04bbc8.jpg
it seems linear layout stacks with height of it's first element and shrinks second's element height to that.
the xml for those is the following:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://sc...
I've noticed that changing the background color of an android widget (f.ex. Button or TextView) by program:
myButton.setBackgroundColor(Color.BLUE);
makes it to loose its 3D shape, border, and shadows effects, and then appears like a ugly flat square. What am I missing?
Sorry for the very naive question but I couldn't get it right al...
hello,
i'm beginner at android development. i want to create an activity, which shows a question with 4 answers, and at the bottom of the screen i want to place a timer. i have already found timer example, and i created a question with the answers. the problem that they are 2 different projects and activities, and i am looking for the be...
I'm looking into writing an Android game, tough I don't curerntly own an Android device. For those of you who own a device, how does the performance on the emulator relate to real device performance? I'm especially interested in graphics related tasks.
This obviously depends on both the machine running the emulator, and the specific dev...
Hi There,
I have just written a game for the Android market and would like to remind my customers to leave feeback on the market for the application (especially the demo version.) Is there any way to launch the market intent in a mode that will take the user to the feedback / comments section of the page?
I already use this approach fo...
how can i parse a local xml file in the assets folder using pull parser. cant get pull parser to work, always throws io exception. i think i cant get the path to the file, or connecting to the file
help please!
...
Is there a way to simulate speed on Android emulator?
[edit]
The purpose of this to test the getSpeed() method
Example:
I would like to set the device is going at 20 miles an hour.
...
Hi all.
I am new to Android development.
I have developed a very simple widget that was meant to interact with the user via an ImageButton.
What I am trying to do now is as follows. When a user taps the button (after adding the widget to their home screen), I want the phone to dial a certain telephone number.
A sort of speed dial for y...
Hi everyone,
I am using Android emulator with AVD of Android 2.1 and I have the following problem: Trying to load a URL in a WebView using webView.loadUrl causes it to open in the browser instead.
Note: I am talking about the initial opening, not the issue in which links from the WebView open in a browser, though, perhaps it is someho...
I'm embarking on a GUI Activity composed of a viewflipper, which I would like to contain 10 linearlayout layouts.
Is it advisable to put all of my layouts into the same XML resource/layout file?
If not, is there a more organized approach to coding a viewflipper with many layouts?
Will having everything in the same file come at a sig...
I made a small webpage with a scrollable div. When I load it in a browser, it works fine. But when I load it in a webview inside Android, it doesn't let me scroll the div. Is there a workaround for this or do I have to use a different design? I am talking about websites like this.
...
Essentially, I just want to change the home button from just hiding my app to killing the activity that is on the screen.
I thought about writing a broadcast receiver that kills the activity, but I'm not sure how to kill the activity from the receiver.
How do I change the functionality of the home button to "finish" the specific acti...
I have a simple custom adapter. I need to set the starting position to different positions at different times. When using a standard listadapter, I can simply use myCursor.moveToPosition( i ). A custom adapter using getview does not work that way. Can anyone tell me how to move the current list to the position I want?
...
Im trying to force my phone to go to sleep as soon as i turn my screen off, but whenever i install with adb, packagemanager informs me that it wont grant the permission i need, so my service throws an exception. I was able to install another app called power save mode toggle which has the same permission, and it seems to work, so i shou...
Hello all,
I am a newb to Android and Java and want to write a funtion that will display a list based on a varable that I pass to the function.
The function is below and the code below creates an array out of a string called type, but what I want to do is pass it a variable string and have it build a list based on that string.
So if...
I have a ViewFlipper which contains a few linear layouts.
I need to allow the user to flip through them.
I've seen other apps which have arrow/triangle indicators on either side of the screen, which, when pressed, flips to the next view in the set.
I'd like to add these to my Activity.
...
My problem is our game can switch into menu and setting mode instantly but it will need 4-6 seconds to load texture, init GL render mode eventually I just used 6 simple textures to create 6 sprites in game.
Please help me answer two questions:
1. How can I preload our assets in android os to start our game quicker?
2. In order to use a ...
I have put some instructions in onLowMemory() callback and want to test the same. Is there a "direct" way to test onLowMemory function of the application subclass?
Or will I have to just overload the phone by starting many apps and doing memory intensive tasks?
Thanks.
...
I have an application which is of size 130MB. when i try to install its displaying insufficient memory error. but i have around 170MB left in available space in internal memory. How can i Install this app? The size of the app is large because it contains many media files. In Motorolla droid its getting installed. but on Nexus One its giv...
The declaration of android.graphics.Bitmap.createScaledBitmap is
public static Bitmap createScaledBitmap
(Bitmap src, int dstWidth, int dstHeight, boolean filter)
However, the documentation doesn't explain any of the parameters. All of them are pretty obvious except for boolean filter. Does anyone know what it does?
...