I've seem many Android answers that suggest calling the garbage collector in some situations.
Is it a good practice to request the garbage collector in Android before doing a memory-hungry operation? If not, should I only call it if I get an OutOfMemory error?
Are there other things I should use before resorting to the garbage collecto...
Hi,
Although the DDMS plugin is installed (verified by checking the installed plugins) in Eclipse, it is not showing up in the Perspective (which is showing only JAVA & DEBUG). Any help with this would be great. Thanks, animesh
...
Hi
I am trying to set up a Serversocket on the android emulator and connect to that through a remote machine. I have done the port forwarding from localhost to the emulator using adb forward and 'redir add' both.
The connection is successful if I run both the emulator and the client on the same computer...but doesn't work if I run the c...
I'm writing for Android (Java).
I'm declaring int's and float's as part of an ongoing loop.
Some of them don't need to be changed after declaration.
If I set them all to final when declaring, will things run quicker?
[Edit]
Thanks everyone. I didn't actually expect it to make any improvements, I just noticed, after browsing the sour...
according to the DDMS the android just stop generate the sqlight file in 17,111 where outside of the DDMS if I import a file with the same values + the gap to my db it works just fine , is it my bug on the file who makes the db on the fly (onto the device in run time)?
how can i impot a db file without using the DDMS(i add files manua...
I put a background color in a ImageButton? How?
...
Hi,
I am sure this has been discussed in this group, but I couldn't find that thread, so bear with it, or if possible merge it with the original.
I am using httpclient for my android app and I have a local site which has a few https pages. Since default httpclient doesnot allow self-signed certificates I am using "EasySSLFactory" and ...
I have a TabHost with three tabs. The first tab's content is the Intent of a custom activity who's contentview is a relative layout containing two EditTexts and two CheckBoxes (and a button).
Each checbox, when checked, enables/disables one EditText and the other checkbox. and I went about that like this:
chkPolaziste.setOnCheckedChan...
I have created a custom Button class and I want to be able to change its width/height depending on some factors in addition to the content width/height. How can I do this?
I have tried doing a setWidth/setHeight, but that had no effect.
I have set the layout_width/height to wrap_content and tried to override the function that calculate...
wanted to leave a ImageButton is disabled (not clickable), but have used android: enabled = "false" but does not work
Does anyone know how to disable an ImageButton?
...
Hello !
Is there any API by which we can get CPU or Memory usage of android?
I have tried one code as below:
Please look into it and let me know if this is the correct way?
package com.infostretch.mainactivity;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader...
I have to show the received data of a UDP server. When data is coming from the server at that time I have to show that on the screen one by one. How to update the screen (Textview (or) EditText)?
I need to add (rec_str) value to the screen.
public void run() {
try {
DatagramSocket clientsocket = new DatagramSocket(9876);
...
In my app i'm setting background to each child views in listview.
So that listview default focus ( orange color ) is not focusing.
Is there any way to set both ( listview focus & child view background ) ?..
...
I made an icon and saved it in res/drawable directory as icon.png and edited the line <application android:label="@string/app_name"> in AndroidManifest.xml to <application android:icon="@drawable/icon" android:label="@string/app_name">.
But on restarting the emulator, the icon doesn't get displayed. There are no other icon.png files in ...
I'm trying to keep a boolean preference in sync with a value in a content provider, and succeeding nicely except for this issue. When I set the preference in my PreferenceActivity's onResume() method (because the value may have been changed in the content provider), the checkbox in the view still reflects the pre-onResume value.
As far...
Hello,
I use the AlertDialog class in my application. By default, these alert dialogs have a transparent background. I'm trying to use an opaque background instead, very unsuccessfully. These are my styles:
<style name="MyOpaqueActivity" parent="@android:style/Theme.Dialog">
<item name="android:windowBackground">@drawable/my_backgr...
I'm wondering how would I make an image that is located at a specific URL equal to an ImageView's image?
...
Hi all,
I've created a custom view by extending View, it draws fine but When i try and refer to the object in the xml so I can say add a touch listener if reports a null pointer exception. My xml file is extremely simple
<com.projector.interaction.layout.MapMouseView2
xmlns:android="http://schemas.android.com/apk/res/android" an...
I was recently hired to work on mobile Ajax applications. This is the first time I do this, as I always worked on usual Ajax sites on common web browsers. I'd need a framework and possibly a toolkit that works both on IPhone and Android... capable of abstracting the mobile browser the same way jQuery does with desktop browsers.
I've se...
Possible Duplicate:
ADB rejected shell command (ls -l /data)
Hi..
When I am trying to push any file in sdcard from my android application. I see message from ddms " ADB rejected shell command (ls -l/) ". And My Emulator is dead, I cant do anything.
Please help me..
...