android

Application works in Android 1.5 but not 2.2

The spinning globe application unning on the emulator works on android 1.5 as target but puts out a "force close application" error in android 2.2 target. Where should i look to find the problem ? I have enclosed the logcat details that I get, D/MediaScanner( 183): prescan time: 4913ms D/MediaScanner( 183): scan time: 693ms D/Me...

Texture floating ponts - problem with rotation

Hello! I have a texture in my Square. The problem is when I assign floating texture points the image gets rotated 45 degrees at right. I want it without the rotation. The current texture points: texture = new float[]{ 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, }; Any ideas? Thanks in advance! This is how it ends: This is how...

Android: DatePicker not working inside Actvity

In my application I have a Tabbar and I am using ActivityGroup to load contents into each tab as shown below. public class FirstGroup extends ActivityGroup { // Keep this in a static variable to make it accessible for all the nesten activities, lets them manipulate the view public static FirstGroup group; // Need to k...

Broadcast intents not received by a service

Hi! I have an Android service which sends broadcast intents. I'm trying to get those intents in another application, which is an Android service. I wrote this in my manifest: <!-- Service --> <service android:enabled="true" android:name="...MyService"></service> <!-- Receiver --> <receiver android:name="...MyReceiver"> <intent-filte...

How to use data in different activities?

I have two activities A & B. In A i have three ArrayLists. I want to access these ArrayLists in activity B . How can I do that? These two activities are in same package. ...

How to get the screen resolution of android devices in c#

I'm creating a optimized web page for mobile devices with C#. Is there a way to offer a page for larger screens and one for smaller screens on android devices? With Apple i can differentiate between iPad and iPhone, but how can I do this with the galaxy tab or a regular android phone? I don't want to use any javascript in this case. ...

Is just setting a value faster than the checking of existance and only setting if doesn't exist - like in this Android / Java code?

Example: That code is run each time, when the listAdapter requests a new row: if (textViewTitle != null) textViewTitle.setTypeface(Controller.getInstance().widgetSettings.getBoldTypeface()); vs. if (textViewTitle != null && textViewTitle.getTypeface() != null && textViewTitle.getTypeface().equals(Controller.getIns...

Android - Function Normally without simcard

Is there any way to start a phone (Android OS) and make it function normally (of course i understand that no phone/sms services would be available) without any simcard. I mean i just want to start the phone without simcard inserted and make it work normally w.r.t. Apps installed I couldn't find any way to do this or may be i am missing...

How to create speech recognition plugin to add language support in Android

I saw this class http://developer.android.com/reference/android/speech/RecognitionService.html but there is no sample how to extend it so I can make the plugin to support my own language. My idea to sample the sound and send it through web service available at my lab then the processed sound will be returned as text. Thanks for help......

How to load a raw bitmap, without scaling on Android?

I have a bitmap file, that serves as a mask for a view. It has multiple rectangular areas with different colors on a white background. When the user touches the View, I use the X and Y coords of this event to look up the color of the mask (which is not displayed) and do things based on the color code returned. The problem is: loading th...

cant get MD5 Fingerprint of the SDK Debug Certificate

Hi , Am using ubuntu .am developing apps with google map.for that i registering for map apikey.I follwed the instruction in this following Link link text from this instruction i got MD5 Fingerprint of Your Signing Certificate,also i have keystore ,But i cant able get MD5 Fingerprint of the SDK Debug Certificate, for this I followed the...

How can I Unit Test Gestures in android?

I want to unit test a swipe left/right action on the screen in Android but I haven't been able to find any documentation on it. Can anyone lend a hand? Can it even be done? ...

Android Gtalk API?

Long back, android used to have GtalkService that let applications use Gtalk for various purposes, it was removed due to security reasons. Do we still have a method of invoking a Gtalk service that let us interact with gtalk from another application e.g. pinging a friend programmatically. ...

passing EditText value through putExtra()

how can i assign value of EditText to a string? I want to pass this value to an another activity through putExtras(). my code is : EditText txtquantity=(EditText) findViewById(R.id.EditText01); quantity_bundle.putString("quantity",txtquantity.getText()); when I am doing like this an error is occured. Please give me the solutio...

cant get MD5 Fingerprint of the SDK Debug Certificate

Hi , Am using ubuntu .am developing apps with google map.for that i registering for map apikey.I follwed the instruction in this following Link link text from this instruction i got MD5 Fingerprint of Your Signing Certificate,also i have keystore ,But i cant able get MD5 Fingerprint of the SDK Debug Certificate, for this I followed the...

Admob in Android problem

Good evening. I am currently developing an application and decided to try Admob ads. Unfortunately after following Admob's guide (pretty simple one, good job on that) I get no ad, whether I run it on the emulator or on my phone (HTC Desire). The weird part is that the ad has shown a couple of times (i really mean just a couple of times)...

App quit after throwing an error on console - win death . !!!

HI All. I m working on a app that is exactly like a radio when i start a channel and go to the home screen radio is running successfully but some time it throws an error and crash and quit the application i got the error on my console .What kind of this error is and how can we remove this error. INFO/WindowManager(90): WIN DEATH: Windo...

How can I fix my android photo upload to send larger streams of data

I have an android app that is attempting to upload photos to a web server via API interface. The method works fine as long as the image sizes are not too big (fails somewhere around 1280x800) Heres the code that will work will smaller images but fails with larger ones. Any suggestions? public void uploadPhoto(FileInputStream fileInputSt...

Android: how to make a GroupBox widget?

Hi All, It appears that Android doesn't offer such a useful widget. However, my screen design requires a view like this: Also, the interaction design requires that such boxes are displayed and hidden, depending on other data. Of course, I could construct such box from separate elements in my XML layout (e.g. from a shape and a textvi...

Sending message through installed applications

Hi experts, I would like to share a url from my android application. I would like to share this url through the installed applications in my device(bluetooth, facebook, google mail, messaging etc.). Given below is the code import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; i...