Hi stackies,
I really tried to, but I can't understand how Android interprets layout_weight setting...
What I'm trying to archieve is
a header on top with a fixed height
an input area at the bottom containing an EditText and a Button
a content part in the middle that's taking all what's left of space
When typing I'd like to grow...
Hi All,
I have customized my activity to bring it like a dialog. Now I want to stop the default animation and have to add the zoom out animation.
To stop the animation I have tried the following.
customDialog.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
and in styles
<style name="Theme.CustomDialog" parent="android:style/Theme.D...
Hi everybody.
I'm using a ScrollView and i want to set the ScrollBar size, but everything i tried failed.
I tried with attribute android:scrollbarSize, with style, with theme but nothing. The size of the scrollbar it's always the same.
Any suggestions? Thanks
...
Can anyone tell me how to combine or concatenate two bitmap images into one in android?
...
Hi guys,
I'm wondering if there is a way to hide some field in Android.
I tried with setting the value in a textedit and then make it invisible, but the result is that the value is invisible, but the control takes space.
In my case, I want to store some extra value in a row of a ListView, instead of using hidden fields, is there anoth...
Could someone help with a simple PHP script to echo the whole message received with an HTTPPOST.
I am sending a string from an android app using HTTPPOST and would like to receive as a response the message received by the POST at the server.
The script that I am using will only echo name value pairs
echo $_POST('data')
works when I...
I am doing authentication with a third-party site that's supposed to redirect back to my app with auth token (OAUTH).
I have the callback working properly if I open the 3rd party site in a separate browser process via
this.startActivity(new Intent(Intent.ACTION_VIEW, uri));
but, if I embed a WebView component in my layout, and open ...
When the Eclipse debugger stops due to an exception in my Android project, I can see the exception message in the variables window (e.g., "null pointer"), but how can I find out what Java code line my app was at when the exception occurred?
I can see a stack trace in the LH window, but selecting any of them doesn't seem to reveal anythi...
Hi Friends,
i am get image from sdcard using intent,i want to get all image path from intent.i am using this code
Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);
photoPickerIntent.setType("image/*");
startActivityForResult(photoPickerIntent, 1);
After I returned from this activity I have a data, which contains Uri. It look...
hi all.
i want to change the screen brightness programmatically in android.
WindowManager.LayoutParams lp = getWindow().getAttributes();
float brightness=1.0f;
lp.screenBrightness = brightness;
getWindow().setAttributes(lp);
But this sample code works on cutcake, not on latest versions. I am using latest version of SDK.. how can i do ...
Hi,
I try to change the frequency of a single soundfile. I managed to do that in android with the SoundPool thing. But the result sounds really bad.
So I stepped about the Fourier Transformation - but I am not sure if this is what I am looking for.
I want to load a single file and change the frequency of that file every time that file...
Hi all,
I am developing a Player application for a radio, I need to implement two app widget players for two radio stations individually.
Can i implement two app widgets for an application.
Thank you
...
HI,
I would like to know if it is possible to display Arraylist of object's value in setListadapter or SimpleAdapter for listview?
String ArrayList works fine, I am just trying my luck with Object ArrayList
ArrayList<userinfo> list = new ArrayList<userinfo>();
setListAdapter(new ArrayAdapter<userinfo>(this, R.layout.messages, list)...
Hi,
I don't want my Activity to be re-created every time the device is rotated, so I've put the android:configChanges="keyboardHidden|orientation" tags in my manifest file.
Is there any disadvantage to this approach? The screen seems to re-layout automatically upon rotation, and everything works well, with the advantage that i don't ne...
Hi,
My HTC Wildfire has built in FM radio plus a application to listen to it.
I wish to write a similar application that would stream this live FM radio over bluetooth.
I currently cannot find any examples of accessing the tuner.
Can anyone help?
...
I've just upgraded to Eclipse 3.6. I saved Eclipse 3.5 and made a copy of the original workspace.
I now notice an error in my GPS/mapping application which worked fine in 3.5, when I send a location from the DDMS perspective using the emulator control tab. I have a standard listener:
onLocationChanged(Location location){...}
If I brea...
I have a widget layout xml which sets the src to the delivered android widget 4x1 frame image.Here is the widget layout code.
<?xml version="1.0" encoding="utf-8" ?>
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/tuwidget" android:layout_width="fill_parent"
android:layout_height="fill_p...
How can I silence the android phone in java? A code sample is VERY helpful.
...
If I use getScanResult() I will be able to get the information about different networks but for example if I am in a school where all access points are under network(SSID) "The school". Will getScanResult() filter out other access points than the one it's closest to and only return 1 BSSID for that network?
...
We have contracted out an Android app, and our clients are not happy. Can we do what we want?
THe scenario is an activity that lists data about an event, and a button to compose the email. That works. Except that it always uses the google account on the phone. Can email be sent in accounts other than the google account outside of th...