[android-developers] Facebook Connection Issue

2010-06-11 Thread Sohan badaya
Hi All, I want to get Facebook Friends List and online presence from my android application. For that i have got API_KEY and SECRET from facebook. I am using this code. Intent intent = new Intent(android.intent.action.VIEW, Uri.parse(http://www.facebook.com/login.php?

[android-developers] Re: Oracle Android App Store

2010-06-11 Thread Al Sutton
Do we need any more app stores? :) We've been running AndAppStore since the G1 launch and the most common reason we hear for developers not listing is that they don't want to maintain multiple market listings, so I doubt that the creation of multiple markets backed by large companies is viable.

Re: [android-developers] How to test onCreate with saved Bundle?

2010-06-11 Thread TreKing
On Thu, Jun 10, 2010 at 2:15 PM, Jeff jeff.th...@gmail.com wrote: Is there anyway that I can simulate or test this case to make sure I am restoring correctly now? Rotate the screen. - TreKing -

[android-developers] Re: Oracle Android App Store

2010-06-11 Thread Zsolt Vasvari
you can see that any company getting into the Android app store space is competing on a uneven playing field from day 1 on devices where they aren't integrated into the firmware, which makes running a market an unattractive proposition for most businesses. If they can offer paid apps in

[android-developers] Re: Anyone know how to make slide-to-activate-buttons?

2010-06-11 Thread Zsolt Vasvari
I am sure the source code for the unlock screen is available, I would start there. On Jun 11, 7:55 am, Rijad Sacirovic rij...@gmail.com wrote: What i mean is switches whom you cannot click to activate but instead have to slide them on Illustration: [x]---x Off      On You need to

Re: [android-developers] End activity

2010-06-11 Thread TreKing
On Thu, Jun 10, 2010 at 4:19 PM, Rohit mord...@gmail.com wrote: What I want is that when then user is done adding the item it should not take the user to activity A but directly to the desktop because that is where he invoked the activity (B) from Wait ...are you saying that if you start

[android-developers] Re: Best way for web service calls ??

2010-06-11 Thread StillALearner
Thanks Paul, Everything else seems a bit too heavy Thats the exact concern for why i have been hunting around different forums to check out for a better option, and as u said JSON with a RESTful service is one option am closely looking at. and other part which i need suggestion is on the Data

[android-developers] Airplane mode Causing a problem

2010-06-11 Thread Alok Kulkarni
Hi, I am having an HTC Magic device. Scenario For the problem I turn off airplane mode after putting it on for sometime. Once i do that and make some network connection either programatically or opening a browser, i get a Force Close dialog with process com.android.phone not responding. When i

[android-developers] How to get Response Url values.

2010-06-11 Thread Sohan badaya
Hi All, I have some code-- Intent intent = new Intent(android.intent.action.VIEW, Uri.parse(http://www.facebook.com/login.php? api_key=API_KEYconnect_display=popupv=1.0next=http://

[android-developers] How to get Response Url values.

2010-06-11 Thread Sohan badaya
Hi All, I have some code-- Intent intent = new Intent(android.intent.action.VIEW, Uri.parse(http://www.facebook.com/login.php? api_key=API_KEYconnect_display=popupv=1.0next=http://

Re: RE: [android-developers] Re: How global is the app market?

2010-06-11 Thread a a
杨键,别当卖国贼 On Jun 11, 2010 1:15 PM, �罱� youken1...@gmail.com wrote: To: Brad Gies I am sorry , I just means 安卓市�� is not the official market of China. It is faster that reply from your letter than search the original letter from hundreds of developers group letters. Good luck everyone.Hope your

RE: RE: [android-developers] Re: How global is the app market?

2010-06-11 Thread 楊健
Can you explain what you said? Am I wrong? _ From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of a a Sent: Friday, June 11, 2010 4:43 PM To: android-developers@googlegroups.com Subject: Re: RE: [android-developers] Re: How global is the

[android-developers] How to emulate onLowMemory?

2010-06-11 Thread Samuh
I have put some instructions in onLowMemory() callback and want to test the same. Is there a direct way to test onLowMemory function of the application subclass? Or will I have to just overload the phone by starting many apps and doing memory intensive tasks? Thanks. -- You received this

[android-developers] Streaming video from phone to server

2010-06-11 Thread Rijad Sacirovic
Hi, I need a hint (or actually more than one) on how to use the camera for capturing video and streaming it to a server. android.media.MediaRecorder seems to simple for this task i believe? Im in way above my head on this one, i hope you guys can help me. Everything is welcome! ideas, hints,

[android-developers] Re: Int to string

2010-06-11 Thread NightGospel
Hi Jason, EditText component provides setText() method with one integer indeed, but it's resource id. This means it will seek the string you defined in xml file. If the parameter you pass is not a resource id, it will occur error. Please invoke String.valueOf(tmp) or Integer.toString(int) method

[android-developers] Fetch meta-data from in ID3 tags

2010-06-11 Thread Samuh
I have a .mp3 track that contains song meta-data (title,lyrics,etc.) in ID3 tags. Does Android have any support for reading this? What would be the best way to read the tagged information? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] two listviews

2010-06-11 Thread André
Hello, I want to view two listviews at the same time. This is not the problem! What I don't know if it's possible is if I can have two different context menus for the two lists? And second, is there a way to check in which of the two lists the user has selected an item? I'd appreciate answers.

[android-developers] ANR discussion

2010-06-11 Thread NightGospel
Hi all, Be one of Android developers, you must be aware of the ANR(Application Not Responding) very well and understand how to avoid it. There are many ways you can choose to do. I usually create a thread and use a flag to trigger it to handle time-consuming tasks. For example: public class

[android-developers] how to show a dialog alert dialog when receive a broadcast

2010-06-11 Thread Mohammad Siddiqui
Hi everyone How to show a alert dialog(whithout any Activity) when receive a broadcast. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

[android-developers] Re: ANR discussion

2010-06-11 Thread Ernest
Hi, Most of time, ANR happened when main thread blocked. So I use another thread to handle 'time-consuming' operation, after receiving thread callback then invoke main thread. On Jun 11, 5:23 pm, NightGospel wutie...@gmail.com wrote: Hi all, Be one of Android developers, you must be aware of

[android-developers] dalvik and defineClass

2010-06-11 Thread garbeam
Hi there, I'm wondering if and how one can load dex or class files dynamically in dalvik, some quick'n'dirty test function I wrote was this: public void testLoader() { InputStream in; int len; byte[] data = new byte[2048];

[android-developers] Re: OutOfMemoryError

2010-06-11 Thread svebee
One is (background) 480x800, others are approx. 70x70px. (40x40,80x80,50x50...). I understood your answer but I don't know (technically, exactly) what I need to find. I sent you an e-mail. On Jun 11, 3:18 am, Eric F ericfrie...@gmail.com wrote: Look at the dimensions of your images, not the

[android-developers] Re: Soft keyboard “del” key fails in EditText on Gallery widget

2010-06-11 Thread droidful
Is anyone able to run the little applications I included above? I would love to know if it is just me with this problem or if it is a wider issue with the OS or my code. I am considering a re-write to ditch the gallery widget, but I kinda like the UI effect I am getting with the gallery widget; I

Re: [android-developers] two listviews

2010-06-11 Thread Mark Murphy
André wrote: What I don't know if it's possible is if I can have two different context menus for the two lists? Yes. And second, is there a way to check in which of the two lists the user has selected an item? Yes, with difficulty. Cast the MenuInfo you get in onContextItemSelected() to an

Re: [android-developers] Creating ContextMenu based on information from Cursor

2010-06-11 Thread Mark Murphy
julius wrote: I have a ListView which is populated with items and I would like to be able to create the context menu based on some information fetched from the Cursor used to create the row. Is there a preferred approach for storing a boolean or flag associate with the row? You could use

[android-developers] Communication between android app and desktop app using usb port.

2010-06-11 Thread sohel Cuetian
Hi, Is it possible to communicate from desktop app to an android app running on phone via usb connection? If its possible then please refer me the ways and APIs. I came to know that this is possible by using Bluetooth. But I want to do it by using usb connection if possible. -- You received

[android-developers] Re: two listviews

2010-06-11 Thread André
Thanks Mark, I will give it a go! On Jun 11, 12:42 pm, Mark Murphy mmur...@commonsware.com wrote: Andr wrote: What I don't know if it's possible is if I can have two different context menus for the two lists? Yes. And second, is there a way to check in which of the two lists the user

[android-developers] Re: Fetch meta-data from in ID3 tags

2010-06-11 Thread Samuh
Got it. ID3v1 is easy. Use RandomAccessFile and then seekTo (File.length - 128) bytes. Rest of the bytes is what I need. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com

Re: [android-developers] how to show a dialog alert dialog when receive a broadcast

2010-06-11 Thread Yuvi
Probably you can'tso, simply start an Activity that will display just your dialog. On Fri, Jun 11, 2010 at 11:46 AM, Mohammad Siddiqui siddiqui.m...@gmail.com wrote: Hi everyone How to show a alert dialog(whithout any Activity) when receive a broadcast. -- You received this

[android-developers] Does MediaPlayer support MP3+G or .kar file formats?

2010-06-11 Thread Samuh
There are a number of Karaoke application in Android market. I was wondering how these could have been written? Does Android MediaPlayer support MP3+G or .kar file formats? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

Re: [android-developers] ANR discussion

2010-06-11 Thread Kostya Vasilyev
Hello, A background thread in the main activity is almost, but not quite the same as an Android service. Quoting from http://developer.android.com/reference/android/app/Service.html: The Android system will attempt to keep the process hosting a service around as long as the service

[android-developers] onWindowFocusChanged from Back Button on Previous Activity

2010-06-11 Thread Mark Hansen
I have an Activity where I show a user a Dialog on the onCreate(), the user is then allowed Click OK to dismiss the dialog, Click RULES to read some rules, Click 'HIDE to hide the dialog in the future. The problem I'm having is when the user click view rules, which launches the browser and then

Re: [android-developers] onWindowFocusChanged from Back Button on Previous Activity

2010-06-11 Thread Mark Murphy
Mark Hansen wrote: I have an Activity where I show a user a Dialog on the onCreate(), the user is then allowed Click OK to dismiss the dialog, Click RULES to read some rules, Click 'HIDE to hide the dialog in the future. The problem I'm having is when the user click view rules, which

[android-developers] How to load url in webview.

2010-06-11 Thread Sohan badaya
Hi All, Below code not working in my system. public class WebViewDemo extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main);

Re: [android-developers] How to load url in webview.

2010-06-11 Thread Mark Murphy
Would you mind telling us how it is not working? Sohan badaya wrote: Below code not working in my system. public class WebViewDemo extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) {

Re: [android-developers] How to load url in webview.

2010-06-11 Thread Mark Murphy
Sohan badaya wrote: Not working means I am getting blank white screen. When i hit url in browser of emulator, it works so internet connection is perfectly fine. Do you have the INTERNET permission in your manifest? Does LogCat have any information? You can access LogCat via adb logcat, DDMS,

Re: [android-developers] How to load url in webview.

2010-06-11 Thread Sohan badaya
Hi, Thanks for reply, Yes i have written internet permission in menifest file. Sohan Badaya On Fri, Jun 11, 2010 at 7:09 PM, Mark Murphy mmur...@commonsware.comwrote: Sohan badaya wrote: Not working means I am getting blank white screen. When i hit url in browser of emulator, it works

[android-developers] How to delete a inbox message from a specific sender

2010-06-11 Thread Mohammad Siddiqui
Hi everyone How to delete a inbox message programmaticaly coming from a specific sender Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

[android-developers] SkyHook Wireless XPS app problem

2010-06-11 Thread subrat kumar panda
Hello all, in my XPS(Hybrid Positioning System) app my app is crashing after login to view the latitude,longitude page. what i think is my problem is at preference. after viewing the latitude longitude it get saved into the preference again fetching it because to send the old (latitude ,

[android-developers] AlarmManager problems in Milestone

2010-06-11 Thread Mika
Hi All, I'm having some strange behavior of wakeup alarms scheduled by AlarmManager in Motorola Milestone (Droid in US). The thing is that they don't wake the device as they should. The same piece of code works fine in Samsung Galaxy and the alarms are fired as they should fire. In Milesstone

Re: [android-developers] How to load url in webview.

2010-06-11 Thread Mark Murphy
Sohan badaya wrote: Hi, Thanks for reply, Yes i have written internet permission in menifest file. Try other Web pages. You mentioned a proxy server. AFAIK, whatever setting you have for the device proxy will be used by WebView. I do not see where you can configure a separate proxy for the

[android-developers] WebView.setEmbeddedTitleBar (public API or not?)

2010-06-11 Thread Biosopher
BrowserActivity uses WebView.setEmbeddedTitleBar to create the cool search bar feature at the top of it's web pages. This embedded title bar doesn't zoom when the users zoom the web page or scroll left/ right. My question is whether WebView.setEmbeddedTitleBar is a public API? The source shows

[android-developers] Re: Using a ListView and an Adapter: How to use notifyDataSetChanged()?

2010-06-11 Thread Streets Of Boston
I don't know your code, but it looks like the notifiyDataSetChanged() (like many other methods that can update the UI) needs to be called on the main GUI thread. You need to get hold of a View or a Hander (that was created on the main GUI thread, e.g. in your onCreate()) and call 'post' on it:

Re: [android-developers] How to load url in webview.

2010-06-11 Thread Sohan badaya
Hi, Thanks for reply, I will try this code behind proxy. Hope this will work. Sohan Badaya On Fri, Jun 11, 2010 at 7:38 PM, Mark Murphy mmur...@commonsware.comwrote: Sohan badaya wrote: Hi, Thanks for reply, Yes i have written internet permission in menifest file. Try other Web

[android-developers] Diffie hellman key exchange android and server.

2010-06-11 Thread BOUNS
Hello world. Currently I am working on an Android application, was a time I do a key exchange between the mobile and a J2EE server, I use the Diffie Hellman, here is how I did for the initialization: Security.addProvider (new BouncyCastleProvider ()); Provider provider = new BouncyCastleProvider

Re: [android-developers] A slightly altered pattern for extending the life span of a broadcast receiver (Not entirely verified yet)

2010-06-11 Thread Satya Komatineni
If you are following this thread you can find the initial implementation at the following project download url. http://www.satyakomatineni.com/akc/filestorage/satya/documentfiles/3468/StandaloneBroadcastReceiver.zip You can see the key source code from this project at

[android-developers] Re: Root permission for application

2010-06-11 Thread sws-vinpa
I too am interested in running an application as ROOT. I am using libusb and the setup requires writing to usb_set_configuration, which is not permitted unless run from a C application as root (eg. I cannot use JNI in my app to configure USB-host). Please keep posted. sws-vinpa On Jun 11,

[android-developers] Search suggestions causing inconsistent behavior in application after triggered from Quick Search Bar

2010-06-11 Thread BillyK
I'm running into an issue with the Quick Search Bar that I'm hoping someone can help me with. My application includes a Searchable activity used to provide search behavior within my application. That search activity is designed to trigger a separate Intent when the search item is clicked on so

[android-developers] Re: Signup for C2DM ?

2010-06-11 Thread brian
Silence from Google has been puzzling. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] how to display a Toast from an IntentService?

2010-06-11 Thread Flying Coder
So, I have an IntentService that handles button callbacks from a widget. When the user presses a certain button, I want to display a Toast. I return from onHandleIntent almost immediately after doing Toast.show(), which in turn stops the service and kills its thread, which keeps the Toast from

Re: [android-developers] Re: How to lanuch test application from phone

2010-06-11 Thread Brett Chabot
Another reference is the SDK documentation http://developer.android.com/guide/developing/testing/testing_otheride.html#AMSyntax Regards, Brett. On Wed, Jun 9, 2010 at 1:05 AM, Chander Pechetty cspeche...@gmail.comwrote: Use adb shell am instrument Check out the platform documentation at

Re: [android-developers] instrumentation tag internals

2010-06-11 Thread Brett Chabot
Have you read the docs at http://developer.android.com/guide/topics/testing/testing_android.html Thats the best source of info that I know of. Regards, Brett. On Wed, Jun 9, 2010 at 1:01 AM, Raja Nagendra Kumar nagendra.r...@tejasoft.com wrote: Hi, Would like to know the best place to get

Re: [android-developers] how to display a Toast from an IntentService?

2010-06-11 Thread Mark Murphy
Flying Coder wrote: So, I have an IntentService that handles button callbacks from a widget. When the user presses a certain button, I want to display a Toast. I return from onHandleIntent almost immediately after doing Toast.show(), which in turn stops the service and kills its thread,

Re: [android-developers] how to display a Toast from an IntentService?

2010-06-11 Thread Dianne Hackborn
Look at the service API demos, I think all of them display toasts. There should be nothing special involved -- just use the regular toast methods from the main thread. On Fri, Jun 11, 2010 at 9:58 AM, Flying Coder av8r.st...@gmail.com wrote: So, I have an IntentService that handles button

[android-developers] Re: how to display a Toast from an IntentService?

2010-06-11 Thread Flying Coder
Hi Mark, Thanks for the suggestion, but unfortunately, SystemClock.sleep() doesn't do the trick. :-( Cheers, Steve On Jun 11, 1:22 pm, Mark Murphy mmur...@commonsware.com wrote: Flying Coder wrote: So, I have an IntentService that handles button callbacks from a widget.  When the user

Re: [android-developers] Root permission for application

2010-06-11 Thread Dianne Hackborn
You absolutely can not do this. There are some open-source mods to Android that do allow apps to get root, but because of the security repercussions those should never appear on a shipping device. On Thu, Jun 10, 2010 at 9:28 PM, saikiran n saikiran@gmail.com wrote: Shall we give root

Re: [android-developers] Re: how to display a Toast from an IntentService?

2010-06-11 Thread Dianne Hackborn
Oh for doing it from the callback from IntentService, you need to do it from a thread that is actually running a responsive looper (which by definition IntentService does not, since the thread it is calling you on is there to run long-running operations). So schedule a message in a Handler of the

[android-developers] MapOverlay turns the phone unresponsive

2010-06-11 Thread Pinheiro
I'm trying to draw some points (around 200) in a MapOverlay and noticed that the application gets slow and the phone becomes unresponsive. Here's my code: MapOverlay mapOverlay = new MapOverlay(); ListOverlay listOfOverlays = mapa.getOverlays(); listOfOverlays.clear();

Re: [android-developers] MapOverlay turns the phone unresponsive

2010-06-11 Thread Mark Murphy
Pinheiro wrote: I'm trying to draw some points (around 200) in a MapOverlay and noticed that the application gets slow and the phone becomes unresponsive. Any reason you're not using an ItemizedOverlay? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy

Re: [android-developers] Re: how to display a Toast from an IntentService?

2010-06-11 Thread Satya Komatineni
May be this will work: MyService extends IntentService { Handler mMainThreadHandler = null; onCreate() { super.onCreate(); //initialize and populate the mMainThreadHandler //because this method runs on the main thread

Re: [android-developers] Re: how to display a Toast from an IntentService?

2010-06-11 Thread Satya Komatineni
If it helps here is a link to the source code of the nifty IntentService http://www.netmite.com/android/mydroid/1.6/frameworks/base/core/java/android/app/IntentService.java Satya On Fri, Jun 11, 2010 at 2:01 PM, Satya Komatineni satya.komatin...@gmail.com wrote: May be this will work:

[android-developers] Re: MapOverlay turns the phone unresponsive

2010-06-11 Thread Pinheiro
Any reason you're not using an ItemizedOverlay? Afaik, ItemizedOverlay only supports one marker type, right? I want to be able to use several. Of course I could use several ItemizedOverlays, each with it's own marker, but I guess that will impact perfomance. -- You received this message

[android-developers] Re: how to display a Toast from an IntentService?

2010-06-11 Thread Flying Coder
Thanks Satya, That did indeed do the trick! All the best, Steve On Jun 11, 2:01 pm, Satya Komatineni satya.komatin...@gmail.com wrote: May be this will work: MyService extends IntentService {       Handler  mMainThreadHandler = null;      onCreate() {                 super.onCreate();

Re: [android-developers] Re: MapOverlay turns the phone unresponsive

2010-06-11 Thread Mark Murphy
Pinheiro wrote: Any reason you're not using an ItemizedOverlay? Afaik, ItemizedOverlay only supports one marker type, right? No, you can have as many as you want: http://github.com/commonsguy/cw-advandroid/tree/master/Maps/ILuvNooYawk%2F -- Mark Murphy (a Commons Guy)

[android-developers] Bluetooth Discoverable

2010-06-11 Thread BITS
Hello! I am having trouble with using Bluetooth on the Nexus One. I want to be able to make the phone go to Discoverable mode without having the user to give my application permission every 120 seconds or 300 seconds. I have added the BLUETOOTH and BLUETOOTH_ADMIN permissions on the Manifest

Re: [android-developers] Re: Using a ListView and an Adapter: How to use notifyDataSetChanged()?

2010-06-11 Thread Mariano Kamp
Hey Streets, thanks. Actually I already run this on the UI thread. Here is my code (from a ListActivity): updateCursorRunnable = new Runnable() { public void run() { updateCursor(); refreshUI(); } }; Above you see the

[android-developers] Re: MapOverlay turns the phone unresponsive

2010-06-11 Thread BITS
Once you use the ItemizedOverlay class to prepare the markers to be plotted on the map, it will be easy to make it work. Here's the link that you can use to create the MyItemizedOverlay: http://developer.android.com/guide/tutorials/views/hello-mapview.html Hope it helps. Bits Android Team On

[android-developers] Re: Bluetooth issue on HTC Incredible

2010-06-11 Thread luoster
From my experiences, it seems as though all of the HTC phones with the Sense UI on it have trouble with SPP. It looks like the Bluetooth implementation is being hampered in someway by HTC. We've been able to connect using reflection, but the connection is currently flaky at best. Tested on

[android-developers] Re: Disable Bluetooth discoverable mode

2010-06-11 Thread BITS
Have you figured out how to start the discoverable mode without having to request the user to press YES? I am having a similar problem as you. I wanted to have my app to be able to use the bluetooth and be discoverable automatically and without turning off after a certain amount of time. Have

[android-developers] Re: MapOverlay turns the phone unresponsive

2010-06-11 Thread Pinheiro
Thanks, Mark! Strangely, I can't seem to make your code work. If I use: public MyItemOverlay() { super(null); ... the rest of your code... It crashes with NullPointer in: @Override public void draw(Canvas canvas, MapView mapView,boolean shadow) {

[android-developers] Re: MapOverlay turns the phone unresponsive

2010-06-11 Thread Pinheiro
Thanks BITS. Unfortunately the doc is not very helpful since it doesn't even give an hint on how to use different markers in the same ItemOverlay. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: MapOverlay turns the phone unresponsive

2010-06-11 Thread Pinheiro
Thanks, Mark! It seems to solve my problem :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Re: Disable Bluetooth discoverable mode

2010-06-11 Thread Gyan
Two answers: 1. Call the intended service instead of using the DISCOVERABLE option. Because every 300 seconds there will be a dialog box asking you make the device discoverable. If you make a service call, the device need not be discoverable to use the service. 2. There is an issue in the issue

[android-developers] Visit Installed App Details Page on Android 2.2

2010-06-11 Thread Bo
Hi All, I was using this method to show users the installed app details page Intent i = new Intent(Intent.ACTION_VIEW); i.setClassName(com.android.settings, com.android.settings.InstalledAppDetails); i.putExtra(com.android.settings.ApplicationPkgName, mAppContextPackageName); // start

[android-developers] Re: Certain apps not being shown in Android Market?

2010-06-11 Thread niko001
Still not working for me :-/! I've just found a pirated version of one of my apps (that had copy-protection enabled) floating around on several different sites, so the copy protection apparently isn't doing much good anyway and I can safely disable it ;-)! On Jun 9, 1:17 am, TreKing

[android-developers] How to control how many bytes does AudioRecord.read, read?

2010-06-11 Thread Bala
I'm trying to capture audio from a Nexus One and no matter what buffer size (bufferSizeInBytes) I set at construct time of AudioRecord, when I do a AudioRecord.read I always get 8192 bytes of audio data (128 ms). I would like the AudioRecord.read be able to read 40ms of data (2560 bytes). The only

[android-developers] Android 2.0 contact groups manipulation

2010-06-11 Thread Bao Le
I would manipulate the contact groups in Android 2.O. My code is following: To get a list of group (with id and title): final String[] GROUP_PROJECTION = new String[] { ContactsContract.Groups._ID, ContactsContract.Groups.TITLE }; Cursor cursor =

Re: [android-developers] Creating ContextMenu based on information from Cursor

2010-06-11 Thread Julius Spencer
Eg. should it be in the View? I could make the decision when creating the menu too, but I need to get a unique id from the row in the ListView public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { Cast the menuInfo to an

[android-developers] Re: dalvik and defineClass

2010-06-11 Thread fadden
(the story continues at: http://stackoverflow.com/questions/3022454/how-to-load-a-java-class-dynamically-on-android-dalvik ) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] whether XMPP must use a GMail account

2010-06-11 Thread 苗忠良
hi: I am currently working on a project which uses XMPP,I non't know whether I can use a client must is a GMail account. Please do comment on the above approach. If there is another way to do this, please do suggest. /***/ 苗忠良(Miao Zhong-liang)

[android-developers] whether XMPP must use a GMail account

2010-06-11 Thread 苗忠良
hi: I am currently working on a project which uses XMPP,I non't know whether I can use a client must is a GMail account. Please do comment on the above approach. If there is another way to do this, please do suggest. /***/ 苗忠良(Miao Zhong-liang)

[android-developers] Make entire screen disabled

2010-06-11 Thread pawan nimje
Hi All, When I click on a button i want to make entire screen disabled ... i.e there are other buttons and text area ..which should get disabled ...on a particular button click ..is it possible ?? -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] onPreferenceChangeListener question

2010-06-11 Thread schwiz
I was just checking out the developer docs and came across this http://developer.android.com/reference/android/preference/Preference.OnPreferenceChangeListener.html I have an idea I want to possibly use for this but one quick question if anyone knows. It says in the documentation Called when a

[android-developers] how to restore sms?

2010-06-11 Thread pramod.deore
Hi all, I am developing one application in that I want to save backup of sms on server and then restore that sms to mobile. I had saved the backup of sms on server but I don't know how to restore it to mobile, Please help me. Thanks in advance -- You received this message because you are