Hi,
I want to create custom ImageButton, but to work like on/ off button. On click on button image to be changed to pressed(until another button is pressed)!
On picture This month button is on , This year off .
How can I create button like this?
Do I need to use and how ?
Thanks
...
Hello
In my android application when the user reinstall the app again i would like to delete the existing database and create a fresh new one.
How could i know that the user is reinstalling the app or is quering for the updates request.
How could i delete a file in raw folder?
Please share your valuable suggestions.
Thanks in advan...
Hi,
I have set up four tabs that each hold a listview, I have added code in the listview java file to make the lists transparent, however, I have a semi transparent grey box covering 75% of the screen and I cannot figure out why, I have a background on my other listviews and they are completely transparent, but the lists within the tabh...
Hi , I am new to the openGl using in Android,
pleas give me the code for Only Showing texture image showing in android.(Only Texture)
witch options i need to use for that .pleas tell me.
Thanks in Advanced.
Raj R
...
Hi guy
I am trying write a reusable custom view to move it on screen according to user gesture. How can I do that? I tried to write based on some example, I found that I can only listen only one object.
here is my main activity code.
Please help!
public class GestureFunActivity extends Activity implements OnTouchListener, OnGestureLi...
Hi!
Im trying to program with database in Android.
So far i have made the database and written to it.
The problem: When i try to read the data back from the database the program "stoped unexpectedly".
I have tested to find what cause the crash and has found that it's this line:
Cursor c = db.getAllTitles();
But i dont understand why ...
I use the below code to create listview without listactivity.I need to know how to get the selected list item from this.
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
String[] myList = new String[] {"Hello","TEST","TEST","TEST4"};
ListView lv = new ListView(this);
...
public class MainActivity extends Activity {
ImageView i;
String imageUrl = "http://64.250.238.26:1111/clips/sunsetsofmauisplash.jpg";
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
try {
i = (ImageView) findViewById(R.id.image);
...
hi guys,
is it possible to do cross platform game engine for iphone and android. if its how can i do this. what are all thinks i need to study to do this.
thanks for your kind help!
...
I am developing a game.I have drawn images on a surface view which is residing in a relative layout.I want that my game's look and feel should be the same in all resolutions.
So now i want to measure the surfaceview/canva's width and height so that I can launch the images in proper proportion rather than hard coded values. But ...
Hello,
I added two APN configurations and then scanned the APN database.
I noticed that both APN entries are marked as "current=1".
how can I identify the currently active APN configuration programmatically?
thanks!
...
The app has a ListView with multiple-selection enabled, in the UI it works as expected. But when I read the values out using this code:
Log.i(TAG,"Entered SearchActivity.saveCategoryChoice()");
SparseBooleanArray checkedPositions = categorySelector.getCheckedItemPositions();
Log.i(TAG,"checkedPositions: " + checkedPositions.size());
if ...
i want some sample code for animations
...
Friend's
I have list of places in my database,when i click search option from my UI i have to fetch the data from database and the listed below the textbox,and then i select the corresponding place to search on google maps,it works fine for android platform below 2.1,but when i use 2.2 i'm getting force close Exception.Is there...
Hello,
Im trying to run the netstat command on nexus one, its returning empty entries:
Proto Recv-Q Send-Q Local Address Foreign Address State
can anyone help me figure out this problem?
thanks!
...
Hello
In my android application i am using a table inside which am using a text view to display the content.
The issue is like i would like to scroll the text automatically like in marquee if the text content is greator than screen size.
Is there any way that i can achieve this in android.
Please share your valuable suggestions.
Thank...
I haven't seen this mentioned anywhere. Usually Android app icons feature a transparent background, unlike the squared status quo of the iOS family.
However, the Samsung Galaxy S's launcher sets different icon backdrops for my various apps. On my own app, he attributed a green sunshine, and I see that pattern on some other apps I have i...
I'm attaching a PNG image to an e-mail with the following code:
ContentValues values = new ContentValues();
values.put(MediaStore.Images.Media.TITLE, title);
values.put(MediaStore.Images.Media.DESCRIPTION, title);
values.put(MediaStore.Images.Media.MIME_TYPE, "image/png");
Uri uri = activity.getContentResolver().insert(MediaStore.Images...
How do I get the temperature of the battery in android?
...
Just a simple problem without any idea of how to do it. Does anyone know how/if this can be done?
Reason: I just want one solid dialog box with no partitions as it looks a little better in my application.
EDIT
public void showCustomDialog() {
Dialog dialog = new Dialog(this);
dialog.setContentView(R.layout.customdialog);
...