[android-developers] Implementing SDCARD multipled in android
Hi folks I has been tried to understand how mounting process is working in FROYO2.2 Nevertheless I has been confused to understand well Is there a book called How work in VOLD and Friends from bottom to top Because the engineer who are working other side of the company implemented multiple SDCARDs in Android Working so so As of in charing of the issue, There is issue file borkine when shutdown So i have to see whole processing of VOLD from bottom to top Would you recommand how do i solve ? Now I see Vold, Java code Thanks kevin.park -- 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 fetch size of history of default browser,Google Maps, Android Market
I want to show the history size of all below item in KB- Default browser, Google Maps, Android Market However I have seen that BrowserActivity is showing cache size info. But How can I access it. 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
Re: [android-developers] shoeboxed? wtf?
I'm thinking this was because of some specific email thread that a user had that email.. so every time the list emailed him, we all got the error .. heh To make it worse, now i keep getting an email from msg.l...@gmail.com with the text A B .. what the hell is wrong with this list? hehe On Monday, December 17, 2012 6:38:44 PM UTC+2, Fred Niggle wrote: +1, now i filter out emails from that domain :) On 17 December 2012 16:32, TreKing treki...@gmail.com javascript:wrote: On Mon, Dec 17, 2012 at 2:59 AM, Piren gpi...@gmail.com javascript:wrote: Am i the only one that keeps getting an email from some site named Shoeboxed every time i post to this group? Nope... - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Sent from an Ubuntu Desktop. Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- 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] How to sync development projects?
Only now i've understood what you're trying to accomplish... i've missed the part where you actually commit to the local repo. i understood it as if you're just working on your local files and then let the Shared folder sync them... not that you actually perform a Commit locally and then sync the .svn files :) In that case, you should really move to git as Nikolay suggested :) Its basically doing exactly what you want... On Monday, December 17, 2012 6:25:29 PM UTC+2, TreKing wrote: On Mon, Dec 17, 2012 at 2:33 AM, Piren gpi...@gmail.com javascript:wrote: It feels like we're not on the same page as to how SVN works... Apparently not, lol the files you Checkout are not stored in the cloud, you dont need any connection to the repository when you're doing doing any actions against the code. when you do a Checkout, you make a local copy of that specific version of the code on your computer (which makes them totally offline). you can do whatever you want without any connection to the SVN repository. Right ... once you want to update your code (what you now call sync it. either sync up to the repository or sync down from it) you just connect to the network and Update/Commit (what you do now with Sync Folder). That's the key point here - I don't want to wait until I've connected to my network to check in my code. Using SVN or any revision control would be pretty pointless if I did a weeks worth of changes between reconnecting to the repo and committing changes. I like to do small, frequent changes and commits as I go along. I sometimes also switch between different branches (new feature branch vs main vs bug fix branches, for example). So how I would commit to the repo or switch to a different branch within it *while disconnected from my home network* without a local offline copy of my entire repo on my laptop? On Mon, Dec 17, 2012 at 2:37 AM, Piren gpi...@gmail.com javascript:wrote: When you Checkout a project from SVN, you basically set up a synced offline folder on your computer with that specific version of the files (usually the latest unless chosen otherwise)... I know what an SVN Checkout does. It's the checking back in without access to the real repo that is the problem that I'm trying address. Do you follow me now? On Mon, Dec 17, 2012 at 2:46 AM, Nikolay Elenkov nikolay...@gmail.comjavascript: wrote: Of course you an simply use git and you can commit as much as you like even when offline, underground, etc. Then push to your repo when you get the chance. That is pretty much what I'm trying to achieve, though I haven't used GIT. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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 launch my own GUI to handle incoming/outgoing call (instead of Default PHONE app)
Why doesn't any developer give me solution..? On Friday, 7 December 2012 18:02:20 UTC+5:30, Gaurav Wable wrote: Thank you very much for your response. I am giving a brief idea about my problem: In my android application I used *TelephonyManager* to listen * PhoneState(Idle/Ringing/Offhook) *and identified whether any incoming/outgoing call is initiated. If initiated, I used *intent* to * startActivity **MyCallActivity *to handle call. Now *MyCallActivity *has been launched but it does not appear on screen because android system's default PHONE app appears on screen. I want to know that how can we fix that every time* MyCallActivity *comes on foreground (on screen) in place of default PHONE app. Android App Mobile Accessibility does the same. How can i do it? On Fri, Dec 7, 2012 at 5:52 PM, Anil Kumar anilkumar@gmail.comwrote: ya you can handle...first of all u need to save the state(ringing,offhook,idle) of the incoming and outgoing calls. so by using these states u can able to show ur gui -- 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 -- Gaurav Wable -- 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] internal app can not import com.android.internal.xx?
I added an app in packages/apps in android build system and my app use some internal api.But when I use mm or mmm to make the app,android build system shows error:package com.android.internal.policy.impl does not exist etc.But I saw Phone app also uses internal api like com.android.internal.xx and it builds with no errors.I want to know whether there are something i missed and how can i use internal api in internal apps.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 will combine download and then upload in a loop?
I make an Android application for download a variable from my webserver (use AsyncTask) and then send it to bluetooth.I make it with loop (handler,postdelayed).I make a receive function from bluetooth and display the insert new data temperature.I know how i upload i make a class and work in another apk.How combine download and upload together?I test it but no work...Need close inputstream,outputstream first? public void run() { DownloadWebPageTask task = new DownloadWebPageTask(); task.execute(new String[] { strValue }); beginListenForData();//Receive data from bluetooth // upload();//My problem is there if(work){ handler.postDelayed(this, 3);}//Refresh page time } }; public void upload(){ //t = Integer.parseInt(data); SimpleHttpPut.main(urlt,t);//Upload data class } public class SimpleHttpPut { public static void main(String urlt,int t) { HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost(urlt); try { ListNameValuePair nameValuePairs = new ArrayListNameValuePair(1); nameValuePairs.add(new BasicNameValuePair(temp,String.valueOf(t))); post.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse response = client.execute(post); BufferedReader rd = newBufferedReader(new InputStreamReader(response.getEntity().getContent())); String line = ; while ((line = rd.readLine()) != null) { System.out.println(line); } -- 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] Mobile network idle sockets disconnected
Robert, The DNS server isn't disconnected, and resolves correctly mobile-gtalk.l.google.com TTL=222 A 173.194.78.188 However, the APN does not allow the connection. We might consider opening up the address (or addresses), but in that case I'll need more information on what comes through there and on what can the user do with them open. To answer your questions, yes the production environment will be very isolated. Most of the times (90% of the cases) the device will be for exclusive usage. There's a very low data transfer plan, particularly with roaming, and that's basically why I'm not polling or using C2M or GCM. We use a very small binary protocol with a very small footprint. The development headache is bigger true, but it's part of the requirements. The battery life doesn't trouble me very much as the devices will be connected to the power supply most of the times. Cheers On 17 December 2012 19:59, Robert Greenwalt rgreenw...@google.com wrote: It seems we switched our traffic stats strategy recently (JB) and now UDP packets are getting included when they arguably shouldn't be. If your DNS server is disconnected from the internet and can't resolve the mtalk.google.com queries you'll end up with outgoing queries and no responses. This will cause the resets you see every 6 minutes. If the DNS is resolving, then we probably have some other packet slipping out with no return. A couple questions: Is your production environment going to be this isloated? Gtalk is what's providing the GCM channel that many 3rd party apps need. Why aren't you using GCM? It provides a push notification system for apps, and by sharing it you get better battery life and have less development headache. I'm trying to contact the gcm/gtalk team to find out if there's a non-root way to turn off the service, but I'm not hopeful. R On Mon, Dec 17, 2012 at 10:13 AM, Goncalo Oliveira gonc...@minkan.netwrote: Can't get QTAGUID STATS INFO on samsung. On the other device also fails retrieving that info. I'm going to try to get another device. Meanwhile, I published the whole bugreport output, maybe you can see something that I can't... https://www.dropbox.com/sh/18o32mndge2rrpd/vAeETMVnh6 Cheers On 17 December 2012 17:46, Goncalo Oliveira gonc...@minkan.net wrote: Robert, Kind of a wild guess but... GTalkService? logcat 12-17 17:14:47.212 473 1312 E *GTalkService: connectionClosed: no XMPPConnection - That's strange*! 12-17 17:14:47.220 213 223 E AlarmManagerService: android_server_AlarmManagerService_set to type=2, 4627.14900 12-17 17:14:47.665 292 292 D STATUSBAR-NetworkController: onServiceStateChanged state=0 12-17 17:14:47.673 292 292 W SignalStrength: getGsmLevel=3 12-17 17:14:47.673 292 292 W SignalStrength: getLevel=3 (SignalStrength: 99 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 gsm|lte 3) 12-17 17:14:47.673 292 292 D StatusBar.NetworkController: getDataServiceState : NoSuchMethodException 12-17 17:14:47.673 213 988 D STATUSBAR-NotificationService: cancelNotification - pkg:com.android.systemui, id:273, tag:null 12-17 17:14:47.689 3183 3183 D StatusChecker: onReceive : android.intent.action.SERVICE_STATE 12-17 17:14:47.689 3183 3183 D StatusChecker: Service state changed : 0 12-17 17:14:47.689 292 292 D STATUSBAR-NetworkController: onDataConnectionStateChanged: state=2 type=3 radio 12-17 17:15:49.618 371 371 D GSM : [GsmDCT] updateDataStallInfo: OUT sent=12 mSentSinceLastRecv=29 12-17 17:15:49.626 371 371 D GSM : [GsmDCT] onDataStallAlarm: tag=24748 do recovery action=1 12-17 17:15:49.626 371 371 D GSM : [GsmDCT] handleMessage msg={ what=270354 when=-3ms } 12-17 17:15:49.626 371 371 D GSM : [GsmDCT] overall state is CONNECTED 12-17 17:15:49.626 371 371 D GSM : [GsmDCT] doRecovery() cleanup all connections SERVICE com.google.android.gsf/.gtalkservice.service.GTalkService 12-17 17:15:08.158 473 473 D GTalkService: [ReconnectMgr] setInternalNetworkState: type=0, state=CONNECTED 12-17 17:15:08.158 473 473 I GTalkService/c: [AndroidEndpoint@1093684528] connect: acct=100, state=CONNECTING 12-17 17:15:08.168 473 1312 D GTalkService/c: [AndroidEndpoint@1093684528] doConnectDelegate: making main connection 12-17 17:15:08.168 473 1312 D Smack: [SSLXMPPConnection@1094231880] create socket connection(mtalk.google.com, 5228) 12-17 17:15:52.215 473 1312 D GTalkService: [AndroidEndpoint@1093684528] doConnect: caught XMPPError connecting to mtalk.google.com:5228.: (502) -- caused by: java.net.ConnectException: failed to connect to mtalk.google.com/173.194.78.188 (port 5228): connect failed: ETIMEDOUT (Connection timed out) 12-17 17:15:52.215 473 1312 D GTalkService/c: [AndroidEndpoint@1093684528] handleDoConnectError for 100, error=2, xmppError=null 12-17 17:15:52.215 473 1312 D GTalkService/c:
[android-developers] Re: std::map linker error ndk r8c with APP_STL := gnustl_static
Does anybody have an idea of what I'm doing wrong? Il giorno martedì 11 dicembre 2012 11:00:31 UTC+1, rb ha scritto: Hi, I have some problem linking the STL in my Native application. Linking fails with both map::operator[] and map::insert while succeeds with other map functions. My Application.mk is : APP_STL := gnustl_static APP_CPPFLAGS := -fexceptions -frtti APP_CPPFLAGS += -g3 APP_CPPFLAGS += -DDEBUG APP_ABI := armeabi-v7a APP_PLATFORM:=android-14 NDK_TOOLCHAIN_VERSION:=4.6 The native code contains two folder level. I created for each internal folder an Android.mk file to compile and generate a static library. I'm using std::map in the deepest folder. Android.mk looks like: TEMP_PATH_REG := $(call my-dir) LOCAL_PATH := $(TEMP_PATH_REG) include $(call all-subdir-makefiles) LOCAL_PATH := $(TEMP_PATH_REG) include $(CLEAR_VARS) LOCAL_MODULE:= registration LOCAL_C_INCLUDES := $(LOCAL_PATH)/../glm/ LOCAL_SRC_FILES:= registration_factory.cpp \ inertial.cpp LOCAL_LDLIBS := -llog -landroid -lEGL LOCAL_STATIC_LIBRARIES := android_native_app_glue include $(BUILD_STATIC_LIBRARY) $(call import-module,android/native_app_glue) When I build the project i get the following errors: ~/.android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi-v7a/libregistration.a(registration_factory.o): in function std::_Rb_treeint, std::pairint const, xmar::IRegistration*, std::_Select1ststd::pairint const, xmar::IRegistration* , std::lessint, std::allocatorstd::pairint const, xmar::IRegistration* ::_M_insert_(std::_Rb_tree_node_base const*, std::_Rb_tree_node_base const*, std::pairint const, xmar::IRegistration* const):~/.android-ndk-r8c/sources/cxx-stl/gnu-libstdc++/4.6/include/bits/stl_tree.h:1013: error: undefined reference to 'std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base)' StaticLibrary : libandroid_native_app_glue.a rm -f obj/local/armeabi-v7a/libandroid_native_app_glue.a ~/.android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi-v7a/libregistration.a(registration_factory.o): in function std::_Rb_tree_const_iteratorstd::pairint const, xmar::IRegistration* ::operator--():~/.android-ndk-r8c/sources/cxx-stl/gnu-libstdc++/4.6/include/bits/stl_tree.h:284: error: undefined reference to 'std::_Rb_tree_decrement(std::_Rb_tree_node_base const*)' ~/.android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-ar crs ./obj/local/armeabi-v7a/libandroid_native_app_glue.a ./obj/local/armeabi-v7a/objs-debug/android_native_app_glue/android_native_app_glue.o ~/.android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi-v7a/libregistration.a(registration_factory.o): in function std::_Rb_tree_const_iteratorstd::pairint const, xmar::IRegistration* ::operator++():~/.android-ndk-r8c/sources/cxx-stl/gnu-libstdc++/4.6/include/bits/stl_tree.h:269: error: undefined reference to 'std::_Rb_tree_increment(std::_Rb_tree_node_base const*)' Prebuilt : libgnustl_static.a = NDK/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/ ~/.android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi-v7a/libregistration.a(registration_factory.o): in function std::_Rb_tree_iteratorstd::pairint const, xmar::IRegistration* ::operator--():~/.android-ndk-r8c/sources/cxx-stl/gnu-libstdc++/4.6/include/bits/stl_tree.h:203: error: undefined reference to 'std::_Rb_tree_decrement(std::_Rb_tree_node_base*)' What i'm doig wrong? Thanks 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] opengl - way to import model with predefined transitions
My client says that there's an animation constructed with some 3D design tool like Blender or 3D Max . What is the best scenario for importing that kind of animation. So far I've used [this tool][1] but it's only suitable for model importing. Thanks. [1]: http://heikobehrens.net/2009/08/27/obj2opengl/ -- 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 launch my own GUI to handle incoming/outgoing call (instead of Default PHONE app)
Use the Source, Luke https://android.googlesource.com/platform/packages/apps/Phone/+/refs/heads/master/ Although it use a lot of private APIs, it will give you some ideas. -- Douglas Drumond http://drumond19.com On Tue, Dec 18, 2012 at 7:20 AM, Gaurav Wable gswa...@gmail.com wrote: Why doesn't any developer give me solution..? On Friday, 7 December 2012 18:02:20 UTC+5:30, Gaurav Wable wrote: Thank you very much for your response. I am giving a brief idea about my problem: In my android application I used *TelephonyManager* to listen * PhoneState(Idle/Ringing/Offhook) *and identified whether any incoming/outgoing call is initiated. If initiated, I used *intent* to * startActivity **MyCallActivity *to handle call. Now *MyCallActivity *has been launched but it does not appear on screen because android system's default PHONE app appears on screen. I want to know that how can we fix that every time* MyCallActivity *comes on foreground (on screen) in place of default PHONE app. Android App Mobile Accessibility does the same. How can i do it? On Fri, Dec 7, 2012 at 5:52 PM, Anil Kumar anilkumar@gmail.comwrote: ya you can handle...first of all u need to save the state(ringing,offhook,idle) of the incoming and outgoing calls. so by using these states u can able to show ur gui -- 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 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=enhttp://groups.google.com/group/android-developers?hl=en -- Gaurav Wable -- 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 -- 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] Speaker Problem
- I have the permission MODIFY_AUDIO_SETTINGS declared - I use the following code to make a call with speaker ON AudioManager am = null; am = (AudioManager)getSystemService(Context.AUDIO_SERVICE); am.setMode(AudioManager.MODE_IN_CALL); am.setSpeakerphoneOn(true); The problem is: This works fine in version 4.0 and lower. Version 4.1 and higher doesn't works, but I don't receive errors. Just doesn't work. Does anyone can help me with ideas? Best Regards, André -- 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] Dynamically selecting Map API version
Am I right to assume that using multiple APKs is not an option either as there is no OpenGL enabled filter for that? On Monday, December 17, 2012 5:11:46 PM UTC-5, Mark Murphy (a Commons Guy) wrote: On Mon, Dec 17, 2012 at 5:05 PM, lbendlin lu...@bendlin.us javascript: wrote: Thanks Mark. Are they really serious that you need to have a physical device to develop against Map API v2? Really? Yes, unless you wish to pirate some software. BTW, I literally just tried doing the backwards-compatibility stuff. In terms of OpenGL ES 2.0 support, we're screwed. Even if the device *has* support, if we have: uses-feature android:glEsVersion=0x0002 android:required=false/ then we blow up when trying to load a SupportMapFragment: 12-17 22:08:18.933: E/AndroidRuntime(7079): Caused by: java.lang.RuntimeException: Google Maps Android API only supports OpenGL ES 2.0 andabove. Please add uses-feature android:glEsVersion=0x0002 android:required=true / into AndroidManifest.xml A bug/feature request was filed by somebody already: http://code.google.com/p/gmaps-api-issues/issues/detail?id=4699 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 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
Re: [android-developers] Dynamically selecting Map API version
On Tue, Dec 18, 2012 at 7:37 AM, lbendlin l...@bendlin.us wrote: Am I right to assume that using multiple APKs is not an option either as there is no OpenGL enabled filter for that? I am not an OpenGL expert nor a multiple-APK expert, but... The docs say that OpenGL ES 2.0 was made available in the Android SDK starting with Android 2.2. According to the current device dashboards, Android 2.1 and below are 3.1% of the market, while OpenGL ES 1.1-only is 9.2% of the market. So, having multiple APKs based on API level can help *some* of the OpenGL ES 1.1 users (those on Android 2.1 and below). Those who are on Android 2.2+ whose manufacturers did not support OpenGL ES 2.0 drivers would still be screwed under this plan, and that would be 6.1% of the market. The docs say that you can have multiple Android APKs that differ in their OpenGL texture compression formats -- I don't know if there's a (possibly cheesy) way of using that to distinguish OpenGL ES 1.1 from 2.0. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 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: Access cache size of browser activity
http://developer.android.com/reference/android/content/pm/PackageStats.html On Tuesday, December 18, 2012 12:47:39 PM UTC, Bajrang Asthana wrote: I want to fetch cache size of browser activity. As we open info of any app from manage application there is one section which gives information about cache size. See attached Image. Suggest how can we access. -- 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 ics icons
what's the link to the android ics icons. i'd like to add 1 or 2 to my app. i searched... -- 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] android ics icons
They are in your Android SDK, in the platforms/ directory, as are icons for all other versions of Android for which you have downloaded the SDKs. On Tue, Dec 18, 2012 at 8:10 AM, dashman erjdri...@gmail.com wrote: what's the link to the android ics icons. i'd like to add 1 or 2 to my app. i searched... -- 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 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: Access cache size of browser activity
Thanks! The link provided by you describes the way to fetch the cache size. Can you please tell me how can I delete it from my app? As I can see Android provide this functionality from manage applications. On Tuesday, December 18, 2012 6:20:21 PM UTC+5:30, RichardC wrote: http://developer.android.com/reference/android/content/pm/PackageStats.html On Tuesday, December 18, 2012 12:47:39 PM UTC, Bajrang Asthana wrote: I want to fetch cache size of browser activity. As we open info of any app from manage application there is one section which gives information about cache size. See attached Image. Suggest how can we access. -- 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: Further Mediacodec API issues in Jellybean
I have yet to see a working example from anyone using MediaCodec. I hope I am wrong, but I think there's a reason why there are no working samples. All I've seen from Google is a powerpoint slide presentation by the head developer. No actual working code. On Thursday, December 13, 2012 9:57:16 AM UTC-5, Peter Kolarov wrote: Hello, I am using Samsung N7100 device to test encoding capabilities of mediacodec API, and I am not able to get any meaningful results. Basically, I am able to successfully setup encoder, then I am able to enqueu input buffers, I am also getting 2 output buffers worth of data before the encoder gets stuck and no output buffer gets dequeued anymore, causing input buffers to fail to enqueuing further data. I tried 3 supported device codecs (avc, 3gpp, mp4v-es) all with similar results. Here is how I setup: codec = MediaCodec.createEncoderByType(video/avc); MediaFormat format = MediaFormat.createVideoFormat(video/avc, WIDTH, HEIGHT); format.setInteger(MediaFormat.KEY_BIT_RATE, 500); format.setFloat(MediaFormat.KEY_FRAME_RATE, (float)7.5); format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, 1); format.setInteger(MediaFormat.KEY_COLOR_FORMAT, MediaCodecInfo.CodecCapabilities.COLOR_FormatYUV420Planar ); codec.configure(format, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); codec.start(); Then I feed the encoder: int inputBufferIndex = codec.dequeueInputBuffer(TIMEOUT); if (inputBufferIndex = 0) { convertRGBtoYUV420EncoderInput(rgbData, WIDTH, HEIGHT, codecInputBuffers[inputBufferIndex]); codec.queueInputBuffer(inputBufferIndex, 0, codecInputBuffers[inputBufferIndex].capacity(), 0, 0); } else{ myLog.i(Cannot yet enque more data #: + inputBufferIndex); } And I get output data like so: info = new MediaCodec.BufferInfo(); int outputBufferIndex = codec.dequeueOutputBuffer(info, TIMEOUT); if (outputBufferIndex = 0) { byte[] dst = new byte[info.size]; codecOutputBuffers[outputBufferIndex].get(dst, 0, info.size); codec.releaseOutputBuffer(outputBufferIndex, false); } When I set TIMEOUT to -1 the call to codec.dequeueOutputBuffer never returns after getting 2 output buffers worth of data (basically just AVC header). Also BufferInfo has only 0s and no usefull information, thus I dont get really any errors but buffers dont work. Is there anything else that needs to get setup e.g. filling input buffer with some further codec config before I start feeding it real YUV video data??? Any help or working sample would be highly apreciated... Thanks, -peter -- 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] Non blocking response from HTTP server
** I have implemented HTTP server(handling GET. POST and DELETE requests) in Android using sockets. In order to make the server non-blocking, I saw there is java.nio package http://developer.android.com/reference/java/nio/package-summary.html. The selector keys are accept, read or write. Is there any example link or tutorial of how will I implement non-blocking server using nio for each of the methods GET/ POST/ DELETE)? Currently, I am using request.getRequestLine().getMethod(); to know the method Note: Http Core cannot be used as Android does not support org.apache.http.nio.* 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
Re: [android-developers] Re: Identifying HTTP Get requests in Android
I read using threads causes overhead, performance and scalability issues. It is efficient if there are a limited number of clients. So I think using java.nio would be the best option. Any example that shows handling the HTTP methods without blocking. On Monday, December 17, 2012 7:06:00 PM UTC+2, Kristopher Micinski wrote: On Mon, Dec 17, 2012 at 6:35 AM, Archana ramalinga...@gmail.comjavascript: wrote: Hi, Is it like having separate thread for each request(GET/POST/DELETE) ? Can you please explain? I was also thinking of AsyncTask, message queue or multithreading. Thanks! Basically, those are all equivalent... AsyncTask is using a thread pool under the hood, a message queue will probably be a key step in using multi threading also. One nice thing about these requests is that handling them typically doesn't involve much cross communication between requests: as long as you can serialize on transactions through shared pieces of the app. E.g., if you have a GET request which grabs some information from a database, you can spawn a thread to get the info from the different tables and amalgamate it. If you subsequently get a DELETE you can delete all the required information. One key thing here will be to think about transactions if you have more complex SQL statements. (Single queries are implicitly wrapped in transactions anyway, by sqlite, iirc...) There is nothing specific to Android here though, kris -- 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: Is it possible to reduce the variability of camera shutter lag time?
Rewrite the app to capture camera preview frames and you can process the frames yourself without having to take a picture. On Monday, July 30, 2012 2:55:52 PM UTC-4, greg wrote: Given a known periodic motion (e.g., walking), I'd like to take a full resolution snapshot at the same point in the motion (i.e., the same time offset within different periods). However on the Nexus S (currently running OS 4.1.1 but the same was true of previous OS versions), I'm seeing so much variability in the shutter lag that I cannot accurately plan the timing of the snapshot. Is there anything I can do in the application to reduce this shutter lag variability? (In this application, the mean lag can be any duration but the standard deviation must be small ... much smaller than the 0.5 s standard deviation I am seeing.) I'm hoping someone has a clever suggestion. If I don't get any suggestions, I'll post a feature request in the Android bug tracker. I've posted the same question (and showing a histogram of camera shutter lag times) at http://stackoverflow.com/questions/11727240/how-to-reduce-the-variability-in-android-camera-shutter-lag Thanks! -- Greg -- 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] Intercept an app
Hi everyone! Is it possible to intercept an app to launcher, in order to ask a password before? Like ZDBox ( https://play.google.com/store/apps/details?id=com.zdworks.android.toolboxhl=en) does? I created my onw launcher and there are some apps that I don't want to be opened, only if the user have the password. How can I do that? Any aswer would be appreciate. -- 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 Issue
recently, I developed an android application which is working very fine on my phone Samsung Galaxy Ace. I gave the demo of my application on youtube which is working fine. The link is here: https://www.youtube.com/watch?v=TfTeUP8Cdkc Some effects are created just using android library But a user encountered a problem. He said that the effects on photos he is applying on his device is not shown for that time but they are actually applied on the saved image. His device is Micromax Funbook. But the same thing works fine on other device and even on emulator of the same configuration as Micromax Funbook. It would have been more better if the problem existed on every device but this is not. If someone knows about this then please tell me. 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] How i getting a value out of the function?
Hello.I make an apk for listen bluetooth and i want to get value data from function ListenBt() to pass to another function upload().I make public final string data but no work!Any help? public class Activity2 extends Activity { public String strValue; public String strValue2; public int t;//Temperature public String urlt; public final String data=0; TextView txt; Handler handler = new Handler(); TextView myLabel; /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity2); //txt=(TextView)findViewById(R.id.txt); myLabel = (TextView)findViewById(R.id.label); } private class DownloadWebPageTask extends AsyncTaskString, Void, String { @Override protected String doInBackground(String... urls) { String response = ; for (String url : urls) { DefaultHttpClient client = new DefaultHttpClient(); HttpGet httpGet = new HttpGet(url); try { HttpResponse execute = client.execute(httpGet); InputStream content = execute.getEntity().getContent(); BufferedReader buffer = new BufferedReader(new InputStreamReader(content)); String s = ; while ((s = buffer.readLine()) != null) { response += s; } } catch (Exception e) { e.printStackTrace(); } } return response; } @Override protected void onPostExecute(String result) { TextView text3 = (TextView) findViewById(R.id.txt3); text3.setText(result); try { sendData(result); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } public void readWebpage(View view) { DownloadWebPageTask task = new DownloadWebPageTask(); task.execute(new String[] { strValue }); } protected void onStart() { super.onStart(); try { findBT(); openBT(); } catch (IOException ex) { } runnable.run(); } private Runnable runnable = new Runnable() { public void run() { DownloadWebPageTask task = new DownloadWebPageTask(); task.execute(new String[] { strValue }); beginListenForData(); upload(); if(work){ handler.postDelayed(this, 3);}//Refresh page time } }; void ListenBt() { final Handler handler = new Handler(); final byte delimiter = 10; //This is the ASCII code for a newline character stopWorker = false; readBufferPosition = 0; readBuffer = new byte[1024]; workerThread = new Thread(new Runnable() { public void run() { while(!Thread.currentThread().isInterrupted() !stopWorker) { try { int bytesAvailable = mmInputStream.available(); if(bytesAvailable 0) { byte[] packetBytes = new byte[bytesAvailable]; mmInputStream.read(packetBytes); for(int i=0;ibytesAvailable;i++) { byte b = packetBytes[i]; if(b == delimiter) { byte[] encodedBytes = new byte[readBufferPosition]; System.arraycopy(readBuffer, 0, encodedBytes, 0, encodedBytes.length); final String data = new String(encodedBytes, US-ASCII); readBufferPosition = 0; handler.post(new Runnable() { public void run() { myLabel.setText(data); } }); } else { readBuffer[readBufferPosition++] = b; } } } } catch (IOException ex) {
[android-developers] Re: How i getting a value out of the function?
Change this: final String data = new String(encodedBytes, US-ASCII); to this: *data = new String(encodedBytes, US-ASCII);* On Tuesday, December 18, 2012 8:41:34 AM UTC-6, Antonis Kanaris wrote: Hello.I make an apk for listen bluetooth and i want to get value data from function ListenBt() to pass to another function upload().I make public final string data but no work!Any help? public class Activity2 extends Activity { public String strValue; public String strValue2; public int t;//Temperature public String urlt; public final String data=0; TextView txt; Handler handler = new Handler(); TextView myLabel; /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity2); //txt=(TextView)findViewById(R.id.txt); myLabel = (TextView)findViewById(R.id.label); } private class DownloadWebPageTask extends AsyncTaskString, Void, String { @Override protected String doInBackground(String... urls) { String response = ; for (String url : urls) { DefaultHttpClient client = new DefaultHttpClient(); HttpGet httpGet = new HttpGet(url); try { HttpResponse execute = client.execute(httpGet); InputStream content = execute.getEntity().getContent(); BufferedReader buffer = new BufferedReader(new InputStreamReader(content)); String s = ; while ((s = buffer.readLine()) != null) { response += s; } } catch (Exception e) { e.printStackTrace(); } } return response; } @Override protected void onPostExecute(String result) { TextView text3 = (TextView) findViewById(R.id.txt3); text3.setText(result); try { sendData(result); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } public void readWebpage(View view) { DownloadWebPageTask task = new DownloadWebPageTask(); task.execute(new String[] { strValue }); } protected void onStart() { super.onStart(); try { findBT(); openBT(); } catch (IOException ex) { } runnable.run(); } private Runnable runnable = new Runnable() { public void run() { DownloadWebPageTask task = new DownloadWebPageTask(); task.execute(new String[] { strValue }); beginListenForData(); upload(); if(work){ handler.postDelayed(this, 3);}//Refresh page time } }; void ListenBt() { final Handler handler = new Handler(); final byte delimiter = 10; //This is the ASCII code for a newline character stopWorker = false; readBufferPosition = 0; readBuffer = new byte[1024]; workerThread = new Thread(new Runnable() { public void run() { while(!Thread.currentThread().isInterrupted() !stopWorker) { try { int bytesAvailable = mmInputStream.available(); if(bytesAvailable 0) { byte[] packetBytes = new byte[bytesAvailable]; mmInputStream.read(packetBytes); for(int i=0;ibytesAvailable;i++) { byte b = packetBytes[i]; if(b == delimiter) { byte[] encodedBytes = new byte[readBufferPosition]; System.arraycopy(readBuffer, 0, encodedBytes, 0, encodedBytes.length); final String data = new String(encodedBytes, US-ASCII); readBufferPosition = 0; handler.post(new Runnable() { public void run() { myLabel.setText(data); }
Re: [android-developers] android emulator
On Tue, Dec 18, 2012 at 10:18 AM, bharani kumar bharanikumariyer...@gmail.com wrote: For android application testing is there any free open source emulators . http://developer.android.com/tools/index.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 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: How i getting a value out of the function?
I try it but no work... -- 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] android emulator
Really? http://lmgtfy.com/?q=android+emulatorl=1 Larry On Tue, Dec 18, 2012 at 8:18 AM, bharani kumar bharanikumariyer...@gmail.com wrote: Hi, For android application testing is there any free open source emulators . -- Regards B.S.Bharanikumar http://php-mysql-jquery.blogspot.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 -- 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: IBM Worklight
I don't know, but there is a google group for phonegap: https://groups.google.com/forum/?fromgroups#!forum/phonegap Maybe ask them? On Tuesday, December 18, 2012 1:45:20 AM UTC-6, Resurrcting the champ wrote: what's the difference between it and phonegap ? 2012/12/17 bob b...@coolfone.comze.com javascript: *The IBM Worklight Developer Edition is a self-contained, easy-to-install plugin for the Eclipse IDE. While IBM Worklight Enterprise and Consumer Editions consist of separate development environment and server components, the Developer Edition packages them into a single Eclipse download without the need to install database or application servers. This edition is free for evaluation purposes.* [sic] On Monday, December 17, 2012 5:02:48 AM UTC-6, Resurrcting the champ wrote: Dear Geeks, Does anyone hear about IBM Worklight. How could i use it, are there any tutorials about. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How i getting a value out of the function?
How are you initializing *mmInputStream*? On Tuesday, December 18, 2012 9:26:47 AM UTC-6, Antonis Kanaris wrote: I try it but no work... -- 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] hcidump
Does anyone know how to install hcidump on Android? I need some help debugging Android bluetooth. -- 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: Identifying HTTP Get requests in Android
Maybe you should try to use threads first and see what happens... :-) It's funny you mention that you don't want to use this approach because it has overhead, performance and scalability issues: running a server on Android has those issues! If you are really concerned about performance and scalability, you should be using GCM, not writing your own server: servers were never meant to run on Android anyway. And you won't be able to scale it: any carrier will probably block ports anyway. Kris On Tue, Dec 18, 2012 at 8:40 AM, Archana ramalingam.arch...@gmail.com wrote: I read using threads causes overhead, performance and scalability issues. It is efficient if there are a limited number of clients. So I think using java.nio would be the best option. Any example that shows handling the HTTP methods without blocking. On Monday, December 17, 2012 7:06:00 PM UTC+2, Kristopher Micinski wrote: On Mon, Dec 17, 2012 at 6:35 AM, Archana ramalinga...@gmail.com wrote: Hi, Is it like having separate thread for each request(GET/POST/DELETE) ? Can you please explain? I was also thinking of AsyncTask, message queue or multithreading. Thanks! Basically, those are all equivalent... AsyncTask is using a thread pool under the hood, a message queue will probably be a key step in using multi threading also. One nice thing about these requests is that handling them typically doesn't involve much cross communication between requests: as long as you can serialize on transactions through shared pieces of the app. E.g., if you have a GET request which grabs some information from a database, you can spawn a thread to get the info from the different tables and amalgamate it. If you subsequently get a DELETE you can delete all the required information. One key thing here will be to think about transactions if you have more complex SQL statements. (Single queries are implicitly wrapped in transactions anyway, by sqlite, iirc...) There is nothing specific to Android here though, kris -- 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 -- 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 i convert upload code to AsyncTask?
How i convert this class code with AsyncTask method? public class SimpleHttpPut { public static void main(String urlt,int t) { HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost(urlt); try { ListNameValuePair nameValuePairs = new ArrayListNameValuePair(1); nameValuePairs.add(new BasicNameValuePair(temp,String.valueOf(t))); post.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse response = client.execute(post); BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent())); String line = ; while ((line = rd.readLine()) != null) { System.out.println(line); } } catch (IOException e) { e.printStackTrace(); } } } -- 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: Identifying HTTP Get requests in Android
Archana wrote: I read using threads causes overhead, performance and scalability issues. It is efficient if there are a limited number of clients. So I think using java.nio would be the best option. Any example that shows handling the HTTP methods without blocking. how many concurrent requests do you expect? 10, 100, 1000, more? if ten or so its no problem, if more you probably should change the platform pskink -- 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] SyncAdapter exception that I can't seem to trace.
THis is not the first time I've written a sync adapter, but thi is the first time I've seen this problem. I can't find were it might be happening and I'm wondering if anyone else has seen this. The problem is that it seems to be internal to the SyncAdapter. I already know that the likely reason for the Handler exception is a UI call in a non UI thread, but the trouble is that I am not using any UI in the syncadapter (not even a toast). I have heard that its possible for another thread to die and cause a cascade that is not obvious, but it that is happening here, there are no clues I can see. So... if anyone can shed some light on this issue, I've love to hear what you have to say. 12-18 12:26:20.347: E/AndroidRuntime(22903): FATAL EXCEPTION: SyncAdapterThread-1 12-18 12:26:20.347: E/AndroidRuntime(22903): java.lang.ExceptionInInitializerError 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.content.ContentProvider.attachInfo(ContentProvider.java:929) 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.app.ActivityThread.installProvider(ActivityThread.java:4237) 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.app.ActivityThread.acquireProvider(ActivityThread.java:4035) 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.app.ContextImpl$ApplicationContentResolver.acquireProvider(ContextImpl.java:1612) 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.content.ContentResolver.acquireProvider(ContentResolver.java:949) 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.content.ContentResolver.acquireContentProviderClient(ContentResolver.java:984) 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:245) 12-18 12:26:20.347: E/AndroidRuntime(22903): Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.os.Handler.init(Handler.java:121) 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.os.AsyncTask$InternalHandler.init(AsyncTask.java:607) 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.os.AsyncTask$InternalHandler.init(AsyncTask.java:607) 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.os.AsyncTask.clinit(AsyncTask.java:190) 12-18 12:26:20.347: E/AndroidRuntime(22903): ... 7 more -- 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: SyncAdapter exception that I can't seem to trace.
Since posting this, I've narrowed it down to the Provider causing the exception, although as yet I can't find any reference to the UI thread. -- 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] Intercept an app
It is impossible: your app should not be able to gain system level privileges. Apps exploiting this type of behavior typically read logs and then shut down other apps by killing them with a pid, relaunching after the user inputs a password. Fortunately, this behavior has been removed (no read logs permission) in newer Android builds. Kris On Tue, Dec 18, 2012 at 9:23 AM, Lucas Diego diegoluc...@gmail.com wrote: Hi everyone! Is it possible to intercept an app to launcher, in order to ask a password before? Like ZDBox (https://play.google.com/store/apps/details?id=com.zdworks.android.toolboxhl=en) does? I created my onw launcher and there are some apps that I don't want to be opened, only if the user have the password. How can I do that? Any aswer would be appreciate. -- 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 -- 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: SyncAdapter exception that I can't seem to trace.
Well it appears that the the provider param android:multiprocess=true was causing the problem. changing it to false made the exception and crash go away. I don't know yet if this is a fix because I need to run it through some tests, but it does make sense in terms of what the exception was showing us, and known causes for those exception. -- 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 i convert upload code to AsyncTask?
Simply call the main method from the *doInBackground* method. On Tuesday, December 18, 2012 10:49:19 AM UTC-6, Antonis Kanaris wrote: How i convert this class code with AsyncTask method? public class SimpleHttpPut { public static void main(String urlt,int t) { HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost(urlt); try { ListNameValuePair nameValuePairs = new ArrayListNameValuePair(1); nameValuePairs.add(new BasicNameValuePair(temp,String.valueOf(t))); post.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse response = client.execute(post); BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent())); String line = ; while ((line = rd.readLine()) != null) { System.out.println(line); } } catch (IOException e) { e.printStackTrace(); } } } -- 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 i convert upload code to AsyncTask?
If you do that then the asynctask will run on the main thread... probably not what you want... OP: did you read an AsyncTask tutorial? kris On Tue, Dec 18, 2012 at 1:06 PM, bob b...@coolfone.comze.com wrote: Simply call the main method from the doInBackground method. On Tuesday, December 18, 2012 10:49:19 AM UTC-6, Antonis Kanaris wrote: How i convert this class code with AsyncTask method? public class SimpleHttpPut { public static void main(String urlt,int t) { HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost(urlt); try { ListNameValuePair nameValuePairs = new ArrayListNameValuePair(1); nameValuePairs.add(new BasicNameValuePair(temp,String.valueOf(t))); post.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse response = client.execute(post); BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent())); String line = ; while ((line = rd.readLine()) != null) { System.out.println(line); } } catch (IOException e) { e.printStackTrace(); } } } -- 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 -- 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] Non blocking response from HTTP server
What's wrong with the question you posted on the other thread? Was there a compelling reason to spam people and duplicating effort by starting another thread that contains the same questions? Kris On Tue, Dec 18, 2012 at 8:37 AM, Archana ramalingam.arch...@gmail.comwrote: ** I have implemented HTTP server(handling GET. POST and DELETE requests) in Android using sockets. In order to make the server non-blocking, I saw there is java.nio package http://developer.android.com/reference/java/nio/package-summary.html. The selector keys are accept, read or write. Is there any example link or tutorial of how will I implement non-blocking server using nio for each of the methods GET/ POST/ DELETE)? Currently, I am using request.getRequestLine().getMethod(); to know the method Note: Http Core cannot be used as Android does not support org.apache.http.nio.* 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 -- 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 i convert upload code to AsyncTask?
protected abstract Result *doInBackground* (Params... params) Added in API level 3 Override this method to perform a computation on a *background thread*. The specified parameters are the parameters passed toexecute(Params...) by the caller of this task. This method can call publishProgress(Progress...) to publish updates on the UI thread. Parameters params The parameters of the task. Returns A result, defined by the subclass of this task. See Also onPreExecute() onPostExecute(Result) publishProgress(Progress...) On Tuesday, December 18, 2012 12:08:51 PM UTC-6, Kristopher Micinski wrote: If you do that then the asynctask will run on the main thread... probably not what you want... OP: did you read an AsyncTask tutorial? kris On Tue, Dec 18, 2012 at 1:06 PM, bob b...@coolfone.comze.comjavascript: wrote: Simply call the main method from the doInBackground method. On Tuesday, December 18, 2012 10:49:19 AM UTC-6, Antonis Kanaris wrote: How i convert this class code with AsyncTask method? public class SimpleHttpPut { public static void main(String urlt,int t) { HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost(urlt); try { ListNameValuePair nameValuePairs = new ArrayListNameValuePair(1); nameValuePairs.add(new BasicNameValuePair(temp,String.valueOf(t))); post.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse response = client.execute(post); BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent())); String line = ; while ((line = rd.readLine()) != null) { System.out.println(line); } } catch (IOException e) { e.printStackTrace(); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: SyncAdapter exception that I can't seem to trace.
AsyncTask is calling this error which is Can't create handler inside thread that has not called Looper.prepare() On Tuesday, December 18, 2012 12:43:51 PM UTC-5, Brill Pappin wrote: THis is not the first time I've written a sync adapter, but thi is the first time I've seen this problem. I can't find were it might be happening and I'm wondering if anyone else has seen this. The problem is that it seems to be internal to the SyncAdapter. I already know that the likely reason for the Handler exception is a UI call in a non UI thread, but the trouble is that I am not using any UI in the syncadapter (not even a toast). I have heard that its possible for another thread to die and cause a cascade that is not obvious, but it that is happening here, there are no clues I can see. So... if anyone can shed some light on this issue, I've love to hear what you have to say. 12-18 12:26:20.347: E/AndroidRuntime(22903): FATAL EXCEPTION: SyncAdapterThread-1 12-18 12:26:20.347: E/AndroidRuntime(22903): java.lang.ExceptionInInitializerError 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.content.ContentProvider.attachInfo(ContentProvider.java:929) 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.app.ActivityThread.installProvider(ActivityThread.java:4237) 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.app.ActivityThread.acquireProvider(ActivityThread.java:4035) 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.app.ContextImpl$ApplicationContentResolver.acquireProvider(ContextImpl.java:1612) 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.content.ContentResolver.acquireProvider(ContentResolver.java:949) 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.content.ContentResolver.acquireContentProviderClient(ContentResolver.java:984) 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:245) 12-18 12:26:20.347: E/AndroidRuntime(22903): Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.os.Handler.init(Handler.java:121) 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.os.AsyncTask$InternalHandler.init(AsyncTask.java:607) 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.os.AsyncTask$InternalHandler.init(AsyncTask.java:607) 12-18 12:26:20.347: E/AndroidRuntime(22903): at android.os.AsyncTask.clinit(AsyncTask.java:190) 12-18 12:26:20.347: E/AndroidRuntime(22903): ... 7 more -- 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: SyncAdapter exception that I can't seem to trace.
I am wondering why you are calling AsyncTask in SyncAdapter or ContentResolver? It is very odd. AsyncTask supposed to do run CPU heavy tasks on background then update it to UI threads. -- 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 i convert upload code to AsyncTask?
In other hand, you can't use System.out.println on Android too. -- 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 i convert upload code to AsyncTask?
Why not? On Tuesday, December 18, 2012 4:29:52 PM UTC-6, Jonathan S wrote: In other hand, you can't use System.out.println on Android too. -- 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] How to sync development projects?
On Tue, Dec 18, 2012 at 2:35 AM, Piren gpi...@gmail.com wrote: In that case, you should really move to git as Nikolay suggested :) Its basically doing exactly what you want... Meh, I'm set in my ways with SVN. I don't use this that frequently that I feel it's worth the trouble learning and moving to a new version system right now. Good to know though for future reference. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: layout overlays
On Sunday, December 16, 2012 3:28:08 PM UTC-8, dashman wrote: i'd like to display an layout that overlays my app. this layout will display a hint - e.g. tap this to get started etc. i would like this layout to be on top of the action bar also - so that users can't click on it or menus until the overlay layout is tapped on (and dismissed). possible? maybe I don't understand what you want but what I would do is make my main layout ( e.g. main.xml ) a FrameLayout, then within it define two relative layouts, one is your app layout and the other is your overlay. Set the background colour of your overlay layout to # to make it transparent and your setZOrder to bring it to the front so that it gets the click events. To 'dismiss' it, setVisibility( View.GONE ); -- 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: Access cache size of browser activity
On Tue, Dec 18, 2012 at 7:25 AM, Bajrang Asthana asthana.bajr...@gmail.comwrote: The link provided by you describes the way to fetch the cache size. Can you please tell me how can I delete it from my app? http://developer.android.com/guide/topics/data/data-storage.html#filesInternal - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] How will combine download and then upload in a loop?
On Tue, Dec 18, 2012 at 3:59 AM, Antonis Kanaris ant...@in.gr wrote: How combine download and upload together? Do the upload only after the download has actually completed. Hint: it's probably not completed two lines after you called execute() on your Task. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: Required: ETL Developer at Portland OR
What the heck does this spam have to do with Android development, Munawar? Munawar Ali wrote: Hi There, Hope you are doing good [sic].Please let me know if you have someone for the below mention [sic] requirement… [sic] Please send resumes on [sic] mu...@tekenergyusa.com javascript: You should have your messages reviewed for professionalism, which this one notably lacks. *Position: Data Stage ETL Developer* *Location: Portland, OR* *Duration: 12+ Months Contract* * * *- *Must have* Data Stage* This is an *Android* developers' forum! Thanks Regards, Munawar Ali Highly Unprofessional Technical Recruiter Tek Energy LLC -- Lew -- 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] AOSP JB 4.1.2_r1 tablet ui customization
Hi to all! First of all I want you to know that what I'm asking is for specialized device which needs such feature. What I want to do: Modify Settings app (add preference screen with list of installed packages which can be selected); hide/show navigation bar when activity from selected package (selected in Settings) is active/paused/terminated... Now, hide/show of nav bar I solved trough setting system property to true/false (only system apps are allowed to do that). Now, I was wondering if you have suggestions where in framework to put parts of code which will handle described functionality? Regards -- 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 delete app in new console
In the old console, if you delete the last APK, the entire app goes away...for better or worse. However, in the new console there appears to be no way at all to delete an app. Is this correct? Is my console now littered with unintended apps that will persist forever? I have a version of the Dungeons app and I have draft versions of an app in-prep that I divided between free and paid before abandoning them in favor of a freemium model. Is there anyway to clean up this clutter in the console? 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