hi
i am using spinner in some application in spinner item list array this text replaced in drawable images how can its implemented
p
ersonalinformation = (Spinner) findViewById(R.id.SpinnerCategory);
ArrayAdapter<?> adapterDefaultpersonal = ArrayAdapter.createFromResource(Animals.this,R.array.Animalinformation, android.R...
Running my unit tests i have found that on android i am not receiving the complete atom document while the code works ok for JSE.
The URL is: https://www.googleapis.com/buzz/v1/activities/@me/@consumption?max-results=25
The request headers are:
authorization: [OAuth oauth_token="validToken", oauth_consumer_key="anonymous", oauth_versi...
Hi all,
This is my SimpleDBAdapter Class that encapsulates all the complexities of accessing the database and the inner class SimpleDBHelper takes care of CRUD operations,now the Problem that i am facing here is when i deploy the code, the tables were getting created, but the
i am unable to insert tht values in to the table, the id is ...
I've got the following MapOverlay. The following line is throwing a NullPointer but I don't understand why :S mapView.getProjection().toPixels(p, screenPts); could anyone help me out?
public class Mapview extends MapActivity {
GeoPoint p;
MapView mapView;
MapController mc;
@Override
protected boolean isRouteDisplayed() {
return f...
Looks like there's a plenty of questions about centering, same size etc, but so far I didn't find the exactly my case so I dare to ask :)
What I need is a layout of three buttons like this:
[ previous ][*select*] [ next ]
where [previous] and [next] buttons are of the same size (i.e. in this case, size of the [previous] button as i...
Hi!
I'm stuck with a simple program. I want to grab images from an external server every x seconds and display it on my android. My problem is that the display doesn't update. When I put everything in one class it works perfectly. The code beneath compiles and runs without any error but there must be something I missed because the scree...
I'm using a WebView in an Android application and while all locally created files are kept during application upgrades, it seems that the localStorage in the webview is completely erased. Is there any setting for not deleting it while upgrading?
...
I am working on an application based on Galaxy S at the moment. I know that Galaxy S is 480 px wide and 800 px tall, but how much is that in DP?
Lets say if I want to have two Layout side by side, I'll have them setting to 240 px. But how do I know what value I should use in DP unit?
...
So, I have an imageview that should display an arbitrary image, a profile picture downloaded from the internet. I want this the ImageView to scale its image to fit inside the height of the parent container, and a set max width of 60dip. However, if the image is tall ratio-wise, and doesn't need the full 60dip of width, the ImageView's wi...
Hi :-),
I've started to write a small app for android. It looks very nice, but there is one thing I don't understand.
I've created a new intent in the activity A and I've added a serialized vector intent.putExtra("key", vector). On the called activity B I'm doing this: Vector<ItemModel> items = (Vector<ItemModel>) getIntent().getExtras...
I have an animated icon in the status bar which works at first, but after alittle bit it starts to mess up. it is set to switch between two icons every 2 seconds and works fine at first, but after alittle bit it starts to go fast. it will stay with one icon for about a second and then set the other icon, then right back to the first ic...
friend's
I need to position the zoom control on webview, by default it sets in bottom of page
but i need it to be just above the bottom,because i using tabs below the webview the zoom controls not being positioned properly it overlapped on tabs.so i need to position it above bottom..
how can i get it
Thanks in advance.
...
Hi,
I would like to make a single Android app for multiple Android versions (possibly every one of them)
My problem is that I want to check what is the version of Android the app is currently running on, and dynamically load a class which is version dependent. This part should be ok.
I just wonder how I can achieve that without compila...
Hey Guys,
I've got the following code which plots a marker at the specified x/y screen co-ordinates. like so...
public boolean draw(Canvas canvas, MapView mapView,
boolean shadow, long when)
{
super.draw(canvas, mapView, shadow);
//---translate the GeoPoint to screen pixels---
...
I need a PDF library for manipulating a PDF documents, ( Creating PDF, image convertinng to PDF ) and things like that but in Android .
I tried the android itext port but the library project generates compile erorrs after I added it to my Project. Looks like it is still using some affinetransformation classes that are defined in ...
How to put file in sdcard using command line I tried by using adb push command but its not working my file is in D:/sample.ogg I had written
adb push sample.ogg/sdcard/sample.ogg
It's not working. Any help would be appreciated
Thanks
...
I have subclassed View and do some bitmap drawing inside of the onDraw method. This view is then placed in a horizontal scrollview. Some of the time the bitmaps will not be visible since they are scrolled off screen. To improve performance I would like to avoid drawing anything when the object will not be visible.
So the question is, ho...
How to put on pause? I have not found such a function. There are other ways?
...
Hi All,
I am developing an app in android, which basically visits a given url and downloads an image.
Now i want to populate this downloaded image and show it in thumbnail view.
I have tried out displaying the same from SD Card, but when i am doing the same for downloaded files, it doesn't seems to work.
public View getView(int posit...
Hello guys, I have a weirb bug that is pissing me off.
I have an app that is pretty much only a webview with some extra functionalities, one of them is a Custom Loading Dialog (Extended from the progress dialog) that I show on the onPageStarted call, and dismiss on the onPageFinished call. The problem is, if I do that (show the dialog), ...