android

How to use Parcelable if class requires additional parameters in construcor

Hi All, I'm trying to create class with generics that will have ability to serialize its state using Parcelable interface. The problem is that class has to contain constructor with single parameter - Parcel, but in my case I need to create class with additional parameters. Besides, Parcelable.Creator doesn't allow to use generics. Here ...

android picture frame

Hi, I'm new to android i'm developing small application i want to arrange pictures in screen just like tumbnail view and want scroll on all picture then i have to able to select the one picture after touching the picture on the screen how can i do it? plz help me Thanks in Advance. ...

How to use startMethodTracing APIs on Android?

I have recently started working on an app which has both Java and native components. I am trying to generate trace information for both components using Debug.startMethodTracing("myapp") and Debug.startNativeTracing() alternately. However, both are behaving unexpectedly. When I use Debug.startMethodTracing("myapp"), I can see a file /...

Problem in getting Contact Info

I m working on application in which i have to send all contacts from Android mobile to other mobile through SMS. I don't have any problem in getting contact information but when I send those Contacts after few messages there is Alert Window pop up saying "A large number of message have being send" and ask if you want to send or not. I ...

Android SecurityException with entry in Manifest

I'm doing a Gdata Blogger from Android device: GoogleLoginServiceHelper.getCredentials(this, REQUEST_CODE_LOGIN, null, GoogleLoginServiceConstants.REQUIRE_GOOGLE, BLOGGER_SERVICE, true); I have this permissions in my manifest: <uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH"/> ...

some fields of "content//sms/"

Hi, I query "content//sms/" and don't know what some fields are. They are - Thread ID Protocol Status Reply_Path_Present Service_Center I check them in LogCat. I find them like below Thread ID : 1 to 6 etc.. Protocol : null / 0 Status : -1 Reply_Path_Present : null / 0 Service_Center : null Please...

How To use Android Accelerometer Detection

Hello Sir,i want to know how to calculate the accelerometer movement.When i place the mobile horizontally in idle state and similarly when i place the mobile in hands,So there accelerometer value change when it is place horizontally or while it is in hand vertically.How To Identify them,Any Sample Codes will be useful Regards Rakesh S...

Is the Google I/O 2010 Android app open source?

The Google I/O app was made by Google to help attendees to the conference track which sessions they want to watch and see the entire schedule. I was wondering if it was available as open source since it has some good UI design and usability patterns. ...

android:google finance suggestionoption on ticker

hi I am looking to replicate the functions of the google "Get Quote" search. Example on http://www.google.com/finance?q=TSE%3ATCS : when you start typing in the the company ticker or name it will give suggestions and you can click on one and go to the page Thanks ...

Cannot activate View Touch Event After Animation end

I add animation on a Button, use .SetFillAfter(true) to keep the last view on screen. But I find it impossible to call touch event function by touching Button icon on the screen any more (but it can be called by touching original position). <?xml version="1.0" encoding="utf-8"?> <AbsoluteLayout xmlns:android="http://schemas.android.com...

Do I need an EULA for this Android app?

If you have an Android application that needs to retrieve data from your own server that depends on the latitude and longitude of the requests, do you need to let a user agree with the ability to save that same latitude and longitude for simple (and fun) statistical and anonymous purposes in some sort of EULA? Or is it sufficient to men...

Add Dynamic ListView Row

Hi, I could intercept ContentObserver changes at any time. In these time, I'd like to add a dynamic listview row with or without opening my application but i don't know how to implement it. Please share me some hints. Thank you. ...

Developing for iPhone or Android? (As a C# developer)

I'd like to start developing for iPhone or Android in my spare time, as a chance to learn something new but also hoping make some extra income. I'm not sure which is the best development for me to start developing on. I own an iPhone, but I don't have a Mac (which I would need to use the SDK), plus with the iPhone I believe there's an ...

A question about name a theme in xml and java code?

why define a theme name in xml doc(e.g.name="Theme.Translucent"), but in java code to refer it with setTheme method is "setTheme(R.styles.Theme_Translucent)", is it rule for android dev? whether "Theme.Translucent" == "Theme_Translucent" or not? it's stange!!!!! ...

How do I get state of a outgoing call in android phone?

hi all. I noticed in the class TelephonyManager there are CALL_STATE_IDLE, CALL_STATE_OFFHOOK adn CALL_STATE_RINGING. They seem to be used for incoming calls. What I actually want to do is to be notified when an outgoing call is made, is received, or timed out. How to do that? ...

Why is PackageInfo.requestedPermissions always null?

I'm trying to enumerate all the permissions used by all the installed packages, however when I check the requestedPermissions property for each of my installed packages it is always null. ...

How to start 'View Contact' Activity on android?

Hi all, I want to create a tab which contains a tab for viewing contact detail. Here is what i did: intent = new Intent(Intent.ACTION_VIEW, Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_URI, ""+contactId)); nativeInfo = tabHost.newTabSpec("native info").setIndicator("N Info").setContent(intent); It throw security exce...

AnimationDrawable, when does it end?

I know there have been several people with the same question. Which is: How do i know when a frame by frame animation has ended? I have not had any useful answer on fora i visited. So i thought, let's see if they know at stackoverflow. But I could not sit still in the mean time, so i made a work around of this, but it does not really wor...

How to remove strings from a compiled binary (.so)

How do I remove strings from / obfuscate a compiled binary? The goal is to avoid having people read the names of the functions/methods inside. It is a dynamic library (.so) compiled from C++ code for Android with the NDK tools (includes GCC) I compile with -O3 and already use arm-eabi-strip -g mylib.so to remove debugging symbols, but ...

Combining packages from different projects into a single project in eclipse

Hi, As part of the Android application I am developing in eclipse, I need to combine two packages from different projects into a single project. I tried copying the files in the package of the second project under the src folder of the first folder and copied other files required for second package into the res folder of the first proje...