[android-developers] detect whether the network is connect
hi all, how can I check whether the network is connect or not in my application? eg: I have three connect type, wifi, 3G and ethernet, I want to detect whether the connection is setup or not by the application, if not, it will pop up a dialog to mention user that there are not connect yet. but now when I use my ftp application, if there are not connection, the application will crash down, that't not my expected. 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to Load PDF to Browser?
Is there any inbuilt function to load PDF or DOC file.. Tried using Webview but content was not displayed... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Touch screen inactive
In stacking tasks, at some point the touch screen dont work any more. It works again later without reason. Is this a known 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to test if app is shown on Market for all screensizes
We haven't turned copy protection on for our app, and it is still not visible on HTC Tattoo/HTC Dragon. Please, Google is this a known issue? On Tue, Nov 17, 2009 at 11:02 AM, Aspidoff aspid...@gmail.com wrote: I noticed this problem when the new Droid Eris came out. At first, i started messing with minsdk and even lowered it to 2 but that didnt fix it, the apps didnt show up in the market. I ran through Verizon and Sprint stores for days to try to get this to work. I dont think Google people even know the problem exist. I am surprised that this problem hasnt been fixed for such a long time now. Anyway, the reason why you can 't see your app on HTC Hero/Eris or any other 1.5 phones is because you have copy protection set to On. You can turn this off in your developer console when logged in to your Android Market account and editing your application description/title cheers! On Nov 17, 1:19 am, Klaus Kartou kar...@gmail.com wrote: Is there any Google people that can shed some light on this issue? On Mon, Nov 16, 2009 at 4:42 PM, blindfold seeingwithso...@gmail.com wrote: Thanks Phil! Indeed this is very strange. As I understand it, all Android 1.6 apps should by default be visible to HTC Tattoo on the Android Market, and use of the camera should not matter. I had even tested my app to show OK on a 240x320 screen using the emulator, and cannot think of anything else to correct. I was thinking of trying an empty supports- screens element in case documentation is ambiguous, but even so it would not seem to make sense to have the CAMERA dependency. Hopefully HTC or Android developers (Romain?) will figure it out soon, because this kind of market fragmentation seems unnecessary. On Nov 16, 9:55 am, phil philipp.bre...@gmail.com wrote: Hi Blindfold, We were not able to find The vOICE for Android in the Market on the Tattoo. But we found it on the HTC Magic in the Market. Hope there will be a solution for this issue soon. On Nov 15, 8:21 am, blindfold seeingwithso...@gmail.com wrote: OK, I didn't know that. My curiosity was triggered by Phil with the suggested role of the CAMERA permission in having apps be visible on the Market, which AFAIK should not have made any difference. Also, android:minSdkVersion=4 (Android 1.6) according to documentation implies that all screensizes are assumed supported: http://d.android.com/guide/practices/screens_support.htmlIf android:minSdkVersion or android:targetSdkVersion is 4 (Android 1.6) or higher, the default value for everything is true. So I expected that basically only visibility of (unadapted for screensize) Android 1.5 apps on the Market would be affected, without any role for android.permission.CAMERA, and I would otherwise be surprised. BTW, lots of HTC Tattoo buyers seem annoyed, judging fromhttp:// androinica.com/2009/10/11/htc-tattoos-android-market-will-not-... where it is stated that even Google's own Listen, My Tracks and Sky Map are (were?) not visible on Android Market for users of the HTC Tattoo. On Nov 14, 11:39 pm, Klaus Kartou kar...@gmail.com wrote: Hi Blindfold, Sorry I dont have a HTC Tattoo to test :( Thats our problem...some users reported that they couldnt find our app on Market with their Tattoo. But we have no idea why? To Edward: HTC Tattoo has a camera, so that cannot be the reason our apps are not showing. What to do? :D Cheers On Sat, Nov 14, 2009 at 10:46 PM, Edward Falk ed.f...@gmail.com wrote: Oh, and more importantly, the Android market should have a tool that allows developers to get a list of devices that their application won't be shown for, and why. -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because
Re: [android-developers] Re: java.lang.IllegalStateException: Content of adapter changed but ListView didn't
I don't seem to be manipulating it at all in the background thread; only the array list it is connected to. That's your problem right here. You cannot change the adapter's data from outside the UI thread. On Tue, Nov 17, 2009 at 7:38 PM, WoodManEXP woodman...@gmail.com wrote: I have run into this, pretty much exactly as you describe it, starting with Android 1.6, but not before. Get any ideas about what's going on? On Oct 10, 11:22 pm, pawpaw17 georgefraz...@yahoo.com wrote: I'm getting an unhandled exception in my class that fills an arrayadapter from items in a database: 10-11 04:05:26.883: ERROR/AndroidRuntime(886): java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. At the end of my OnCreate method I fire off a background thread: Thread thread = new Thread(null, doSearchDatabase, Background); thread.start(); I fill the array list in the run method of the thread, and use a handler to post a message at the end of the processing: hh.post(postdoSearchDatabase); In the run method of the handler, which I presume is a UIThread, I do: Collections.sort(myArrayList); aa.notifyDataSetChanged(); Here I do let the array adapter know things have changed. Does this exception always mean I'm doing something wrong with the array adapter in a background thread? I don't seem to be manipulating it at all in the background thread; only the array list it is connected to. Any ideas? the exception isn't thrown every time, and if I step slowly through in the debugger it is not thrown. Seems FAR worse running in Android 1.6. thanks, pawpaw17 -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: PhoneStateListener::onSignalStrengthChanged
Not quite, the original way passed an int not a SignalStrength class, i dont think SignalStrength is part of the SDK yet. They say its been deprecated, i assume this means a soon to come revision of the SDK will have this class in and fixed. You will have to wait for a google developer to confirm this. Ne0 On Nov 17, 5:48 pm, Ken Adair kadai...@gmail.com wrote: Thanks for the reply. The way you mentioned was the way to do it prior to Android 2.0. However, it has since been deprecated, meaning that is no longer the way to access signal strength. From my limited testing this method no longer seems to work when testing with the Droid. On Nov 17, 12:30 pm, Master_Ne0 master.ne0s.soluti...@googlemail.com wrote: The source code suggests this, @Override public void onSignalStrengthsChanged(SignalStrength signalStrength) { mSignalStrength = signalStrength; updateSignalStrength(); } where SignalStrength is android.telephony.SignalStrength class. Let me know if this works, doubt that it will be backwards compatible. Ne0 On Nov 17, 1:46 am, Ken Adair kadai...@gmail.com wrote: I'm assuming it is returning -1 because it is no longer being used with 2.0? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] adding new API : make error :41
Hi all, I want to add my own API's to android. For this thing I followed one document I got from net and according to I added one directory called abc to android framework which contains three sub directories java, jni and libabc. When I tried to build the source code with this added directory I got following error: make: *** No rule to make target `out/target/product/generic/obj/STATIC_LIBRARIES/�_intermediates/�.a', needed by `out/target/product/generic/obj/SHARED_LIBRARIES/libabc_jni_intermediates/LINKED/libabc_jni.so'. Stop. Then I checked the libabc_jni_intermediate directory and found that LINKED directory is missing The content of all this java directory is abc.java class file package android.abc; public class abc { static { System.loadLibrary(abc_jni); } public native int print(int i); public abc() { //test } } The content of jni directory is one android_abc_abc.cpp which contains jni layer for accesing native function. and Android.mk file. The content of Android.mk is as given below. ifneq ($(BUILD_WITHOUT_PV),true) LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES:= \ android_abc_abc.cpp LOCAL_SHARED_LIBRARIES := \ libopencoreplayer \ libopencoreauthor \ libandroid_runtime \ libnativehelper \ $(warning JNI makefile) LOCAL_STATIC_LIBRARIES := \ libabc LOCAL_C_INCLUDES += \ external/tremor/Tremor \ $(PV_INCLUDES) \ $(JNI_H_INCLUDE) \ $(call include-path-for, corecg graphics) LOCAL_CFLAGS += LOCAL_LDLIBS := -lpthread LOCAL_MODULE:= libabc_jni LOCAL_PRELINK_MODULE := false $(warning JNI makefile) include $(BUILD_SHARED_LIBRARY) endif And content of libabc directory are test.h and test.cpp file which defines native function along with Android.mk. The content of android.mkfile is LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES:= \ test.cpp LOCAL_SHARED_LIBRARIES := \ libui libcutils libutils $(warning LIBABC make file) LOCAL_MODULE:= libabc LOCAL_PRELINK_MODULE := false ifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true) LOCAL_LDLIBS += -ldl endif ifneq ($(TARGET_SIMULATOR),true) LOCAL_SHARED_LIBRARIES += libdl endif LOCAL_C_INCLUDES := \ $(call include-path-for, graphics corecg) $(warning LIBABC make file) #include $(LOCAL_PATH)/abc/jni/Android.mk #include $(BUILD_STATIC_LIBRARY) #LOCAL_BUILT_MODULE:=libabc include $(BUILD_STATIC_LIBRARY) Please tell me what thing is causing error Or if any one knows any other way to add new API to android please share it. Thanks in advance, Sagar -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to test if app is shown on Market for all screensizes
Same thing with me, I have copy protection turned off in Android Market. It would be good now to get some feedback from Google or HTC on whether it is a bug. On Nov 18, 9:54 am, Klaus Kartou kar...@gmail.com wrote: We haven't turned copy protection on for our app, and it is still not visible on HTC Tattoo/HTC Dragon. Please, Google is this a known issue? On Tue, Nov 17, 2009 at 11:02 AM, Aspidoff aspid...@gmail.com wrote: I noticed this problem when the new Droid Eris came out. At first, i started messing with minsdk and even lowered it to 2 but that didnt fix it, the apps didnt show up in the market. I ran through Verizon and Sprint stores for days to try to get this to work. I dont think Google people even know the problem exist. I am surprised that this problem hasnt been fixed for such a long time now. Anyway, the reason why you can 't see your app on HTC Hero/Eris or any other 1.5 phones is because you have copy protection set to On. You can turn this off in your developer console when logged in to your Android Market account and editing your application description/title cheers! On Nov 17, 1:19 am, Klaus Kartou kar...@gmail.com wrote: Is there any Google people that can shed some light on this issue? On Mon, Nov 16, 2009 at 4:42 PM, blindfold seeingwithso...@gmail.com wrote: Thanks Phil! Indeed this is very strange. As I understand it, all Android 1.6 apps should by default be visible to HTC Tattoo on the Android Market, and use of the camera should not matter. I had even tested my app to show OK on a 240x320 screen using the emulator, and cannot think of anything else to correct. I was thinking of trying an empty supports- screens element in case documentation is ambiguous, but even so it would not seem to make sense to have the CAMERA dependency. Hopefully HTC or Android developers (Romain?) will figure it out soon, because this kind of market fragmentation seems unnecessary. On Nov 16, 9:55 am, phil philipp.bre...@gmail.com wrote: Hi Blindfold, We were not able to find The vOICE for Android in the Market on the Tattoo. But we found it on the HTC Magic in the Market. Hope there will be a solution for this issue soon. On Nov 15, 8:21 am, blindfold seeingwithso...@gmail.com wrote: OK, I didn't know that. My curiosity was triggered by Phil with the suggested role of the CAMERA permission in having apps be visible on the Market, which AFAIK should not have made any difference. Also, android:minSdkVersion=4 (Android 1.6) according to documentation implies that all screensizes are assumed supported: http://d.android.com/guide/practices/screens_support.htmlIf android:minSdkVersion or android:targetSdkVersion is 4 (Android 1.6) or higher, the default value for everything is true. So I expected that basically only visibility of (unadapted for screensize) Android 1.5 apps on the Market would be affected, without any role for android.permission.CAMERA, and I would otherwise be surprised. BTW, lots of HTC Tattoo buyers seem annoyed, judging fromhttp:// androinica.com/2009/10/11/htc-tattoos-android-market-will-not-... where it is stated that even Google's own Listen, My Tracks and Sky Map are (were?) not visible on Android Market for users of the HTC Tattoo. On Nov 14, 11:39 pm, Klaus Kartou kar...@gmail.com wrote: Hi Blindfold, Sorry I dont have a HTC Tattoo to test :( Thats our problem...some users reported that they couldnt find our app on Market with their Tattoo. But we have no idea why? To Edward: HTC Tattoo has a camera, so that cannot be the reason our apps are not showing. What to do? :D Cheers On Sat, Nov 14, 2009 at 10:46 PM, Edward Falk ed.f...@gmail.com wrote: Oh, and more importantly, the Android market should have a tool that allows developers to get a list of devices that their application won't be shown for, and why. -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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] Re: Autohide Scrollbar in ListView
Thank you for reply. Would you tell me which part in 2.0 supports this feature? I should check that part. On Nov 17, 1:49 pm, Dianne Hackborn hack...@android.com wrote: This is not a standard part of the Android UI, though support for this kind of behavior was introduced in 2.0 (but not used in ListView since that is not the standard behavior for it). On Mon, Nov 16, 2009 at 6:43 PM, NoraBora noranb...@gmail.com wrote: How can I autohide scrollbar in ListView? I thought there would be an autohide attribute for ListView but there isn't. What I want to do is scrollbar is hidden at first when I touch the listview, scrollbar appears 2~3 seconds after the touch off, scrollbar disappears again. What is the easiest way to do this? -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem in setMargins() and textview
any idea On Nov 18, 12:23 pm, Nithin nithin.war...@gmail.com wrote: Padding can't do. I want to implement margin, itself. On Nov 18, 12:09 pm, GPU gopuraj...@gmail.com wrote: use the padding On Nov 18, 10:20 am, Nithin nithin.war...@gmail.com wrote: Hi, I tried in this way too, still no success MarginLayoutParams compParams = new MarginLayoutParams (MarginLayoutParams.WRAP_CONTENT, MarginLayoutParams.WRAP_CONTENT); compParams.topMargin=100; compParams.leftMargin=100; compParams.bottomMargin=0; compParams.rightMargin=0; //compParams.setMargins(100, 100, 0, 0); TextView tv = new TextView(this) tv.setLayoutParams(compParams); setContentView(tv); any idea please.. Thanks On Nov 17, 7:58 pm, Nithin nithin.war...@gmail.com wrote: anybody know this.. I googled alot, but cant get the exact thing.. Thanks On Nov 17, 6:45 pm, Nithin nithin.war...@gmail.com wrote: Hi, I created a textview and also MarginlayoutParams. Then i put setMargin for the MarginLayoutParams and inserted that to textview using tv.setLayoutparams(), but its not working. The code is, MarginLayoutParams compParams = new MarginLayoutParams (MarginLayoutParams.WRAP_CONTENT, MarginLayoutParams.WRAP_CONTENT); compParams.setMargins(100, 100, 0, 0); TextView tv = new TextView(this) tv.setLayoutParams(compParams); setContentView(tv); But the textView is still in top left corner, its not moving. Any suggestions please.. 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem in setMargins() and textview
Hi, now, I am trying in this, still its not working... LinearLayout layout = new LinearLayout(this); LayoutParams layoutParams = new LayoutParams( LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.FILL_PARENT); layout.setLayoutParams(layoutParams); MarginLayoutParams compParams = new MarginLayoutParams( LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT); compParams.setMargins(50, 100, 0, 0); TextView tv = new TextView(this); tv.setText(Sample text); tv.setLayoutParams(compParams); layout.addView(tv); setContetntView(tv); // trial 2 compParams.leftMargin=50; compParams.topMargin=100; compParams.rightMargin=0; compParams.bottomMargin=0; tv.setLayoutParams(compParams); this way also, not working... any idea... On Nov 18, 3:10 pm, Nithin nithin.war...@gmail.com wrote: any idea On Nov 18, 12:23 pm, Nithin nithin.war...@gmail.com wrote: Padding can't do. I want to implement margin, itself. On Nov 18, 12:09 pm, GPU gopuraj...@gmail.com wrote: use the padding On Nov 18, 10:20 am, Nithin nithin.war...@gmail.com wrote: Hi, I tried in this way too, still no success MarginLayoutParams compParams = new MarginLayoutParams (MarginLayoutParams.WRAP_CONTENT, MarginLayoutParams.WRAP_CONTENT); compParams.topMargin=100; compParams.leftMargin=100; compParams.bottomMargin=0; compParams.rightMargin=0; //compParams.setMargins(100, 100, 0, 0); TextView tv = new TextView(this) tv.setLayoutParams(compParams); setContentView(tv); any idea please.. Thanks On Nov 17, 7:58 pm, Nithin nithin.war...@gmail.com wrote: anybody know this.. I googled alot, but cant get the exact thing.. Thanks On Nov 17, 6:45 pm, Nithin nithin.war...@gmail.com wrote: Hi, I created a textview and also MarginlayoutParams. Then i put setMargin for the MarginLayoutParams and inserted that to textview using tv.setLayoutparams(), but its not working. The code is, MarginLayoutParams compParams = new MarginLayoutParams (MarginLayoutParams.WRAP_CONTENT, MarginLayoutParams.WRAP_CONTENT); compParams.setMargins(100, 100, 0, 0); TextView tv = new TextView(this) tv.setLayoutParams(compParams); setContentView(tv); But the textView is still in top left corner, its not moving. Any suggestions please.. 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android.net.Proxy delivers wrong info
Hi I have the following setup. I have a 1.6 phone with an apn that requires a proxy, in addition I have a wifi connection that does not require a proxy (or maybe it requires a different one). My app uses android.net.Proxy.getHost(context) in order to find out the current proxy settings but even if I am on wifi, this call returns the proxy from the currenctly selected apn. So is this a bug or intentional? In any case how do I get the correct proxy (or the lack thereof) information? 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: WebView.loadUrl on a hidden view opens the android browser
that fixed the problem, thanks (sorry for the late reply) On Sep 21, 2:21 pm, Mark Murphy mmur...@commonsware.com wrote: I am trying to transition between 2 web views. One is in the foreground and the other already prepares another URL in the background. Everything works fine except for the fact that calling loadURL on the 2nd (invisible) view causes the native browser to open with the specified url, rather than my builtin browser. Any clues? Are you sure it's not just that your second URL is one that does a redirect? If you do not have a WebViewClient defined to otherwise control URL loading, loading a URL into a WebView, where the URL triggers a redirect, will cause the redirected URL to open in the built-in Browser. To avoid this, create a subclass of WebViewClient, implement shouldOverrideUrlLoading(), and attache an instance of that WebViewClient to the WebView. -- Mark Murphy (a Commons Guy)http://commonsware.com Android App Developer Books:http://commonsware.com/books.html -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Pls help required ! : setPreviewCallBack - Bitmap
hi all, How can I convert the camera preview to a bitmap without use Takepicture ? The goal is to analyze the colors present inside the current preview. When I try to create bitmap (50x50 pixels of the current view) the result view is green with black lines. Apparently the preview uses the YUV color and I have to translate it in RGB to create my bitmap. I'm using a method found decodeYUV on this group: http://groups.google.fr/group/android-developers/browse_thread/thread/c85e829ab209ceea Below my code and thanks by advance for your help public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { Camera.Parameters parameters = mCamera.getParameters(); parameters.setPictureFormat(PixelFormat.YCbCr_422_SP); parameters.setPreviewSize(50, 50); mCamera.setParameters(parameters); mCamera.startPreview(); } Camera.PreviewCallback mPreviewCallback = new Camera.PreviewCallback() { public void onPreviewFrame(byte[] data, Camera camera) { int[] pixels = new int[50 * 50]; decodeYUV(pixels, data, 50, 50); Bitmap bfInit = Bitmap.createBitmap(pixels, 50, 50, Bitmap.Config.ARGB_); if (bfInit != null) { imgfinal.setImageBitmap(bfInit); }} -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: android.net.Proxy delivers wrong info
Ok, I guess I found the answer myself in RequestQueue from the android sources /** * Because our IntentReceiver can run within a different thread, * synchronize setting the proxy */ private synchronized void setProxyConfig() { NetworkInfo info = mConnectivityManager.getActiveNetworkInfo (); if (info != null info.getType() == ConnectivityManager.TYPE_WIFI) { mProxyHost = null; } else { String host = Proxy.getHost(mContext); if (HttpLog.LOGV) HttpLog.v(RequestQueue.setProxyConfig + host); if (host == null) { mProxyHost = null; } else { mActivePool.disablePersistence(); mProxyHost = new HttpHost(host, Proxy.getPort (mContext), http); } } } My question is what would happen if the DHCP server for wifi would impose a proxy? Would it then be handled transparently? Am I missing something or wouldnt it be very nice if there was a public http api which would do all of this for me? AFAICS android.net.http.HttpConnection et al are not accessible via the public SDK. cheers - Rainer On Nov 18, 11:56 am, Rainer rbur...@gmail.com wrote: Hi I have the following setup. I have a 1.6 phone with an apn that requires a proxy, in addition I have a wifi connection that does not require a proxy (or maybe it requires a different one). My app uses android.net.Proxy.getHost(context) in order to find out the current proxy settings but even if I am on wifi, this call returns the proxy from the currenctly selected apn. So is this a bug or intentional? In any case how do I get the correct proxy (or the lack thereof) information? 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Custom Android SubMenu
Hi I would like to you how can I customize the defaut android subMenu list. My objective is if for each item of the submenu to have (Text, 2 imageViews ). Do I need to write and ListAdapter?? Thanks LP -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to Add Objects to Sqlite Database
There are a few ways to do this, but I'll explain the recommended way: First of all, a database is not object oriented, so you should forget about the concept of storing 'Mydata' in a single column, and in your case (as in most cases) even in a single table. For your case, you will need two tables (maybe more, I don't know what fields you have in your Location class) The first table (mydata) will have the following columns: _id (of type INTEGER PRIMARY KEY AUTOINCREMENT) name (of type STRING) data (of type INTEGER) location_id (of type INTEGER) (which is like a 'pointer' to the corresponding entry in the 'locations' table) The second table (locations) will have the following columns: _id (of type INTEGER PRIMARY KEY AUTOINCREMENT) (... more columns here as needed by your Location class ...). When you store a single instance of Mydata to the database, you basically add a new row to both of those tables. Why did we have to divide it into two tables? That's called 'database normalization', so Google it and read about it. From an object-oriented point of view, you also have a few options: (Just naming a few) 1. Each class will contain its own SQL handling code - I personally don't like this approach. 2. Each class will have a corresponding adapter class that will handle the SQL for a given class (This is just a partial solution) 3. Have a 'DatabaseHelper' class that will contain all SQL related code. (For your problem this is the best solution, in my opinion) 4. For larger scale applications, a combination of 2 and 3 might be better (some would say 1 and 3). Anyhow, take the time to research and gain some background knowledge and perspective before you dive into the code. Also, read about the SqliteOpenHelper class, and look at the Notepad sample in the SDK. Lior Gonnen UltimateFaves / UltimateFavesPRO developer http://ultimatefaves.wordpress.com/ On Nov 18, 8:06 am, naveenballa naveenball...@gmail.com wrote: i have a class like class Mydata{ String name; int data; Location[] locarray; } ListMydata = new ArrayListMydata( ); can anyone tell me how to add the object of Mydata class to Sqlite Database column Thanks in advance -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Accelerometer to earth coordinates
Hi! I've been trying to map the accelerometer values to earth coordinates using the rotation matrix. I would expected to have in the Z axis the Gravity value always, but the remapped coordinates when I move the phone shows the Gravity value in the X and in the Y coordinate also. Does anyone has an example of this kind of mapping? I have been trying with this code: You have in accels and mags the values of the accelerations and magnetic field. final int matrix_size = 16; float [ ] R2 = new float [ matrix_size ]; float [ ] outR = new float [ matrix_size ]; float [ ] I = new float [ matrix_size ]; float [ ] I2 = new float [ 4 ]; SensorManager.getRotationMatrix ( R2, I, accels, mags ); // SensorManager.remapCoordinateSystem ( R2, SensorManager.AXIS_X, // SensorManager.AXIS_Z, outR ); // outR = R2; // SensorManager.getOrientation ( outR, I2 ); // Log.d (TAG, inclineation values: + I2 [ 0 ] + + I2 [ 1 ] + + I2 [ 2 ]); float [ ] v = new float [ 4 ]; float [ ] v2 = new float [ 4 ]; v2 [ 0 ] = accels [ 0 ]; v2 [ 1 ] = accels [ 1 ]; v2 [ 2 ] = accels [ 2 ]; v2 [ 3 ] = 0.0f; Matrix.multiplyMV ( v, 0, outR, 0, v2, 0 ); Log.d (TAG, Rotated values: + v[0] + + v[1 ] + + v [2]); Any ideas of what am I doing wrong? Thank you in advance. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] USB host functionality in Android
Hi, I am studying on USB host functionality for Android. 1. Is the android framework support the same? 2. Is kernel label USB driver available to do the same for arm? What config needs to be enabled to do the same? Please send me the response . This is very urgent to me. Regards, Roy -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Wrong items getting selected in multiselect list
Hi, I am using a list view in which each list item displays two lines of text with a check option. I am using the following code to check the check box(usins my own image for check mark) Code to handle the item select: protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); CheckedTextView checkedtext = (CheckedTextView)v.findViewById (R.id.name); if(checkedtext.isChecked()) { checkedtext.setChecked(false); checkedtext.setCheckMarkDrawable (R.drawable.unselectedtickmark);; } else { checkedtext.setChecked(true); checkedtext.setCheckMarkDrawable (R.drawable.selectedtickmark); } v.refreshDrawableState(); return; } Row Layout: LinearLayout android:id=@+id/LinearLayout01 android:layout_width=fill_parent android:orientation=vertical android:layout_height=fill_parent android:padding=6dip xmlns:android=http://schemas.android.com/apk/res/android; CheckedTextView android:id=@+id/name android:layout_width=fill_parent android:layout_height=wrap_content android:clickable=true android:textSize=20px android:textStyle=bold android:checkMark=@drawable/unselectedtickmark android:checked=false/ TextView android:id=@+id/number android:layout_width=fill_parent android:layout_height=fill_parent android:layout_weight=1 android:gravity=left/ /LinearLayout If I select items for exmaple 1, I could see the 1st and the 9th item to get selected. Could any one pls let me know where I am making the mistake or missing? Thanks in advance for the reply. Regards, Sathya -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: seekbar / progressbar
I'm having the same error, and ever everything is equal to your example On Nov 16, 7:53 pm, Mario marioxxx...@gmail.com wrote: i want to change the color of progressbar as the cursor is moved, but setProgressDrawable() seems to work only within OnCreate() method, if i change the ProgressDrawable inside onProgressChanged method inspecting mSeekBar i can see that the value of Currentdrawable and ProgressDrawable is updated but the progressbar disappear and it reappears only when the progressdrawable changes back to the old value (the one set in the onCreate method) public void onProgressChanged(SeekBar seekBar, int progress,boolean fromTouch) { seekBar.setProgressDrawable(new_drawable); } Full code: public class SeekBar2 extends Activity implements SeekBar.OnSeekBarChangeListener { SeekBar mSeekBar; TextView mProgressText; TextView mTrackingText; static LayerDrawable mdrawable_green; static LayerDrawable mdrawable_blue; static LayerDrawable mdrawable_red; enum BarColor { RED, BLUE, GREEN; LayerDrawable getDrawable(){ switch(this){ case RED: return mdrawable_red; case BLUE: return mdrawable_blue; case GREEN: return mdrawable_green; default : return mdrawable_red; } } }; BarColor mcolor; public BarColor getColor() { return mcolor; } public void setColor(SeekBar seekbar,BarColor color) { this.mcolor = color; seekbar.setProgressDrawable(color.getDrawable()); } /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mSeekBar = (SeekBar) findViewById(R.id.seek); mdrawable_green = (LayerDrawable) this.getResources().getDrawable (R.drawable.pgreen); mdrawable_blue = (LayerDrawable)this.getResources().getDrawable (R.drawable.pblue); mdrawable_red = (LayerDrawable)this.getResources().getDrawable (R.drawable.pred); setColor(mSeekBar ,BarColor.RED); mSeekBar.setOnSeekBarChangeListener(this); mProgressText = (TextView) findViewById(R.id.progress); mTrackingText = (TextView) findViewById(R.id.tracking); } public void onProgressChanged(SeekBar seekBar, int progress, boolean fromTouch) { mProgressText.setText(progress + + seekbar_from_touch + = + fromTouch); BarColor color; if(progress 33) color = BarColor.RED; else if ((progress=33) (progress66)) color = BarColor.BLUE; else color = BarColor.GREEN; if(color!=mcolor) setColor(seekBar,color); } public void onStartTrackingTouch(SeekBar seekBar) { mTrackingText.setText(seekbar_tracking_on); } public void onStopTrackingTouch(SeekBar seekBar) { mTrackingText.setText(seekbar_tracking_off); } } main.xml: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent SeekBar android:id=@+id/seek android:layout_width=fill_parent android:layout_height=wrap_content android:max=100 android:progress=0 android:secondaryProgress=0 / TextView android:id=@+id/progress android:layout_width=fill_parent android:layout_height=wrap_content / TextView android:id=@+id/tracking android:layout_width=fill_parent android:layout_height=wrap_content / /LinearLayout pblue.xml(pred.xml and pgreen.xml are different only for the progress layer): ?xml version=1.0 encoding=utf-8? layer-list xmlns:android=http://schemas.android.com/apk/res/ android item android:id=@android:id/background shape corners android:radius=5dip / gradient android:startColor=#ff9d9e9d android:centerColor=#ff5a5d5a android:centerY=0.75 android:endColor=#ff747674 android:angle=270 / /shape /item
[android-developers] Need help developing an app
I'm looking to have an app developed for my business. How would I go about doing this? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Uri withAppendedPath not finding contacts
I'm trying to lockup what contact belongs to a specific number. I'm sending sms from one emulator instance to another (ie. 5554 to 5556 for example) and have entered contacts with those numbers. But when running the code below my cursor doesn't return anything. The filtering seems like it's not working, or I'm doing something wrong? private String getContactNumber(String number) { String[] projection = new String[] { Contacts.Phones.DISPLAY_NAME, Contacts.Phones.NUMBER}; Uri contactUri = Uri.withAppendedPath (Contacts.Phones.CONTENT_FILTER_URL, Uri.encode(number)); Cursor c = getContentResolver().query(contactUri, projection, null, null, null); if (c.moveToFirst()) { String name = c.getString(c.getColumnIndex (Contacts.Phones.DISPLAY_NAME)); Log.d(Name, name); return name; }else{ Log.d(GetContact, Not a contact); } return number; } Any tips, hints would be much appreciated! Thank you in advance Best Regards Sime -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to build a project in Android sources seperately?
thank you for your reply. but i still can't make it works. it shows me: make: Entering directory `/where/is/the/tree' make: *** No rule to make target `out/host/linux-x86/bin/acp', needed by `out/host/linux-x86/bin/minigzip'. Stop. and there are no 'libz.a' or 'libz.so' in out directory (but some other temp files) On Nov 17, 11:40 am, Julian Chu walking...@0xlab.org wrote: checkout the android source tree, build from scratch once you want to build it $cd /where/is/the/tree $source build/envsetup.sh $export TOP=`pwd` $cd external/zlib $mm -ju1ian On Tue, Nov 17, 2009 at 6:01 AM, 3pei 333...@gmail.com wrote: for example, when i use make external/zlib/android.mk it tells me 'Nothing to be done for external/zlib/android.mk' what should i do? -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julian Chu. a.k.a. WalkingIce -- 會走路的冰塊http://walkingice.twbbs.org 只放拖鞋的鞋櫃 -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Ruby for Android
Is there any way to develop applications on Ruby for Android? thank you -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Enabled and Disable APN
Hello boys, I'm a junior programmer of android. In my application I need to enable and disable apn when I click one button, but I don't know the way to resolve it. Can you help me? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml
$ export GDK_NATIVE_WINDOWS=true running that before opening the sdk worked perfect for me. I am on ubuntu 9.10 and I was noticing the buttons in the sdk acted as if they didnt respond to anything. I could then enable the force https http thing, and updating works fine. On Nov 1, 5:46 am, Jay pathomp...@gmail.com wrote: Try export GDK_NATIVE_WINDOWS=true before running android sdk manager. It fixes both the save button and the install button for me. For more details please seehttps://bugzilla.gnome.org/show_bug.cgi?id=598734 andhttps://bugs.eclipse.org/bugs/show_bug.cgi?id=290395 Jay -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] WAP browser for Android
Hi, I need your opinion- is WAP browser need to be implemented in Java for Android? I just starting wt100 project to develop simple WAP (WML) browser and now I would like make decision- continue work or not. You can see screenshot here: http://it.ysu.ru/index.php/mobileos/26-android/78-2009-11-17-06-33-04 If you have any idea or questions, please reply. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: cannot set proxy when download sdk
How about adding your solution / setting to the email thread. I am in the same situation, and can't setup android! (What a great f***ing way to start developers on android) On Nov 3, 9:34 pm, Michael Liao askxuef...@gmail.com wrote: i found the setting. On Wed, Nov 4, 2009 at 10:21 AM, Michael Liao askxuef...@gmail.com wrote: Hi i downloaded AndroidSDKTools, and when i use the tools todownload other packages, there is no way to setproxy. how can idownloadviaproxy? thanks! -- Best regards, Michael Liao -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Rotate TextView 90 degrees text out of view.
I just changed the textsize to 14 and now it works great! Also with size 10, only not with size 12. Bug? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SDK installation
I too was having trouble installing the SDK packages withen Eclipse SDC and AVG manager. Messages like failed to rename directory or file is locked, then the installer quit and tried the next package. I went to control panel, administration tools (services) and stopped the Norton Internet security and Protected Storage. Note the USB Driver package and the android SDK API 5 documentation installed with out the services shut off. Re-reran SDK- AVG installer from withen Eclipse again. SDK Platform packages installed this time. Hope this helps. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] The audacity !
Disconnect wrote: Report them to paypal :) Or start downloading. *a lot* ;-) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Working with the new ContactContracts API
Hi all, thanks for your posts, that got me started and going on the new sdk 2.0, but still facing some problems adding contacts. let's say i have an array of String has the contacts info String[] c = new String[] {First name,Last name,mobile number, home number, work number, fax number, email address, some notes} please help me adding these to a single contact, I read the code you guys posted and helped me to start, it adds the contact info but can't add the email or the notes also it seems it adds a new contact on every field ?? here is my code: code ContentValues values = new ContentValues(); values.put(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME, c[1]+ + c[0]); Uri rawContactUri = getContentResolver().insert( RawContacts.CONTENT_URI, values); long rawContactId = ContentUris.parseId(rawContactUri); values.clear(); values.put(ContactsContract.Data.RAW_CONTACT_ID, rawContactId); values.put(ContactsContract.Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE); values.put(StructuredName.DISPLAY_NAME, c[1] + + c[0]); getContentResolver().insert(ContactsContract.Data.CONTENT_URI, values); Uri mobileUri = null; Uri homeUri = null; Uri emailUri = null; Uri workUri = null; Uri faxUri = null; Uri noteUri = null; mobileUri = Uri.withAppendedPath(rawContactUri, ContactsContract.Contacts.Data.CONTENT_DIRECTORY); values.clear(); values.put(ContactsContract.CommonDataKinds.Phone.TYPE, ContactsContract.CommonDataKinds.Phone.TYPE_MOBILE); values.put(ContactsContract.CommonDataKinds.Phone.IS_SUPER_PRIMARY, 1); values.put(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE); values.put(ContactsContract.CommonDataKinds.Phone.NUMBER, c[2]); getContentResolver().insert(mobileUri, values); homeUri = Uri.withAppendedPath(rawContactUri, ContactsContract.Contacts.Data.CONTENT_DIRECTORY); values.clear(); values.put(ContactsContract.CommonDataKinds.Phone.TYPE, ContactsContract.CommonDataKinds.Phone.TYPE_HOME); values.put(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE); values.put(ContactsContract.CommonDataKinds.Phone.NUMBER, c[3]); getContentResolver().insert(homeUri, values); workUri = Uri.withAppendedPath(rawContactUri, ContactsContract.Contacts.Data.CONTENT_DIRECTORY); values.clear(); values.put(ContactsContract.CommonDataKinds.Phone.TYPE, ContactsContract.CommonDataKinds.Phone.TYPE_WORK); values.put(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE); values.put(ContactsContract.CommonDataKinds.Phone.NUMBER, c[5]); getContentResolver().insert(workUri, values); faxUri = Uri.withAppendedPath(rawContactUri, ContactsContract.Contacts.Data.CONTENT_DIRECTORY); values.clear(); values.put(ContactsContract.CommonDataKinds.Phone.TYPE, ContactsContract.CommonDataKinds.Phone.TYPE_FAX_HOME); values.put(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE); values.put(ContactsContract.CommonDataKinds.Phone.NUMBER, c[6]); getContentResolver().insert(faxUri, values); emailUri = Uri.withAppendedPath(rawContactUri, ContactsContract.Contacts.Data.CONTENT_DIRECTORY); values.clear(); values.put(ContactsContract.CommonDataKinds.Email.TYPE, ContactsContract.CommonDataKinds.Email.TYPE_OTHER); values.put(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.Email.CONTENT_ITEM_TYPE); values.put(ContactsContract.CommonDataKinds.Email.DISPLAY_NAME, c[4]); getContentResolver().insert(emailUri, values); noteUri = Uri.withAppendedPath(rawContactUri, ContactsContract.Contacts.Data.CONTENT_DIRECTORY); values.clear(); values.put(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.Note.CONTENT_ITEM_TYPE); values.put(ContactsContract.CommonDataKinds.Note.NOTE, c[7]); getContentResolver().insert(noteUri, values); /code Thank you for your help in advance. On Nov 2, 5:24 pm, Dmitri Plotnikov dplotni...@google.com wrote: You can always delegate contact creation to the Contacts app using the ContactsContract.Intents.UI.Insert intent with extras. This will show the edit UI. If you want to explicitly create the contact by yourself, that's now a bit tricky because Android 2.0 support multiple accounts. First of all, you will need to figure out which account you want to create the contact in. Get a list of all available accounts from AccountManager: AccountManager am = AccountManager.get(getContext()); Account[] accounts = am.getAccounts(); Also, get a list of all sync adapters and find the ones that support contacts: SyncAdapterType[] syncs = ContentResolver.getContentService().getSyncAdapterTypes(); for (SyncAdapterType sync : syncs) { if (ContactsContract.AUTHORITY.equals(sync.authority) sync.supportsUploading()) { contactAccountTypes.add(sync.accountType); } } Now you have a list of all accounts and a list of account types that support contacts. So here's your account list: for (Account acct:
[android-developers] Re: SoundPool problem
YES YES YES. This is particularly disappointing to me (that mp3 doesn't work with SoundPool on 2.0). I have an entry in ADC2 that relies heavily on mp3/SoundPool that works fine with all phones EXCEPT the recently produced Droid which runs 2.0. I'm sure it will kill my application's chances in the final round given that mp3 support is nil in Android 2.0. Major bummer. I'm tempted to whine and complain UNFAIR but I'm above that and instead I will shut my mouth and suck up the inevitable loss of cash prize due to this change in the Android platform. BTW, I changed my audio samples to ogg and all is fine. But still, the timing of the release of Droid vis a vis the ADC2 really blows. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Suspending and resuming threads in Android
Hello, We are developing an application that needs to suspend and resume threads like a debugger (meaning in a non-safe way like Object.wait() and Object.notify()). In the Java SDK the methods Thread.suspend() and Thread.resume() are deprecated but we can still use them. Also there is the Java debugger API which allows one to do that if you connect to the VM as a debugger. Is there some API for android we can use? Is there a published Java Debugger API we can apply for Android? Thanks, Eldad -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Garbage Collector
Hi developers, I'm developing an application and for the performance tests I would like to turn of the GC. Is it possible?? I made some research and I found the System.gc() call to give a hint to the GC. The problem is that it do not command the GC only gives a hint. Is this method synchronous or asynchronous. Regards Joel -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Application not responding after resuming with an unlock
My application shows ANR dialogue when it resumes from an unlock . this happens only when I keep the application idle for some time till the phone gets locked by itself. ANR is shown when the phone is unlocked by pressing menu button. The issue is not reproducible in all cases ,it occurs with a probability of 25% its not occurring when i pause the application manually by pressing home. Thanks , Sreekumar SH -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to increase the resolution
how to increase the resoltion in android... what all changes need to do in the source code to get 1280X720p resolution... -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] CameraSurfaceView and how surfaceCreated() gets called
I have some questions regarding code below for camera preview applicaiton. Can someone please help me out? 1. How does surfaceCreated get called? From SDK, it is called immediately after the surface is first created, but I still don't know who creates this surface? 2. Why do we need to set it as SURFACE_TYPE_PUSH_BUFFERS? 3. How does this surface relate to the preview buffers? Are the preview buffers allocated by the Camera Service during startPreview? private class CameraSurfaceView extends SurfaceView implements SurfaceHolder.Callback { private SurfaceHolder mHolder; private Camera camera = null; public CameraSurfaceView(Context context) { super(context); mHolder = getHolder(); mHolder.addCallback(this); mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); } public void surfaceCreated(SurfaceHolder holder) { camera = Camera.open(); try { camera.setPreviewDisplay(mHolder); } catch (Exception e) { Log.e(Camera, Failed to set camera preview display, e); } } } Thank you very much for your help. an -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to Add Objects to Sqlite Database
See details in the docs under SDK_DIR/docs/guide/topics/data/data- storage.html and I think you'll find the answer You should implement SQLiteDatabase.CursorFactory interface, and create an SQLiteDatabase instance by calling the static method SQLiteDatabase.openOrCreateDatabase. Details info of SQLiteDatabase.CursorFactory is in SDK_DIR/docs/ reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html On Nov 18, 2:06 pm, naveenballa naveenball...@gmail.com wrote: i have a class like class Mydata{ String name; int data; Location[] locarray; } ListMydata = new ArrayListMydata( ); can anyone tell me how to add the object of Mydata class to Sqlite Database column Thanks in advance -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Eclipse question
I have never developed an app and have very little knowledge of Java. I recently downloaded the tools necessary to create an application for Android 1.5. I used Eclipse to attempt to make a simple app and inserted @string/hello into the onClick property and then the property disappeared and I've tried everything from shutting down Eclipse to starting the project over and nothing has worked. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Webservice on Android
Found the solution. It was the proxy. The link below shows how to do this, but as a reference I'm also including the code I used from that link. http://www.mail-archive.com/android-developers@googlegroups.com/msg65644.html public void onCreate(Bundle savedInstanceState) { try { super.onCreate(savedInstanceState); // Set Proxy final String proxyHost = android.net.Proxy.getDefaultHost(); final int proxyPort = android.net.Proxy.getDefaultPort(); ProxySelector.setDefault(new ProxySelector() { @Override public void connectFailed(URI uri, SocketAddress sa, IOException ioe) { } @Override public ListProxy select(URI uri) { ArrayListProxy l = new ArrayListProxy(); SocketAddress sa = new InetSocketAddress(proxyHost, proxyPort); l.add(new Proxy(Proxy.Type.HTTP, sa)); return l; } }); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } On Nov 14, 8:07 am, Luis-Jaime ljbot...@gmail.com wrote: I also have the same issue described by Mark. I can call mywebserviceusing KSOAP2 when using my WiFi network, but when I try to use it through my phone's internet plan, it times out. I've been trying to find a solution for days. I've tried simple HttpGet and still get timeouts... I'm suspecting it could beproxyor APN, but I still have no luck.. BTW, I can reach the WS ftest page and use it from the browser with no problem I'd appreciate anyone's help on this On Nov 7, 8:10 am, rubeN_vl rvanluch...@hotmail.com wrote: I'm aware of that On 7 nov, 15:07, Mark Murphy mmur...@commonsware.com wrote: rubeN_vl wrote: i want to run awebserviceon aAndroidphone. Why? It's not going to be reachable, except on a local WiFi network, and even then only if somebody knows the IP address of the phone. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print!- Hide quoted text - - Show quoted text - -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can recognizer use a file for audio input?
I have been planning a test of that very action. I doubt the recognition quality will be very good but I will post my results. Certainly, performing the recognition on a prerecorded file would be better but it doesn't appear possible within the confines of the SDK. Hopefully I am just missing something though. On Nov 13, 8:03 pm, Mark Abbott abbott.m...@gmail.com wrote: Is there a way to use an audio file as input to speechrecognition? If not, is this feature expected in the foreseeable future? A separate question (and this is going to sound ridiculous, but it might actually be okay for a joke app I'm thinking about): Would it be possible to play audio out of an Android handset, while at the same time having a recognizer listen to it via the microphone? (Guess I could just try it.) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: abortAnimation on ListView
I had a similar problem in touch mode. In my case, individual OnClickListeners for each single convertView caused the problem. They were created by a custom adapter. E.g. I had code like this: public class MyAdapter extends ArrayAdapterMyData { ... public View getView(int position, View convertView, ViewGroup parent) { ... convertView.setOnClickListener(itemData.onClickListenerRef); } } Removing this one line solved the problem for me - the list then stops to scroll whenever a touch-down event occurs. Instead I was using myList.setOnItemClickListener(...) with a general OnClickListener, because this did not affect the scrolling behavior of the list. Might be not your case though, just posting this for you to check. @Romain: Could you post the link to the issue that got addressed with your fix from last week? Or what was the issue that we should keep in mind when using previous framework versions? -- Philipp On Nov 16, 2:46 pm, Loki117 thomas.sheppar...@gmail.com wrote: Damn still no joy I haveListView FocusableInTouchMode, Focusable Children Focusable but not in touch mode. itemsCanFocus set to true and still the same result I can see the children highlight for the touch its just as if the event is not bubbled up to theListViewtostopthe scroll I may just have to wait for this fix hu? On Nov 16, 5:32 pm, Romain Guy romain...@google.com wrote: ListViewalso has to be focusable in touch mode :) On Mon, Nov 16, 2009 at 11:24 PM, Loki117 thomas.sheppar...@gmail.com wrote: Oh Also apparently I lied theListViewis focusable already (just tried to switch it to be so) but not focusable in touch mode could this be the cause? On Nov 16, 5:06 pm, Romain Guy romain...@google.com wrote: It doesn't HAVE to be programmatically it just happens that at the moment when the user flings the list and then places there finger on the list it doesn'tstopit keepscrollingbit highlights the selected child in the list. Ok that's not something you should have to handle. It happens to be a known issue I fixed last week, so it will be made public in whatever next release of Android. list view has not been set to focusable (it doesnt work even if it does have a focusable / focusable touch) TheListViewshould be focusable, it is very wrong to remove the focusability fromListView. all children are focusable That's your problem. This is what causes the aforementioned bug. When you do this, you need to tellListViewthat is children are focusable. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android1.6 source code
can anyone please do share the android1.6(donut) kernel source code -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Set size of Rating Bar with code
Hi all, I understand that the size of the Rating Bar can be set in xml using the style attribute (style=?android:attr/ratingBarStyleSmall) however, I need to set this style with code. The RatingBar class does not seem to have a setStyle() method to set this. Can anyone help? Thanks, Dennis -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Error to create an AVD - Ignoring add-on
The problem is you do not have any target. Goto sdk folder and run SDK manager and install targets. It will be installed in sdk/platforms/ folder. Once you done that, come back and create an AVD. On Nov 16, 11:40 pm, hotspring sunkeun...@gmail.com wrote: I had the same error message for an avd creation command and got the following messages with empty list when I issued list targets command. What should i check for sdk? add-ons directory has three subfolders google_apis-3-r03, subfolders google_apis-4-r01, and subfolders google_apis-5-r01 and platforms folder and temp folders are empty. By the way, I am using Windows XP. C:\Tool\Android\sdk\toolsandroid list targets Error: Ignoring add-on 'google_apis-3-r03': Unable to find base platform with AP I level '3' Error: Ignoring add-on 'google_apis-4-r01': Unable to find base platform with AP I level '4' Error: Ignoring add-on 'google_apis-5_r01': Unable to find base platform with AP I level '5' Available Android targets: On Nov 15, 11:41 pm, Asif k asifk1...@gmail.com wrote: Same command I had copied and pasted in my command prompt and one avd is created successfully. So please check the sdk that u had downloaded. Check with android list target in command prompt that what target_id : 2. Thanks, Asif On Nov 15, 7:20 pm, Onnlist onnl...@gmail.com wrote: Hello All, I am new to Android development. I have installed Eclipse 3.5, SDK and ADT plugin successfully. But I am receiving followingerrorto create an AVD - C:\android-sdk-windows\toolsandroid create avd --target 2 --name my_avd Error:Ignoringadd-on'google_apis-3-r03':Unabletofindbase platformwith APIlevel'3' Error:Ignoringadd-on'google_apis-4-r01':Unabletofindbase platformwith APIlevel'4' Error:Ignoringadd-on'google_apis-5_r01':Unabletofindbase platformwith APIlevel'5' Error: Target id is not valid. Use 'android.bat list targets' to get the target ids. Please advise if i am missing any step - not sure why i am getting aboveerror Thank you so much in advance. Jagdish -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Developing Android Developers in the US
Hello All, I am attempting to reach out to Android Developers who might be able to answer a fundamental question... what is the best way to identify Android developers in the US? My company is thinking of training developers who have experience in Java or Linux onsite at our facility in Dallas, TX for 3-6months in Android development. We have clients in the telecom industry who are in desperate need of individuals with expertise in Android development but we haven't had much luck finding developers in the US. Do you think training is a viable option? If no, then how to identify individuals with existing skills? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Droid fonts: Georgian alphabet Mkhedruli
Hallo everyone, are there any plans about including the Georgian alphabet in the near future? There is a plethora of websites in Georgian and thanks to Unicode they are displayed correctly out of the box on almost every computer system nowadays. Thus I was surprised to learn that the corresponding glyphs are missing completely even in the big beast that is DroidSansFallback. This is still true for Android 2.0. I replaced the DroidSansFallback.ttf on my own device, but is there an easier way to have these glyphs available to the android browser for the technically less inclined? Especially without having to root the device? Thanks in advance, Sebastian -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] I would like to get opinions on the app I need to write. Is my approach correct?
I’m a new android developer. I would like to get opinions on the app I need to write. Is my approach correct? Is there an established standard of doing this type of thing, etc. Is there anything I need to watch out for? Thanks in advance Simple pickup and delivery system: Program starts Query an XML web service, get a list of pickups (probably no more then 20) Populate a list view User clicks list item Display additional information, allow entry of some additional data. User selects a SUBMIT button, send information to host via an XML web service. Host returns confirmation, remove this item from the list. Return to the list view. Other requirements Periodically query the XML web service for any new pickups. If any new entries are found alert the user with an audible tone. Need to send the web service the phones serial number or some other unique Id so I know who it is. Pretty simple (I guess?) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] repo sync 100% and throw a GitError
i meet a problem like this: while sync with repo using repo sync command 100% download has gone with out any problem after that it gives the below error File /home/local/CORPUSERS/40001123/mydroid/.repo/repo/subcmds/ sync.py, line 238, in Execute project.Sync_LocalHalf(syncbuf) File /home/local/CORPUSERS/40001123/mydroid/.repo/repo/ project.py,line 666, in Sync_LocalHalf lost = self._revlist(not_rev (revid), HEAD) File /home/local/CORPUSERS/40001123/mydroid/.repo/repo/ project.py,line 1146, in _revlist return self.work_git.rev_list(*a, **kw) File /home/local/CORPUSERS/40001123/mydroid/.repo/repo/project.py, line 1291, in rev_list .stderr)) error.GitError: platform/bionic rev-list ('^a90528ad3420c571987f2124955646dae88007b6', 'HEAD', --'): fatal: Not a git repository i paste texts above from another post which have same situation. but i can't find a anwser about 'what, why, how'. can someone give out some more detail? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: ring app crash when using telephony manager to listen for calls
Interesting that we saw same logs on cyanogen mod issue: http://code.google.com/p/cyanogenmod/issues/detail?id=647#c92 On Oct 27, 2:34 pm, siliconeagle rrmu...@gmail.com wrote: I have a media player which i want to mute when the user gets a call. I was using the TelephonyManager to listen for calls creating the listener on create and removing it on destroy in my service. like so: public void onCreate() { ... TelephonyManager tm = (TelephonyManager)getSystemService (Context.TELEPHONY_SERVICE); mcsl = new MediaServicePhoneStateListener(); tm.listen(mcsl, PhoneStateListener.LISTEN_CALL_STATE); ... } @Override public void onDestroy() { super.onDestroy(); ... TelephonyManager tm = (TelephonyManager)getSystemService (Context.TELEPHONY_SERVICE); tm.listen(mcsl, PhoneStateListener.LISTEN_NONE); ... } but when the phone rings i periodically get a crash in the ring app - looks like when its trying to get the photo: I/ActivityManager( 79): Low Memory: No more background processes. W/dalvikvm(17512): threadid=31: thread exiting with uncaught exception (group=0x4001da28) E/AndroidRuntime(17512): Uncaught handler: thread ContactsAsyncWorker exiting due to uncaught exception W/BinderNative(17512): Uncaught exception from death notification W/BinderNative(17512): java.lang.NullPointerException W/BinderNative(17512): at android.app.ActivityThread.removeDeadProvider(ActivityThread.java: 4045) W/BinderNative(17512): at android.app.ActivityThread $ProviderRecord.binderDied(ActivityThread.java:1158) W/BinderNative(17512): at android.os.BinderProxy.sendDeathNotice (Binder.java:345) W/BinderNative(17512): at dalvik.system.NativeStart.run(Native Method) E/AndroidRuntime(17512): java.lang.NullPointerException E/AndroidRuntime(17512): at android.provider.Contacts $People.openContactPhotoInputStream(Contacts.java:485) E/AndroidRuntime(17512): at android.pim.ContactsAsyncHelper $WorkerHandler.handleMessage(ContactsAsyncHelper.java:186) E/AndroidRuntime(17512): at android.os.Handler.dispatchMessage (Handler.java:99) E/AndroidRuntime(17512): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime(17512): at android.os.HandlerThread.run (HandlerThread.java:60) I/Process ( 79): Sending signal. PID: 17512 SIG: 3 I/dalvikvm(17512): threadid=7: reacting to signal 3 when i remove the listener the crash doesn't happen, looks like a bug to me - but does anyone know of a workaround? regards, robhttp://www.my-pod.org -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ssl.SSLException Not trusted server certificate httpclient
Hi All, I am new to android. I have been trying to use httpclient to post data on https (secure). I have searched all forums of android but I could not find any solution that works with httpclient on https. I have seen some solutions using HttpsURLConnection. and SSLContext. I would like to go with httpclient not URLConnection as I require to manage cookies and al. I am looking for your exert advice on above matter. Thank you very much to all in advance. I have set uses-permission android:name=android.permission.INTERNET / tag in AndroidManifest.xml . ---here is the log I am getting E/MessageSender( 822): Caught exception E/MessageSender( 822): javax.net.ssl.SSLException: Not trusted server certificate E/MessageSender( 822): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake (OpenSSLSocketImpl.java:363) E/MessageSender( 822): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl $SSLInputStream.init(OpenSSLSocketImpl.java :505) E/MessageSender( 822): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.getInputStream (OpenSSLSocketImpl.java:446) E/MessageSender( 822): at org.apache.http.impl.io.SocketInputBuffer.init (SocketInputBuffer.java:93) E/MessageSender( 822): at org.apache.http.impl.SocketHttpClientConnection.createSessionInputBuffer (SocketHttpClientConnection. java:83) E/MessageSender( 822): at org.apache.http.impl.conn.DefaultClientConnection.createSessionInputBuffer (DefaultClientConnection.j ava:170) E/MessageSender( 822): at org.apache.http.impl.SocketHttpClientConnection.bind (SocketHttpClientConnection.java:106) E/MessageSender( 822): at org.apache.http.impl.conn.DefaultClientConnection.openCompleted (DefaultClientConnection.java:129) E/MessageSender( 822): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection (DefaultClientConnectionOper ator.java:136) E/MessageSender( 822): at org.apache.http.impl.conn.AbstractPoolEntry.open (AbstractPoolEntry.java:164) --End log--- I found solution of defining TrustManager in context but a constructor SSLSocketFactory(SSLcontext); available in httpclient version 4.0 but not available on android . As per some post I have also created DummySSLSocketFactory and TrustManager. but I don't know how to use them with httpclient as Some Portion of code SSLSocketFactory sslSocketFactory = SSLSocketFactory.getSocketFactory (); sslSocketFactory.setHostnameVerifier (SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER); supportedSchemes.register(new Scheme(https, sslSocketFactory, 443)); SSLContext context = null; try { context = SSLContext.getInstance(TLS); context.init( null, new TrustManager[] {new _FakeX509TrustManager()}, null); } catch (Exception e) { trace.log(Level.SEVERE, e.getMessage(), e); //throw new HttpClientError(e.toString()); // TODO throw a more appropriate exception throw new RuntimeException(e.toString()); } I have also tried one suggested by bala on http://www.android-portal.com/2007/12/20/secure-server-socket-with-tlsssl-on-android-fails/ but that one is not for httpclient. Once again thanks to all in advance. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] building to support both contacts 1.6 and 2.0 apis
As has been discussed on this list, the 2.0 Contacts API is a significant overhaul. And that the 1.6 API has been deprecated. Usually this means use of the 1.6 API is discouraged but maintained for at least a little while. I am not that this is the case, however. The app I'm working on was built and tested for 1.6 and is now failing in the contacts code when built for 2.0. Does anyone know how Google intended us to target/support both 1.6 and 2.0 platforms in the same build? It seems we have to query for the api level (or at least, reflect for ContactsContract) and execute api level specific code. Yes/ No? 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Tricorder app code download
hi all where/how can i download the code for tricorder app? code.google.com/p/ tricorder is forbidden from wifi as well as 3g connection. thanks tan -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Enable and Disable APN
Hello Boy, I'm a junior programmer of android. In my application I need to enable and disable APN when I click a button, but I don't have idea hw to do. Someone can help me? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Unable to debug Hello World Example
Hello, I tried to install and run the Hello World example (http:// developer.android.com/guide/tutorials/hello-world.html), and for the most part all is good. Unfortunately when I attempted the run the debugger per http://developer.android.com/guide/tutorials/hello-world.html#debugging I got the following from the Hello, Android app on the emulator: Waiting for Debugger: Application Hello, Android (process com.example.HelloAndroid) is waiting for the debugger to attach. I'm unsure if this is a problem with Eclipse or the Android setup, but I thought I'd see if anyone knows what might cause this problem and what the solution might be.. thanks -simon -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Using MacOS X, Eclipse for Android development
I created a step by step instruction for people who are interested to program Android in MacOS X with Eclipse in 64 bits configuration. http://androiddevblog.blogspot.com/2009_11_01_archive.html -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Tut (SDK 1.5) Get google account of user
Very interesting discussion! Thanks everybody for the precious info. Did anyone manage to get BlockingHelper to work? (or, to put it differently: is there any way to do this without the need for an activity that receives the result?) On Oct 12, 7:27 pm, kostmo kos...@gmail.com wrote: It seems I was the victim of an edge case. I had not done a factory reset of my ADP1 since Android 1.1. It works now! :) Karl On Oct 12, 1:13 am, kostmo kos...@gmail.com wrote: It seems tantalizingly close, but I still can't get the GoogleLoginService method to work with Google App Engine (GAE). I'll start with a review of the method that currently works for me. Let's say that myapp is my GAE application name and authstring is the 203-character string I get from ClientLogin. After using the user/pass prompt and traditional ClientLogin method, I can examine the cookie retrieved via curl: curl -c cookies.txt http://myapp.appspot.com/_ah/login?auth=authstring This command dumps HTML to the terminal and saves the cookie to cookies.txt. The HTML sates that the status code is 302, but in actuality the HTTP status code is 204. Anyway, these are characteristics of the cookie exchange working *properly*. The URL can be used repeatedly to get the cookie (although I don't know how long it stays valid). Now let me describe how I attempt to accomplish the same with GoogleLoginServiceHelper. I am using the method described originally by Sujay where he iterates through the methods in the GoogleLoginServiceHelper class. I look for the the getCredentials method that has the correct name and argument types and call it as follows: m.invoke( null, // This extra argument pertains to the invoke method. this, 12345, // onActivityResult code null, true, // value of the GoogleLoginServiceConstants.REQUIRE_GOOGLE constant ah, // This is the service parameter that supposedly works with GAE false); In my Manifest file, I have uses-permission android:name=com.google.android.googleapps.permission.GOOGLE_AUTH/ uses-permission in addition to uses-permission android:name=com.google.android.googleapps.permission.GOOGLE_AUTH.ah/ uses-permission . The intent passed to onActivityResult has 3 string fields: callerExtras, authtoken (the value of the GoogleLoginServiceConstants.AUTHTOKEN_KEY constant), and authAccount. I encounter the same response as before, however: when substituting the authtoken value for authstring in the above curl command, the result is 500 Server error. I am determined to get this to work! Is there possibly some configuration I'm missing on the App Engine side? Karl -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] [Quit application correctly] How to execute code before exiting application ?
I would like to know how to execute code before exiting application. My application is composed of several activities. When the user starts the application (from the launcher menu or from a notification in the status bar), he goes in an InitActivity where I process some initializations. From user experience, application always restarts. One of these initializations is to init a network manager and start a thread that periodically sends a network request to notify a server that application is active. I need to process some end operations, like stopping this thread when user quits application, for example by pressing the HOME key or BACK key when he's in the root activity. However, when the user press the HOME key, application is still running in background. Here are my questions : Q1 : is it possible to execute code when exiting application (I see the onTerminate() method of the class Application but it seems not to be always called) ? Q2 : Is it possible to force application exit (activity method finish () only destroy the current activity, not the application) ? Q3 : Is it possible to handle HOME key press (onKeyDown() is not called when this button is pushed) ? Thanks for your help. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to Add new sensor support in Android sensor framework?
Hi Guys, Can some one please point me towards any documentation/resources/ threads that can explain how a new sensor support can be added in android sensor framework? I'll be grateful for your help in this regard. Kind Regards Leo -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: App Not showing up on Verizon DROID Phones
Well...I wanted to download your app and my HTC Eris doesn't see it when I search for it or follow the direct link from your page. Android folks: any solution to this? This seems to be as much of an Android problem as it is a problem with the specific phones/devices. On Nov 13, 5:20 am, Armond Avanes armond...@yahoo.com wrote: Scott Others, I have a similar request for my app. I've restricted it not to run on small screen devices but the rest (including DROID) must be okay. Would you please check my application as well? And its name is aCar. It's an application to track your vehicles' maintenance, gas mileage and such. Thanks a million, Armond -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] unsubscribe
Thanks and Regards Kiran R Chowkewar Mob:- 9975122322 -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: [Android 2.0] Contacts FAQ?
I would like to add one more question to this issue: 15) What is the best way to write the code so in case the API Level is below 5, some of the contacts actions can still be done correctly. As far as I've checked when publishing an application on the market there is no way to publish two apks, for different API levels. As noted in other threads, the only Phone I know of currently running Android 2.0 is the Motorola Droid. My guess is that every developer would like to be able to support other/older phones as well. On Nov 17, 8:38 pm, Rachel Blackman ceruleanspa...@gmail.com wrote: On Nov 17, 2009, at 10:21 AM, Jeff Sharkey wrote: [ ... snip ... ] Thank you! I'll try to write up an updated FAQ this evening, with some short examples written for various queries, and post a draft. :) -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get my name account ie: sa...@gmail.com
Its simple, how can i obtain by code the user google id?? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Help Required: Invoke Email Client from another android application
Hi, Have a application from which i need to invoke the email client provided as the base apps with android 1.5 -Sandeep -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] XMPP Services
I went through the Android introduction videos and in them an engineer from Google spoke of an open XMPP/gtalk service provided by Android, that developers could use to push messages out from a server to Android devices. I googled the forums and dug through the SDK samples, but could not find any code for these XMPP services. Also my search results only returned entries logged in the Jan 2008 time frame an earlier (I found this to be somewhat odd). Anyway, there was mention of a SMACK API that handles xmpp messaging, but I'm assuming that android has their own libraries for this. Would someone please point me in the right direction please? I'd like to know which library I'm suppose to use for xmpp/gtalk and see some sample code on this topic. Thanks so much, Kaman -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: DalvikVM could not find field after ProGuard Obfuscation
I was testing against 1.5. I removed the - overloadaggressively and it worked. Thanks for the help. On Nov 6, 11:52 pm, fadden fad...@android.com wrote: On Nov 4, 8:37 am, GDroid baron...@gmail.com wrote: Currently I've managed to build the correct build.xml file and run ProGuard 4.4. However, every time I install my apk I get multiple errors from the dalvikvm such as Found field 'e' but sig is 'J' not 'B' or .. sig is 'Lc' not '[c' (Which has something to do with arrays and enums). If these are static fields, I'm guessing you've run afoul of this: http://code.google.com/p/android/issues/detail?id=2422 In short, the VM spec allows you to have multiple fields with the same name but different types, but Dalvik was rejecting them. The fix should be in 2.0. What version of the Android software are you testing against? ProGuard is very good about letting you configure specific things. Looking through the online manual, it looks like turning off - overloadaggressively may avoid this behavior. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Stop an SMS from being sent from default SMS client.
Hi All, i have read a few posts about somehow intercepting the outgoing SMS. after some googling i was able to intercept the outgoing SMS by getting the outbox. Now the problem is that when the SMS comes to outbox i try to delete it at the same time, the API shows that the row was deleted from outbox but it is sent to the desired phone number as well :S. I was thinking of changing the SMS center number programatically and i didnt get a clue. more over if there is a way the outbound sms can be stopped before being sent then plz guide me that way. regards Aftab Alam -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] gdata-api
Hi, I am trying to integrate my calendar application with google calendar by making use of the apis provided by google. Android is not supporting those apis. I am able to build the application as a java application but not as an android application. So I request to suggest me a way in doing this. I tried to build the source code on android platform. But it compiled giving an error failed to convert to dalvik format. I hope my problem may get solved if anyone suggest me a way to create a jar library which is supported by android. Any suggestions are appreciated. Thanks Rgds Sunny. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android sms api
I know that the SMS content provider is not part of the public api (atleast not documented), but if I understand correctly its still possible to use much of the sms features as long as you know how to use the api(?). E.g its pretty straight forward to insert an sms in your inbox: ContentValues values = new ContentValues(); values.put(address, +467014921911); contentResolver.insert(Uri.parse(content://sms/inbox), values); Unfortunately this does not trigger the standard new-sms-in-your- inbox notification. Is it possible to trigger this manually? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Using third party libraries
Hi In my project I am using org.apache.commons library and my application runs well in the emulator, but when I published as a signed application in another emulator or g1 device it does not working especially the apache library classes,but user interface and databases which are related to android are working fine.. and how can we get the log information in emulator, or g1 device after installing application... 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Multitouch support in Android 2.0
On Nov 16, 9:30 pm, Dianne Hackborn hack...@android.com wrote: On Sun, Nov 15, 2009 at 7:21 PM, niko20 nikolatesl...@yahoo.com wrote: for example on the G1/Sapphire class screen there are interactions between the two points reported, and if you play with Pointer Location on Droid you will see that pressing a second finger can cause noticeable jitter in the first finger. -- Can you explain this in a more detail? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to build a project in Android sources seperately?
seems i need build the host tool acp , but it has a dependence of libhost, and libhost has a dependence of acp, tooo. how can i resolve this On Nov 17, 11:40 am, Julian Chu walking...@0xlab.org wrote: checkout the android source tree, build from scratch once you want to build it $cd /where/is/the/tree $source build/envsetup.sh $export TOP=`pwd` $cd external/zlib $mm -ju1ian On Tue, Nov 17, 2009 at 6:01 AM, 3pei 333...@gmail.com wrote: for example, when i use make external/zlib/android.mk it tells me 'Nothing to be done for external/zlib/android.mk' what should i do? -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Julian Chu. a.k.a. WalkingIce -- 會走路的冰塊http://walkingice.twbbs.org 只放拖鞋的鞋櫃 -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Stop an SMS from being sent from default SMS client.
Iffi wrote: Hi All, i have read a few posts about somehow intercepting the outgoing SMS. after some googling i was able to intercept the outgoing SMS by getting the outbox. Now the problem is that when the SMS comes to outbox i try to delete it at the same time, the API shows that the row was deleted from outbox but it is sent to the desired phone number as well :S. I was thinking of changing the SMS center number programatically and i didnt get a clue. more over if there is a way the outbound sms can be stopped before being sent then plz guide me that way. I sincerely hope that it is impossible without firmware modifications. I certainly no of know way to achieve what you are seeking. And what little you have achieved is outside of the public SDK and therefore is likely to break in the future and on OEM-customized devices. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.6 Programming Books: http://commonsware.com/books -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Ruby for Android
TCBlues wrote: Is there any way to develop applications on Ruby for Android? There has been some preliminary work to get JRuby running on Android. It is a long way from being able to create full applications, though. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.6 Programming Books: http://commonsware.com/books -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: abortAnimation on ListView
This was an internal issue so there's no link, sorry. On Wed, Nov 18, 2009 at 12:46 AM, Philipp fischer.phil...@gmail.com wrote: I had a similar problem in touch mode. In my case, individual OnClickListeners for each single convertView caused the problem. They were created by a custom adapter. E.g. I had code like this: public class MyAdapter extends ArrayAdapterMyData { ... public View getView(int position, View convertView, ViewGroup parent) { ... convertView.setOnClickListener(itemData.onClickListenerRef); } } Removing this one line solved the problem for me - the list then stops to scroll whenever a touch-down event occurs. Instead I was using myList.setOnItemClickListener(...) with a general OnClickListener, because this did not affect the scrolling behavior of the list. Might be not your case though, just posting this for you to check. @Romain: Could you post the link to the issue that got addressed with your fix from last week? Or what was the issue that we should keep in mind when using previous framework versions? -- Philipp On Nov 16, 2:46 pm, Loki117 thomas.sheppar...@gmail.com wrote: Damn still no joy I haveListView FocusableInTouchMode, Focusable Children Focusable but not in touch mode. itemsCanFocus set to true and still the same result I can see the children highlight for the touch its just as if the event is not bubbled up to theListViewtostopthe scroll I may just have to wait for this fix hu? On Nov 16, 5:32 pm, Romain Guy romain...@google.com wrote: ListViewalso has to be focusable in touch mode :) On Mon, Nov 16, 2009 at 11:24 PM, Loki117 thomas.sheppar...@gmail.com wrote: Oh Also apparently I lied theListViewis focusable already (just tried to switch it to be so) but not focusable in touch mode could this be the cause? On Nov 16, 5:06 pm, Romain Guy romain...@google.com wrote: It doesn't HAVE to be programmatically it just happens that at the moment when the user flings the list and then places there finger on the list it doesn'tstopit keepscrollingbit highlights the selected child in the list. Ok that's not something you should have to handle. It happens to be a known issue I fixed last week, so it will be made public in whatever next release of Android. list view has not been set to focusable (it doesnt work even if it does have a focusable / focusable touch) TheListViewshould be focusable, it is very wrong to remove the focusability fromListView. all children are focusable That's your problem. This is what causes the aforementioned bug. When you do this, you need to tellListViewthat is children are focusable. -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Ruby for Android
TCBlues wrote: Is there any way to develop applications on Ruby for Android? I was wondering the same for Python, especially given that Python is one of the main languages used by Google. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Map Application works in 1.5 but not working in 2.0
RANJAN BANIK wrote: Hi All, I have a code which works beautifully in the Android 1.5 platform. Now I have upgrade the platform to the Android 2.0 , but it is not working . hi, has this been confirmed? 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 this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: XMPP Services
It's been removed in the latest versions of the SDK and the issue to put it back declined: http://code.google.com/p/android/issues/detail?id=201 It was really great while it was in. I wrote a multiplayer game using it for the first Android Developer Challenge. A player could choose to challenge a contact and my game would add a notification to the challenged party's phone letting them accept or decline. It was easy to use as a developer. No service needed to be implemented for the above functionality for example. It was also easy to use as a user. They didn't have to type in account info that they'd already entered into the phone. An app with the GTALK_SERVICE permission could just get right to work without bothering them. I think nowadays you have to include your own JAR for the Smack API in your app. Last one I saw for Android was around 711KB for functionality that used to be built in, which put me off a bit. On Nov 18, 7:35 am, KamanL kaman@gmail.com wrote: I went through the Android introduction videos and in them an engineer from Google spoke of an open XMPP/gtalk service provided by Android, that developers could use to push messages out from a server to Android devices. I googled the forums and dug through the SDK samples, but could not find any code for these XMPP services. Also my search results only returned entries logged in the Jan 2008 time frame an earlier (I found this to be somewhat odd). Anyway, there was mention of a SMACK API that handles xmpp messaging, but I'm assuming that android has their own libraries for this. Would someone please point me in the right direction please? I'd like to know which library I'm suppose to use for xmpp/gtalk and see some sample code on this topic. Thanks so much, Kaman -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: SoundPool problem
I may be wrong but I thought I read that the ADC2 was restricted and will not run on 2.0. On Mon, Nov 16, 2009 at 10:28 PM, Doug d...@hyper-aware.com wrote: YES YES YES. This is particularly disappointing to me (that mp3 doesn't work with SoundPool on 2.0). I have an entry in ADC2 that relies heavily on mp3/SoundPool that works fine with all phones EXCEPT the recently produced Droid which runs 2.0. I'm sure it will kill my application's chances in the final round given that mp3 support is nil in Android 2.0. Major bummer. I'm tempted to whine and complain UNFAIR but I'm above that and instead I will shut my mouth and suck up the inevitable loss of cash prize due to this change in the Android platform. BTW, I changed my audio samples to ogg and all is fine. But still, the timing of the release of Droid vis a vis the ADC2 really blows. -- 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Writing code is one of few things that teaches me I don't know everything. http://www.fuligin.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Get info from mp3 file
Aiite...thnx... On Nov 18, 2:59 am, PJ pjbar...@gmail.com wrote: Environment.getExternalStorageDirectory() will give you a Java File object to the directory of your sdcard:http://developer.android.com/reference/android/os/Environment.html Once you can access your mp3 file, extracting mp3 tag info is not an Android-specific issue, so you're probably better off searching for the solution to this elsewhere. Have fun! By the way, in addition to mp3 files, you might also look into 3gp files and other files, since those are common on mobile devices:http://developer.android.com/guide/appendix/media-formats.html -- PJ On Nov 16, 8:27 am, aBx abh...@gmail.com wrote: Hi, I am writin an app for playin music...i want to extract info like album-art,artist,album etc. from the mp3 files i have on my sd card...could anyone tell me how to do this?? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Draw Bitmap on Overlay
I think I'm getting there, but it seems like my projection isn't working. This is my onCreate-method in my MapActivity: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.map); _mapView = (MapView)findViewById(R.id.mapView); _mapView.setBuiltInZoomControls(true); _mapController = _mapView.getController(); double lat = 35.908138*1E6; double lng = 14.500975*1E6; _gp = new GeoPoint((int)lat,(int)lng); Point p = _mapView.getProjection().toPixels(_gp, null); // Add overlay _moodOverlay = new MoodOverlay(); ListOverlay overlays = _mapView.getOverlays(); overlays.add(_moodOverlay); _mapController.animateTo(_gp); _mapController.setZoom(17); System.out.println(GeoPoint: + _gp.getLatitudeE6() + x + _gp.getLongitudeE6()); System.out.println(Center of screen: + p.x + x + p.y); } The problem is that the toPixels is totally wrong. It print's the following: GeoPoint: 35908138x14500975 Center of screen: -344668x21990 What is wrong here? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How Handle Android Default Messaging Application According To Our Requirement
Hi Everyone, Currently I am doing RD on an idea for example I have an application abc which send sms through my own way . I want to do work like this: When user send sms from Android Default Messaging Application My app Intercept that sms and stop it to send and take user decision to send sms via operator or my app. (As you have seen many apps those intercepts outgoing calls and abortBroadcast(); and take user decision to call via GSM or via their apps.) I want to do the same work for messaging client. My findings are its not possible. IS IT POSSIBLE?? if yes then how ? any suggessions ? tutorials ? Hopes you have got my idea. Any Android Framework Engineer please reply on this. Is it possible ? Best Regards, Gulfam Hassan -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem running Android jUnit tests on Android project with multiple included auxiliary projects
You should create jars for your libraries and include them in project's Properties - Java Build Path - Libraries. Hope this helps. -- Have you read my blog ? http://dtmilano.blogspot.com android junit tests ui linux cult thin clients On Nov 18, 6:30 am, emitya dkolega...@gmail.com wrote: Hi, I have a question on the project set-up - this may be a bug in SDK. I cannot run android junit tests for classes sitting in main android project that implement interfaces that reside in other included projects. Depending on SDK version I get different errors: from Test run failed: on 1.5 and 1.6 and spurious process death to a more polite NoClassDefFoundError on SDK 2.0. This happens only on instantiation of classes that reside in the Android project and implement interfaces residing outside that android project. There is no problem instantiating classes that do not fall into this category (i.e. android only or library only classes). Android project by itself works fine with these classes - it is just the test set-up doesn't and project inclusion/classpath seems to be ok. Test project includes all projects that main project includes. NoClassDefFoundError makes little sense here given that the classloader can see and instantiate classes sitting right next to the ones that do not work. Did anyone else run into this or found a way to set-up android based tests in a multi-project set-up? Below is more detailed set-up and test explanation: 1) Library project: FooLib public interface IFoo { ...} public class FooImpl implements IFoo { ... } 2) Main project: AndroidFoo public class FooAndroidImpl implements IFoo { ...} public class Bar { ... } 3) Test Project: AndroidFooTest public class FooTester extends AndroidTestCase { // breaks void test1AndroidImplWithInterfaceInLibraryProject() { Object o = new FooAndroidImpl(); // Gets NoClassDefFoundError on SDK 2.0 and obscure Test run failed on 1.6 and 1.5 } // works void test2AndroidOnly() { Object o = new Bar(); // works fine - no exceptions even though the class sits in the same package as the one that was throwing exceptions in case 1 } // works void test3LibraryProjectOnly() { Object o = new FooImpl(); // works fine - no exceptions even though the class sits in the same package as interface of the test1 } } Thanks in advance. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Migrating Google Accounts from 1.x to 2.0
My apps use GoogleLoginServiceHelper and as far as I know they work on the Motorola Droid. One user reported an unrelated bug with the Droid to me but did not mention any other issues. On Nov 9, 2:25 am, JP joachim.pfeif...@gmail.com wrote: Introduced in 2.0, the SDK offers AccountManager to access accounts. For all who jumped the gun using the method described in this thread:http://groups.google.com/group/android-developers/browse_thread/threa... The challenge is how to migrate to 2.0 while not decoupling 1.x. Needless to say that calling GoogleLoginServiceHelper in 2.0 crashes and sinks the app. So I've tried a few things but basically could not navigate around the VerifyError that is thrown as soon as an app using AccountManager (or any of other new classes) is launched on 1.x (where these classes do not exist). There's of course always the option to create a new app that encapsulates the functionality of the existing app and only handles access to accounts differently. But this is not necessarily the most elegant solution. Has anybody looked into this and come up with any ideas? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is status bar an activity?
Hi all, Notifications are displayed in status bar.Any thing , which appears to user in android is an activity. Thus can i assume status bar as an activity . Because user can see it. In that case there are always two activities in running mode ,one is home or any user activity and another is status bar activity. If that is the case we should have two activity stacks in android system one for status bar and another for home activity or any user activity. In my observation whenever a notification is received my running activity is not disturbed.And even it is not found in activity stack. Finally what i want to ask is can assume that there are two activity stacks in andriod system. Please correct me if i am wrong. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Is status bar an activity?
pink 444 wrote: Notifications are displayed in status bar. Yes. Any thing , which appears to user in android is an activity. Not everything that the user sees is an activity. The status bar and its contents are not an activity. Toasts are not activities. App widgets are not themselves an activity, but rather are displayed by other activities (e.g., home screen). Thus can i assume status bar as an activity . Because user can see it. No. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.2 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Eclipse question
I created a Blog for using Eclipse for Android programming, though it's on MacOS X platform but it shall be the same for Windows. I will have successive posting working through small projects as part of my own learning experience. It might be helpful if you just getting started. http://androiddevblog.blogspot.com/ On Nov 17, 4:31 pm, Tom B ewgsoccerb...@gmail.com wrote: I have never developed an app and have very little knowledge of Java. I recently downloaded the tools necessary to create an application for Android 1.5. I used Eclipse to attempt to make a simple app and inserted @string/hello into the onClick property and then the property disappeared and I've tried everything from shutting down Eclipse to starting the project over and nothing has worked. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Draw Bitmap on Overlay
Hi, u try like this.. Point p = new Point(); _mapView.getProjection().toPixels(_gp, p); Then, in canvas.drawBitmap(), try like this... canvas.drawBitmap(bmp, p.x, p.y, null); Thanks Nithin On Nov 18, 6:50 pm, Søren sorni...@fooz.dk wrote: I think I'm getting there, but it seems like my projection isn't working. This is my onCreate-method in my MapActivity: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.map); _mapView = (MapView)findViewById(R.id.mapView); _mapView.setBuiltInZoomControls(true); _mapController = _mapView.getController(); double lat = 35.908138*1E6; double lng = 14.500975*1E6; _gp = new GeoPoint((int)lat,(int)lng); Point p = _mapView.getProjection().toPixels(_gp, null); // Add overlay _moodOverlay = new MoodOverlay(); ListOverlay overlays = _mapView.getOverlays(); overlays.add(_moodOverlay); _mapController.animateTo(_gp); _mapController.setZoom(17); System.out.println(GeoPoint: + _gp.getLatitudeE6() + x + _gp.getLongitudeE6()); System.out.println(Center of screen: + p.x + x + p.y); } The problem is that the toPixels is totally wrong. It print's the following: GeoPoint: 35908138x14500975 Center of screen: -344668x21990 What is wrong here? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Sub Acivity fly-in direction?
Hi Guys, Little question Ive been having difficulty finding an answer to. My current app flies ina sub activity when you flick-up. problem is, it flies in horizontally from the right. I want it to fly in vertically from the bottom to match the flick direction. I'm sure this must be an xml property somewhere, but I can't find it. Does someone have a pointer as to how to set this? Thanks JK -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: android1.6 source code
http://android.git.kernel.org/ On Nov 17, 11:26 pm, shri shrireddy...@gmail.com wrote: can anyone please do share the android1.6(donut) kernel source code -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android on Beagleboard
I am looking to develop Android on a beagleboard to provide a TTS solution for a disability app. Having tried the Embinux offering it turns out to be a phone based app expecting a touch screen. I have seen the Android TTS demo and would like to see how it would perform on a BB. Any suggestions and help would be appreciated on getting a suitable BB build. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] image to text
Hi, I would like to convert an image to text. ie take a picture of a receipt. Could someone point me in the direction of a tutorial or sample code. Thanks Carol -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] /data/misc/wifi/wpa_supplicant.conf access from application
Hello, I'm trying to build a little application in order to help my company's user to connected to the internal wifi network. I know about the android application sandbox and I was wondering if is possible to read/write (by using some permissions) on the/data/misc/ wifi/wpa_supplicant.conf file. And if it is not directly, is it possible with root access ? Regards, Francesco. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Sub Acivity fly-in direction?
CyberQat wrote: Little question Ive been having difficulty finding an answer to. My current app flies ina sub activity when you flick-up. problem is, it flies in horizontally from the right. I want it to fly in vertically from the bottom to match the flick direction. I'm sure this must be an xml property somewhere, but I can't find it. Actually, it is not. Users can determine if activity animations are shown -- after that, it is under operating system control and behaves the same for all activities. Moreover, the animation changes in 2.0 to be a ScaleAnimation (e.g., zoom out from center on open). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.2 Available! -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Growing pains for Android developers??
Thanks for your comment Dianne. On Nov 17, 3:59 am, Dianne Hackborn hack...@android.com wrote: Sorry no I don't. On Mon, Nov 16, 2009 at 7:37 AM, Robert Woodruff woodman...@gmail.comwrote: Dianne, Nice to have response from someone inside Google. Do you know when is 2.0 image available for ADP? On Mon, Nov 16, 2009 at 2:54 AM, Dianne Hackborn hack...@android.comwrote: On Sat, Nov 14, 2009 at 9:14 PM, Kieran kieran.flem...@gmail.com wrote: Android 2 SDK released: 27th Oct Droid released: 6th Nov So that's 9 days (with a weekend) to test our apps at the new resolution, make any necessary fixes, then deploy to the Market. I don't think that's enough, and ultimately it's the Droid users that suffer. Android 1.6 was released earlier with multiple screen support being one of the big new features. This is not a new feature in 2.0, and in fact there will be devices shipping on 1.6 with different screens (I believe the Tattoo QVGA device is an example). We also started beating the drum as soon as 1.6 was available for people to update their apps, telling developers that there would soon be devices appearing with different screens. For example: http://android-developers.blogspot.com/2009/10/support-for-additional... Not that I think it is okay to have so little time between the SDK and devices shipping, but this particular case of supporting different screen sizes is a bad example of the issue. The new contacts API would be better if you want to point at something. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.comandroid-developers%2Bunsubs cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] image to text
Carol Bolger wrote: Hi, I would like to convert an image to text. ie take a picture of a receipt. Could someone point me in the direction of a tutorial or sample code. You will need to purchase an OCR library, or find something that is free and runs in reasonable speed on Android. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, $35/Year -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Draw Bitmap on Overlay
But the toPixels is still wrong. What I'm doing is, I'm drawing lots of circles on a canvas, then I take the bitmap and recolours the circles as one blob. I then want to draw that bitmap to my overlay canvas. I can easily draw, but when I transform my GeoPoint to screenPoints I get the values stated in my second post: GeoPoint: 35908138x14500975 Center of screen: -344668x21990 And that's just wrong. On 18 Nov., 15:48, Nithin nithin.war...@gmail.com wrote: Hi, u try like this.. Point p = new Point(); _mapView.getProjection().toPixels(_gp, p); Then, in canvas.drawBitmap(), try like this... canvas.drawBitmap(bmp, p.x, p.y, null); Thanks Nithin On Nov 18, 6:50 pm, Søren sorni...@fooz.dk wrote: I think I'm getting there, but it seems like my projection isn't working. This is my onCreate-method in my MapActivity: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.map); _mapView = (MapView)findViewById(R.id.mapView); _mapView.setBuiltInZoomControls(true); _mapController = _mapView.getController(); double lat = 35.908138*1E6; double lng = 14.500975*1E6; _gp = new GeoPoint((int)lat,(int)lng); Point p = _mapView.getProjection().toPixels(_gp, null); // Add overlay _moodOverlay = new MoodOverlay(); ListOverlay overlays = _mapView.getOverlays(); overlays.add(_moodOverlay); _mapController.animateTo(_gp); _mapController.setZoom(17); System.out.println(GeoPoint: + _gp.getLatitudeE6() + x + _gp.getLongitudeE6()); System.out.println(Center of screen: + p.x + x + p.y); } The problem is that the toPixels is totally wrong. It print's the following: GeoPoint: 35908138x14500975 Center of screen: -344668x21990 What is wrong here? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Map Application works in 1.5 but not working in 2.0
Is the Maps application on the device you are trying to run this on? On Nov 16, 6:48 am, RANJAN BANIK ranjanfeelthema...@gmail.com wrote: Hi All, I have a code which works beautifully in the Android 1.5 platform. Now I have upgrade the platform to the Android 2.0 , but it is not working . The error is - no activity to handle the intent The code snippet I use is - Java: String currentLocation = geo:41.87,87.62 ; startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(currentLocation + ?q=adidas ))); I have used this manifest file - XML: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.ranjan android:versionCode=1 android:versionName=1.4.2.1 application android:icon=@drawable/icon android:label=@string/app_name uses-library android:name=com.google.android.maps / activity android:name=.Splash android:label=@string/app_name android:theme=@style/Theme.Translucent intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application uses-sdk android:minSdkVersion=3 / uses-permission android:name=android.permission.INTERNET/ uses-permission uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION/uses- permission uses-permission android:name=android.permission.ACCESS_FINE_LOCATION/uses- permission /manifest Please, help me out. Thanks in advance Ranjan -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en