android

problems with simple soundmanager

I am trying to build my own soundmanager which is a singleton. I have 3 activities in my application: MenuActivitie |+GameActivitie |+Settingsactivitie In settings the user have the possibility to turn sound on an off. When I end the game and restart there is no sound is playing. This is my code... Where is my mistake? package com.jb....

What is the purpose of using Intent.createChooser() in StartActivity() while sending email in Android

Hi, When ever we need to send an email in Android we will invoke registered email application using Intent.ACTION_SEND. like the below Intent i = new Intent(Intent.ACTION_SEND); startActivity(Intent.createChooser(i, "Send mail...")); My doubt is why do we need to use Intent.createChooser in startActivity rather than using startAc...

my app do not show in android market but only in some cases

I Have 2 htc tattoo, and I have the next problem, I've made an app and when I upload the app to the market the app is showing on one tattoo but not on the other. Any Ideas? I have activated all available markets, and deactivated the protections. My manifest has the next configuration: <uses-permission android:name="android.permission....

HttpsURLConnection Connection Problems

Hi, I'm a problem with a HttpsURLConnection that I can't seem to solve. Basically, I'm sending up some info to a server and if some of that data is wrong, the server sends me a 500 response code. However, it also sends a message in the response telling me which bit of data was wrong. The problem is that the message is always empty when I...

parsing xml Data

I have the following XML data. How do I track the error tag in case of an invalid request or input? If it is possible then can you please provide me proper code for this? Login Request: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSc...

how to autoscroll a list view in android?

hi how to autoscroll a list view in android?I am adding data to the list so i want that when i add it should autoscroll and the last added item should be visible. ...

Android HelloGoogleMaps tutorial exception

I'm working with the HelloGoogleMaps tutorial on the Android Developers' Resource page (http://developer.android.com/resources/tutorials/views/hello-mapview.html) and when I run part 1 of the application ("Creating a Map Activity") on my emulator, I get the message "The application HelloGoogleMaps (process com.example) has stopped unexpe...

Cant obtain md5 Fingerprint for api key

Hi, I am trying to develop the map element of my app and I am having trouble obtaining a md5 fingerprint, I am using Ubuntu and I have located the debug.keystore file, but when I enter the commands I get: No command 'store' found, did you mean: Command '0store' from package 'zeroinstall-injector' (universe) Command 'stone' from pack...

Android - Screen Resolution and Screen Density

As per managing resources(images) in > Android 1.6 version, we need to keep different-resolutions image in Drawable-Hdpi, Drawable-Mdpi, Drawable-Lpi folder particularly. And as per this page: http://developer.android.com/guide/practices/screens_support.html , In Low density section - there are three resolutions used: 240*320 , 240x400...

Change the way Android Browser sort its Bookmarks programmatically

Hello, I'm writing a Bookmark manager app and I got kinda stuck when trying to resort the Bookmarks (the ones being used by the default Browser with contentProvider). I know I can query the Browser contentProvider and resort the data as I please (.TITLE + " ASC", .VISITS + " DESC", etc) but this will only sort the Bookmarks list shown ...

Application installation date

Hello. I would like to know if there is anyway to know the date at which an application was installed in an Android phone. I would like to know this in order to implement a time limited trial / demo version of an application. I could save the date on the first usage, but a tech-savvy user could use ADB to change the database or delete ...

Why does my service get instantiated multiple times?

IIUC, there should only be one instance of a given Android service, it is a singleton. However, my service gets instantiated multiple times, although I do nothing for it. When the service crashes (for example when I uninstall the app through adb), it gets scheduled for restart ("Scheduling restart of crashed service.. "). I understand ...

How do i reference an Image from with in an HTML page locally package in an android App?

I was trying to display a static html page in an android app having some images in it. I saved the image in assests folder and also in res/raw folder. I was loading html file with this technique and html file is also in res/raw folder. super.onCreate(savedInstanceState); setContentView(R.layout.main); mWebView = (WebVi...

HorizontalScrollView Menu for Android

Hi, I have a menu that is made up of a HorizontalScrollView that has a LinearLayout with TextViews. When a user swipes/scrolls I want to be able to show and not show a leading and trailing image that represents that there are more options. So, when the application starts, the far left image is not shown but the far right image is. Once ...

Problem with OpenGL and bitmap

I'm loading a bitmap into OpenGL on Android with texImage2D. The problem is that I have to create a new bitmap, and paint the old bitmap into the new one, before I load it. See the example to get a better feel for what i mean. Generating the bitmap in this way doesn't work: Bitmap bitmap = BitmapFactory.decodeResource(context....

Progress Dialog in Android

is it possible to add any layout in progress dialog box in android?? ...

Eclipse Debug Issues While Coding Android Applications

I have an application I am writing for Android that basically does a screen scrape of a large table on the web and presents it in a nicer way on the handset. Its 500k of html and takes about 20 seconds or so normally. When I have my phone hooked up to the computer, I used to be able to just click on "Run" and my code would execute simil...

Add & delete view from Layout

Hi, How can I add & delete view from a Layout? Warm Regards, CB ...

Drawable Rotating around its center Android

I am getting strange results with the following code: iv = (ImageView) findViewById(R.id.iv); iv.setImageResource(R.drawable.spinner_white_76); Animation a = new RotateAnimation(0.0f, 360.0f, Animation.RELATIVE_TO_SELF, iv.getDrawable() .getIntrinsicWidth() / 2, Animation.RELATIVE...

I have to crop an image in Android Can anyone help me how to do it?

I have to crop an image in Android Can anyone help me how to do it? ...