My widget launches a configuration screen when chosen to be put on screen. That works fine.
I wanted to be able to touch a part of the widget to return to that configuration screen.
I have created 2 pending intents in my widget's service but only one works. The code is below:
remoteView.setOnClickPendingIntent(R.id.my_image,myWidget.mak...
I notice that my app's data on external storage (i.e. SD card) gets deleted during an "adb install -r". While this is normal for uninstall (and then afterwards install optionally to notice it), I do not understand why this is the case for reinstall (and thus for Market updates as well). I could have sworn this was not always the case.
R...
I've implemented onSharedPreferenceChanged in my main activity.
If I change the preferences in the main activity, my event fires.
If I change the preferences through my preferences screen (PreferenceActivity) my event does NOT fire when preferences are changed (because it's a separate activity and separate reference to sharedPreferen...
I would like to change the background color of a ListView Item after it has been touched until a further event.
This is my code:
listviewOfStuff.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
// When clicked, show a toast with the T...
Hi,
I have a listview within an activity and at the bottom of the screen I have a scrollable gallery, my problem is making the listview clickable, I would normally use the listview position by doing if(position == 3) and then create the intent but postion is being used by my gallery.
I listview is in the main.xml populated by an array....
I am new in Android dev, and I am trying to load image like in this link,- it doesn't work, only black screen. Can smb tell why? I tried in emulators with android 1.5 and 2.2.
http://www.androidpeople.com/android-load-image-from-url-example/
UPDATE: I solve my problem, i should add INTERNET to "uses-permission" before application tag, ...
I have scoured the web, I can't seem to figure out how to make an Android service actually DO anything. I have found lots of examples of how to create a basic one, but none of the examples seem to show how to call the service from an activity, and have the service do something.
For example, I would like to have a service running that...
Hi,
I want to add frame to image with title and subtitle. The thing that I want to do is as follows : There are number of styled frames available and user selects any picture from the phone memory or takes a picture from camera, now on selecting any frame that picture should be in that frame. Also below that frame there should be title ...
I have been googling for a couple days now searching for a sortable list widget similar to the one provided by stock android music app. What I would like is ability to sort a list similar to how you can sort your music playlist. I am coming to the conclusion that I am obviously not using the proper keyword to find my answer. Any help ...
I configured my android project to use ant. When building using the keyword release it fails with this message:
java.lang.NullPointerException
at com.android.ant.ApkBuilderTask.execute(ApkBuilderTask.java:239)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown ...
I use custom xml attributes for preferences. The preferences are inflated from xml.
I managed to create and read custom xml attributes for EditTextPreference, ListPreference and CheckBoxPreference by creating custom classes which inherit from the respective preference class.
In the constructor of the class I can read the attributes l...
I've successfully enabled scrolling for an Android TextView by either placing it within a ScrollView or, alternatively, using TextView's setMovementMethod (e.g., myTextView.setMovementMethod(new ScrollingMovementMethod()); ).
However, I would ideally like to see the TextView scroll in a fashion similar to the IPhone/IPod touch where the...
I have a custom listview which is populated correctly. Each view contains a thumbnail. When I hold the listview for scroll i can see the pictures blurring and probably their size changing a little bit. When I release the listview it is back to normal. How can I remove this effect? It is breaking the layout of each views while scrolling.
...
I am trying to convert my SurfaceView (camera preview) into a Bitmap for face detection on the fly. I am receiving a not null image but when I display it onto a view it appears to be plain black. Any ideas what might be the reason and how to proceed?
(I believe it is difficult but not impossible to extract the bitmap from a SurfaceView ...
There are a ton of activity stack related questions on StackOverflow, but I didn't really see any that answered the question I have. I'm working on an online game that (for now) has 3 different activities:
Login/Register
Menu (seen when logged in, includes "new game", "my stats", and a few other things...I'm just worried about the "ne...
The situation is this. I have an application written in vb.net. it consists or two parts. One on a PC and the other on a handheld windows mobile 6 device . The desktop program transfers a SQLServer compact database to and from the handheld device using activesync via USB. Potentially we want to look into having android handheld devices a...
Hi,
I started off with the tutorial here and added drawing code for a view (covering the entire screen). The scene appears static and not dynamic even though I'm calling world.step(,). How does one make the scene dynamic and is my drawing the right implementation or is there a better way (using jBox2d functions)?
private class Physics...
Hi,
We have built a Android application using JQTouch. The GUI is built with HTML and javascript.
We just found that there is an issue with runing our app on Android 2.2
The textfiled doesn't respond well with touch selection, wherease this problem doesn't happen on 1.5 Android Device.
I suspect that the problem is caused by jqtouch.c...
Given the following code:
Rect pos = new Rect();
for (int i = 0; i < mCols; i++) {
pos = mTiles[1][i].getmPos();
pos.top = pos.top - size;
pos.bottom = pos.bottom - size;
mTiles[0][i].setmPos(pos);
}
What I want to do is get the value from
mTiles[1][i].mPos
modify it, and set it in
mTile...
Hello,
I'd like to know how difficult it is to analyze and edit sound in android. My project would be a kind of DJ application.
I think AudioTrack is the most appropriate library, right ? How does the few android DJ apps work to display the spectrum of the sound, apply effect, change the speed, mix ect ... Do they use a more powerful ...