I'm watching the 2010 Google I/O video on this topic and I have a few questions to make sure I understand properly.
Google I/O 2010 - Android REST client applications
Please note I also have a very limited understanding of CursorAdapters
Right now my application just has a UI layer. I've created an object called DbAdapter using some ...
Hello, I´m writing an application for Android in which I have a character that I must dress with multiple items, such as clothes, hairs, hats, earrings, etc. and on one side of the screen I need to have a container with many items inside that are available for use.
My problem is that I haven´t found any object that lets me do this simpl...
I have three images in my drawable folder, and an XML Image Button code:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">\
<item android:state_pressed="true"
android:drawable="@drawable/happycarrot" /> <!-- pressed -->
<item android:state_focused="true"
android:drawable="@d...
When I set the background to my surfaceview, I see what I set as the background. However, I cannot draw simple things like circles when I lock/unlock the surfaceview's canvas. All I see is the background image.
Is there something I'm missing?
Any thoughts?
...
I want to detect blowing into the mic on android. Google wasn't much help. Is it possible?
...
I have a problem:
I have a UI thread which displays webwiew and another chatActivity which displays chat.
I keep on getting data from server which would be displayed on both Activities.
What is the best way to do this viz doInBackground or Service,
If service, than can i bind 2 activity with 1 service i.e. if user press logout from UI...
Suppose I initialize an AffineTransform as below:
AffineTransform af = new AffineTransform(2, 3, 4, 5, 6, 7);
How would I create an equivalent Matrix using android's sdk?
...
I have a layout that has just a ScrollView visible. It has a relative layout as its child. This layout has several other layouts (mainly text views) as its children. When the text is not big enough, the scroll view does not expand itself to fit the whole screen. Instead, it shows a gap at the bottom where the background shows. I tried se...
When trying to start up my Android AVD emulator, I get the following error message in eclipse
Failed to start emulator: Cannot run program "/home/james/development/tools/android//tools/emulator": java.io.IOException: error=2, No such file or directory
However, the file is clearly there as displayed below
james@nevada:~/development/to...
I'm struggling with some issues which I believer are memory related with my Android app, yet I can't seem to figure out how to get information on how much memory my app is using.
I have a suspicion that some textures I am loading are not getting cleared by the garbage collector, but I want to be able to test before I start blindly makin...
I have been looking at the gesture builder demo for the android and it works great: provided that you have and SD card. I'm trying to adjust it so that it will write to the internal storage instead of the SD card.
So far it has been pretty simple,
if (android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDI...
Hi
im pretty new at Ant and have been looking for alot of examples. I am pretty far now, and was successfull to get a build.xml going. Though i seem to have one thing missing. My application needs a custom Reference Library i am calling that is a jar file. But i dont know how to add it one. Any Tips, reference sites or examples you guy...
So, I'm watching this video http://www.youtube.com/watch?v=N6YdwzAvwOA and Romain Guy is showing how to make more efficient UI adapter code using the getView() method. Does this apply to CursorAdapters as well? I'm currently using bindView() and newView() for my custom cursor adapters. Should I be using getView instead?
...
I have noticed in the android gesture examples, that it reads the gestures from the res/raw folder. it would be a great thing for my application to include a 'getting started' list of gestures. that way a user can use the app without having to train it for their own personal gestures. i would even expect that the majority of users wou...
Hello, I have read a lot of stuff about launching Google Maps in Android.
That's pretty easy:
Uri uri = Uri.parse("geo:38.899533,-77.036476");
Intent it = new Intent(Intent.ACTION_VIEW, uri);
startActivity(it);
The problem is that the map is shown at a high zoom level and there is no marker on the map.
So, if the user move a little ...
I want to change the font in my widget such that it uses a specific font in "assets" folder of my app.
I usually do this in my app to change the font:
Typeface tf= Typeface.createFromAsset(getAssets(), "advertising.ttf");
TextView converted = (TextView)findViewById(R.id.TextView03);
converted.setTypeFace(tf);
...
i am using a listprefernce in my app and when a user makes a selection I would like to check it for errors, but when i set an onclicklistener it starts when i select the listpreference, not when i make my selection. is there a way to make it check the selection right after they make it?
...
I have a Horizontal Gallery in the bottom of the activity , My problem is that gallery detect swipe action from the whole layout not just when you on it , from any point in the screen you can drag it, how can i stop that ??
...
I can't sell my applications on Android-Market because my country is not supported for merchants.Is there any other market-place which let you to use paypal or is there any way to get around this problem ?
Edit:Question was not clear , edited to avoid missunderstanding.
...
Hi,
So i am again almost through getting the Ant Build for android. Here is what i want it to do.
So my build.xml creates the apk file.
But now I am trying to it to create an instance device and install the apk and run it.
All this on the build.xml file. so when i run ant, it will do all this, build the apk, create the device emu, ins...