android

Google map not displayed in my android application now it displayed before two days

Hi, I developed apps with google map.I got map key i got google map in my application two days before .I did nt change anything but now i did not get the google map only show boxes .The logcat show couldn't get connection factory client error.I searched this error but i can't get clear ans as well as map .So plz anyone help me to solve t...

draw text "ellipsized" to a canvas

I need to draw text to a canvas (of a custom view), and need to first trim it to a maximum width, adding an ellipsis at the end if necessary. I see you can do it for a TextView, but I want to do it inside a custom view's onDraw() without having to add a child view. Is this possible? I know I could measure the string, chop off a char...

[Android]Downloading a youtube video.

I am trying to Download a Video as explained in: http://stackoverflow.com/questions/2678051/cant-download-youtube-video and http://stackoverflow.com/questions/3172962/how-does-a-youtube-movie-downloader-work-youtube but it seems this method does not work anymore. How can I download the .flv from Youtube today? Is there a method to sav...

Adroid sdk development for credit swap

Hi I want develop sdk for reading data from swap reader. please tell me the basic procedure to read. i have device (swap reader) for Audio jack 3.5mm connector ...

facing Problems in working with android in built camera

Hi friends... i am using android inbuilt camera to take picture and then saving them using code, it working well in the device but is showing error every time in the emulator, i just want know is there way to use inbuilt camera in emulator with out giving error. because i don't want test every time on device. is there any tool like...

Androd Services question

The text below pertains to Android Services All requests are handled on a single worker thread -- they may take as long as necessary (and will not block the application's main loop), but only one request will be processed at a time. Since all requests are handled using a single worker thread and if In a scenario if worker t...

Best free 2D engine for android games?

Hi, I have been reading up on some free engines to use for a game I would like to develop. However I can't seem to make out which one is best. I have focused on AndEngine and TyphonRT however sadly the latter seems to be not realesed yet, a shame as it apears to be a beetter choise. What would you reccomend? Thanks Ps does anyone hav...

how to add web view in list view with example

Hi friends can anybody tell how to add web view in list view in android give example Thanks ...

Add wi-fi printer to android device

Hi everyone, I want to add an wi-fi printer to our android device to get printout. please help i am waiting for response. Thanks in advance. ...

Test a mobile website for Android or BlackBerry

How do I test a mobile website for Android or BlackBerry without having the actual device? ...

ViewFlipper crashes after orientation change

Hi, I'm trying to use inflate while using ViewFlipper to access to the data inside my view. I've done sample project that crashes. main.xml < ?xml version="1.0" encoding="utf-8"?> < ViewFlipper xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/RelativeLayout" android:layout_width="wr...

Call the same activity but with new parameters

Hello I'm trying to create calendar for android. There is a month switcher (previous/next month). How can I call the same activity (which displays the calendar) with other parameters... e.g. previous month will have CalendarMonth(java.util.Calendar.MONTH - 1) and next month will have CalendarMonth(java.util.Calendar.MONTH + 1) curr...

Android: 2 toasts same time

Ok, I have 1 custom toast (xml layout) and it works great: LayoutInflater inflater = getLayoutInflater(); View layout = inflater.inflate(R.layout.custom_toast, (ViewGroup) findViewById(R.id.toast_layout)); ImageView image = (ImageView) layout.findViewById(R.id.logo); image.setImageResource(R.drawable.logo); t...

How to render a grayscaled texture on Android?

I have a colored texture work as a menu button. Sometimes I want to gray it out when it's disabled. How to do it without creating a new grayscaled texture? Can glBlendFunc do this for me? Thanks in advance. ...

Android: Performances of Native/JNI code change from one phone to another

Hi all I'm having an problem with my JNI library. The execution time of the same code changes from one phone to the other. I thought it was just because we were testing on an old phone but recently I run on htc legend and all the jni code was slow... I run the profiler and its really a night and day difference: on some phone the jni fun...

Add city and street to android

hai....i want to make an application to add personal details to the contacts in android I am able to add the name phone number etc using.. intent addContactIntent = new Intent(Contacts.Intents.Insert.ACTION, Contacts.People.CONTENT_URI); addContactIntent.putExtra(Contacts.Intents.Insert.NAME, "myname"); addContactIntent.pu...

gps doesn't provide my longitude and latitude accurately Android?

Hi, I am usin location service for getting latitude and longitude of my location.While running my program it will give me wrong latitude and longitude.How can i get my current location details accurately? Is there any settings in mobile /device ? String locationProvider = LocationManager.GPS_PROVIDER; if(!locationManager.isProv...

error when saving a java file ( Some characters can not be mapped using Cp1252 character encoding)

When I am tring to save a java file, an error occured and and I can not save the file. Error is : "Some characters can not be mapped using Cp1252 character encoding." My Code is : package org.anddev.android.HelloWorld; import android.app.Activity; import android.content.SharedPreferences; import android.os.Bundle; import androi...

How to use sharepoint webservice in android?

Hi all, I want to use Sharepoint webservice in android.i don't know how to start. Anyone help me.. ...

How to get X & Y resolution in DPI for the android platform?

How do I obtain the X & Y resolution of a Bitmap in DPI on the android platform? I'm expecting some api like 'GetXResInDPI()' like below : double getXResolution(Bitmap bmp) { double lXRes = Bmp.GetXResInDPI(); return lXRes; } I'm unable to obtain any such method for the android platform in spite of scourging through the java do...