Hello, I have a class that extends Overlay and implemments Overlay.Snappable. I have overriden its draw method:
@Override
public void draw(Canvas canvas, MapView mv, boolean shadow)
{
Projection projection = mv.getProjection();
ArrayList<GeoPoint> geoPoints = new ArrayList<GeoPoint>();
//Creating geopoints - ommited for read...
I used a gridview in this app.
When i run it at Verison 1.6 or newer, it's OK. But i can not get this gridview in 1.5.
I always show this info and exception:
Unable to resolve drawable "com.android.layoutlib.utils.DensityBasedResourceValue@397660" in attribute "listSelector"
org.xmlpull.v1.XmlPullParserException: Binary XML file line...
I know that unfortunately detecting and changing programmatically data connection (GPRS/UMTS) on vanilla Android is not possible, and the common workaround is to edit APN settings. This is hardly a nice solution.
However on my device (Xperia X10) I have an additional setting near "data roaming", that allows to enable or disable MMS and ...
Hi everyone,
I'm wondering why the Motorola Milestone with 2.1-update1 behaves differently from the Emulator or e.g. the Nexus One. I am trying to exit my app with:
@Override
protected void onPause() {
if(mayDestroyActivity) this.finish();
super.onPause();
}
This works well on either Emulator or Nexus One. onDestroy() gets ca...
I have a long scrolling list of EditText items created by a SimpleCursorAdapter and prepopulated with values from an SQLite database.
I make this by:
cursor = db.rawQuery("SELECT _id, criterion, localweight, globalweight FROM " + dbTableName + " ORDER BY criterion", null);
startManagingCursor(cursor);
mAdapter = new SimpleCursorAdapt...
Hi.
When I apply some animation to the view, which is out of window, the
animation not start immediately.
And then, I scroll the screen to show the animation target view, the
animation will start.
I hope to the animation will start immediately when it apply. Any
ideas?
Bellow is sample code. Thank you.
public class AnimationValidati...
Hi guys,
I'm just wondering what consequences the method
isRouteDisplayed()
has, regarding to functionality of a map view...
I have two activities, one displays a route and one doesn't. Is it mandatory to let the first isRouteDisplayed()-Method return true? What effects does it have?
greets, poeschlorn
...
I am streaming an rtsp video to Android.
How could I calculate network metrics like packet loss, jitter or delay?
...
Hi...
I have a problem while using the following import functions..Can any1 help me how to solve it
import android.net.http.RequestQueue;
import org.apache.commons.codec.binary.Base64;
My intent is to send a tweet using Android..
...
Hi. I am having an OutOfMemory exception with a gallery over 600x800 pixels JPEG's.
The environment
I've been using Gallery with JPG images around 600x800 pixels.
Since my content may be a bit more complex than just images, I have set each view to be a RelativeLayout that wraps ImageView with the JPG.
In order to "speed up" the use...
Hi Guys,
I am facing the problem with openfileinput class.
First thing is , I am saving my username and password in the file.On sucessful login, I will be saving and moving to internal home screen.The problem is when I logout or close the application, and reopen the application I am able to read the data but when I convert it to String ...
Can anyone tel me how to tweet using Android?
How can i send tweets using Android?
...
I'm developing an app in which i need the TCP connection to stay alive. I've implemented a kind of ping/pong system to do this. It works perfectly when the screen is on, but when it goes of the phone stops responding to the pings after a while. I've created a Wi-Fi wake lock but i'm still experiencing still the same problem..
This is my...
I have fairly large map overlay that I am displaying over the google maps data but would still like to see the country/state/province lines through my overlay (so the lines would essentially be on top of my overlay).
As I understand, these lines are simply polygons drawn over the maps. Is there any way to access these? If so, how do I...
In an Android app, whenever the activity launches, the textbox gets the focus and the soft keyboard pops up automatically. I have tried to stop this by using following line in onCreate method, but it does not work.
((InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(EditText.getWindowToken(), 0)...
hi,
refering to this question: http://stackoverflow.com/questions/2949994/how-does-scrolling-in-android-listview-work
on change from state 2 to 3 the clicked listitem is increased in its size to show more information. if the clicked item was the last one on screen, the extended listitem is not fully visible because the new content flow...
Before u start: I searched the google and stackoverflow, none of them gave clear answer.
Situation: I'm using Eclipse on Windows to develop Android application. So when I'm trying to run the app, the system outputs to console
[2010-06-14 17:04:39 - HelloLinearLayout] ------------------------------
[2010-06-14 17:04:39 - HelloLinearLayo...
I want to create a SQLite database in my app, which contains three tables, I will add data into tables and will use them later on.
but I like to keep database ,as if when app is first time installed it checks whether the database exist or not, if exists it updates it else if not then creates a new database.
further more I am making a D...
I'm interested in android activity lifecycle and I would like to get more detailed description/documentation/reference than widely available basic (onCreate->onStart->onResume) one.
My need comes from realizing that starting new activity (Theme.Dialog styled) from onAttachedToWindow() greatly improves response time if comparing to star...
Calling a .net SOAP1.1 web service from android using ksoap2 lib I met a problem of casting response to a custom object. For instance the code below is called correct after httpTransport.call(soapAction, soapEnvelope); and have data inside. But I cant't cast it to specific object neither to SoapObject or Vector as I saw in several exampl...