Hi,
If i use
allNetworksInfo = connectivityManager.getAllNetworkInfo();
it will display
type :MOBILE subtype :UNKNOWN state :UNKNOWN isAvailable :false
type :WIFI subtype : state :DISCONNECTED isAvailable :true
type :MOBILE subtype :3G state :CONNECTED isAvailable :true
But if i use
mobileNetworkInfo = connectivityManager.getNe...
I try to send udp data from PC and receive the data in android emulator. If we send data from android to PC it’s working perfectly. But android emulator not receives the udp data .How to receive data in android.
This is my UDP sending code :
class WriteSender {
public static void main(String args[]) throws Exception {
int serverPort = ...
I have been learning Java for a few weeks. I started to learn Android. I use Windows Vista on my laptop. I installed SDK with Eclipse. But when I started the tutorial, I encountered a problem. It was giving me a path error, but now it just shows error (2 items) and nothing else. I don't know what to do. Any help, suggestions or advice?
...
I alreaady done webview non clickable and focusable .. but still not working ...
...
Hi All,
I set my android emulator to wait for the debugger for my application, so when it starts, the emulator waits writing in output log "waiting for debugger on port 8100".
But, I can't find a way to attach the Netbeans debugger to this port nor to the emulator in general...
Please help,
Alban.
...
Hi,
I'm extending the CountDownTimer class to obtain some custom functionality .In onTick() in case some conditions are met I call cancel() , expecting that will be the end of it, however the onTick() callback gets call until the the count down is reached . So how to prevent this from happening ?
...
Hi,
I am using Tabhost for project Tabs. I changed the color of the tab to blue but there is 2px line bellow the tab. Can any one help me to change the white color to blue.
http://img816.imageshack.us/img816/228/device.png
...
I want to create a full-screen page that looks like this:
---------------------------------------
| -------- --------------------------- |
|| || TextView ||
|| | --------------------------- |
|| Image | ----------------- -------- |
|| View || || ||
|| || T...
With the stencil buffer in opengl-es for Android, I'm simply trying to mask out drawing part of the screen. I think I have it set up right, but it is not masking out the non-stenciled parts. Below is an extraction of code for what I'm doing.
gl.glEnable(GL10.GL_STENCIL_TEST);
gl.glClearStencil(0);
gl.glClear(GL10.GL_STENCIL_BUFFER_BIT);...
I have the contact and I would like the user to choose from his phones or emails. Is that already provided by some picker or shall I implement my own?
...
I have a continuous frame animation which runs 24 frames per X seconds, which is working fine, Now when i run another two animations ( Alpha animation ) at the same time , i notice performance drop , that is frame animation slows down.
Any idea why this is happening, and is there any work around for this?
Thanks in advance.
...
I'm having trouble getting my app to work properly on older devices.
I've ready the "Backward Compatibility" tutorial, I'm working for performance - and it suggestions using .invoke is considerably slower than using a wrapper class.
But it seems the wrapper class only works for if a class is not available on older devices.
I'm compili...
How do I reduce the picture dimension taken in Android?
By Default whenever I take a picture, the dimension is 2048x1536.
Camera.Parameters parameters = camera.getParameters();
parameters.setPictureSize(1028, 768);
This is how I should do it?
...
Hi everybody,
WifiConfiguration conf = new WifiConfiguration();
conf.SSID = "ssid";
conf.preSharedKey = "\"password\"";
conf.status = WifiConfiguration.Status.ENABLED;
conf.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.OPEN);
conf.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP40);
conf.allowedGroupCiphe...
Hi,
I use Alert Dialog as Login. So after closing this dialog, any value assigned at dialog show() is lost. how to get back this value? my code is below
private void accessPinCode()
{
LayoutInflater factory = LayoutInflater.from(this);
final View textEntryView = factory.inflate(R.layout.dialog_login, null);
AlertDialog.Buil...
I am coding an Android client that talks to some web services via XML packets.
A typical packet looks like this..
<Packet service="login">
<username></username>
<password></password>
</Packet>
I have about 20 of these packets and would like to store them in my resources maybe in res/xml or res/raw
I want to store these 'empty' pa...
Hi,
I came to know that there was no native RTP Stack in older Android releases. Is it supported in Froyo ? If not, is there any plan to support in the future releases?
Thanks,
MVB
...
Hi!
I have a listview with a customized ArrayAdapter. When the in the ArrayAdapter has changed the gui is supposed to update. However, when it's supposed to update, it won't unless you press a key on the emulator. The clickable rows are not clickable either unless i have clicked on an arbitrary button on the emulator.
The underlying da...
Hai,
I am new to Android.
I need the sample code of an mp3 player in android to play more than one file.
i.e Song should be played one after the other from a particular folder in our system
Can any one post some sample code.
Thanks.
...
How to reduce EditText Hint size?
...