Re: [android-developers] How to receive files via Bluetooth?
please refer the sdk example Bluetooth chat ,i think that example is partially suit for your question On Mon, Jun 25, 2012 at 5:13 PM, Giuseppe porcelli.giuse...@gmail.comwrote: In my app, I would like to add the function to receive files directly into it via Bluetooth. I know that I can use the Chat sample to connect to instance of my app on two devices via Bluetooth, but what I am looking for is to make possible to receive the files from any devices and without to have my app installed on the sender side. Any suggestion? 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 -- 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] subject to device problem
Please explain clearly what you did and what did not work for you so that others can help you. The details you provided is not sufficient. On Tue, Jun 26, 2012 at 11:58 AM, Rahul Vijay rahul.vija...@gmail.comwrote: Hello sir, I have face few problem in a device to display a dynamic table. In a AVD display a table but in a device can not display a table. I used a Samsung device. Please help me. mys xml file here ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=match_parent android:layout_height=match_parent android:background=#FEE703 TextView android:text=High Score android:textColor=#b3000d android:gravity=center_vertical|center_horizontal android:textSize=26dip android:layout_width=fill_parent android:layout_height=wrap_content android:textStyle=bold android:background=#ffb0b6 android:layout_marginBottom=5dip android:typeface=sans/ RelativeLayout android:layout_width=wrap_content android:layout_height=wrap_content android:id=@+id/relative TextView android:layout_width=wrap_content android:layout_height=wrap_content android:text=Name android:textColor=#b3000d android:textSize=20dip android:layout_marginLeft=20dip android:id=@+id/name/ TextView android:layout_width=wrap_content android:layout_height=wrap_content android:text=Score android:textColor=#b3000d android:textSize=20dip android:layout_marginLeft=110dip/ TextView android:layout_width=wrap_content android:layout_height=wrap_content android:text=Time android:textColor=#b3000d android:textSize=20dip android:layout_marginLeft=200dip/ TableLayout android:layout_width=wrap_content android:layout_height=wrap_content android:layout_below=@+id/name android:id=@+id/tablelayout/ /RelativeLayout /LinearLayout -- 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] subject to device problem
Hi Rahul, what problem are you getting in displaying tablelayout contents dynamically. Please specify it clearly. -- 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] Dynamic Table layout
In a last message, I have display a table in a dynamic way. table header like Name, score and time and table row are Ram ,5, 2:15 and again print a another row in similar way. Yes it is display in a emulator. But it can not display in a device. I check it data can show logcat when I run application in a device using a system.out.println. it show a data. But it cannot show a table in a device. Also show a xml data in a textview. No problem in a xml. whats problem, I can never understand. -- 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 solve 'ClassNotFoundException' on 'BackupAgent'??
Hi. First, thank you for your advice. * Then, *I suppose about problem that probably the problem came from ADT plugin or Eclipse. The reason why is that sometime Android screaming ClassNotFound error when just launched an blank activyty in debugger about even usual normal start activity class which symptom is exactly same. In that case 'Clean' build is not even work. But deletion by manual resolve the problem.(Select 'bin', 'gen' folder in project explorer of Eclipse and press delete key. Or maybe could works delete each folder on File Explorer out side of Eclipse). I'll look carefully for further app release, but Google ADT people need to make sure the defect fix on ADT and Eclipse part. For now, thank you for everyone for all your time and effort. See you later. On Tuesday, June 26, 2012 9:08:41 AM UTC+9, Dianne Hackborn wrote: On Mon, Jun 25, 2012 at 12:07 AM, Build Account wrote: Do you know...which module/app save an apk into '/data/app/' 1. when it downloaded from the app Google Play?(Google Play itself?) PackageManagerService 2. when run debugger through Eclipse, which module save into? PackageManagerService 3. Is that always overwrote prior same apk successfully? That is an implementation detail, and you are doing something wrong if you care about it. The way this works has changed across different versions of the platform. In current versions, it picks a name that is different from the name of the currently installed version, and once install of the new version completed successfully it points its data structures to the new path and deletes the old .apk file. -- Dianne Hackborn Android framework engineer 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: DEFECT(?) on the new Google 'Subscription' payment method(wrongly reconize purchase status?).
Any advice? Especially...Google people, no advice? On Saturday, June 23, 2012 12:41:17 AM UTC+9, Build Account wrote: Hello. I have started bit aggressive subject since I believe payment issue is very important. Some of app (Like Glu mobile's games) which already apply this Subscription method also working weired with the process. Please everybody follow below description to verify whether this is a problem or not.(I'm looking for a solution) *Regarding *the description on Google, ( http://developer.android.com/guide/google/play/billing/billing_subscriptions.html ) and the sample from this page, we can test the subscription and all the in-app billing process. and it SEEM quite work well.(you need to build up and test). BUT, to reproduce, 1. Once purchase a pre-registered 'subscription item' which is well paid through your in-app billing test sample. 2. after that Immediately cancel the transaction WITHIN 15minites as Google policy to avoid refund process through the app download page on Google Play(just press cancel) then now you will receive totally two e-mails from Google system one is about well purchased, another one is well cancelled. After that, you try to purchase the Subscription item again, Google Market system will tell you that 'You already has the subscription' or so(as relevant your language) even-though you cancel the subscription successfully. *Here is what* I want to tell you that the PROBLEM. If follow above simple steps, 1. You can't purchase again before expire the payment cycle(at least a month) mean that user can't buy the item with in the month also mean that you can NOT earn the profit for users. Did you got a what the problem is? No? keep follow below. the real problem is that 2. The app which contain Subscription selling/payment verifying module recognize that user successfully purchase the item. Mean that user can access everything without any payment within a month! Follow? Plus, user can try to purchase and cancel every single payment cycle(monthly or yearly). Follow? Ya, this Google's new subscription method SEEM that security hole and serious problem which is unfiltered before commercialized. You people try above on some of apps like Contract killer from the company Glu mobile or another applicant's app whatevery one to repro whether immediately cancelled Subscription make wrongly work. *So, * my questions which I would like to ask you that 1. above is natural flow? not a problem/defect? 2. is there already exist any solution to correctly detect subscription status whether cancelled?(even though user cancel the subscription immediately within 15 mins after purchase?) 3. If anything wrongly understand subscription application how to?? Please advice me anything since I need a solution to apply Subscription method without defect. Thx. -- 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] Problems with ListView scroll.
I have a ListView, and a custom adapter. I have setup listeners for click, and long-click. The problem:: I can scroll, but the moment I take my finger off the screen, it scrolls back to the top of the list view. How can I fix this 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
[android-developers] OpenStreetMap API Tile Server and Third Party Library
I found that OpenStreetMap has a tight restriction on using its tile servers based on: http://wiki.openstreetmap.org/wiki/Tile_usage_policy#Requirements And I am interested to use third party library to implement OSM in my app, for example, OSMdroid and Routeme. However, I am curious, does third party library like I have mentioned, use OSM tile servers? They don't explain about it in their website. -- 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] Video Recording Problems
Recording video in Android should be relatively simple. Or so I thought. But after having wasted several days on trying to get it working, I would like to see if anybody can understand what is wrong with my code. This is the essential part of the relevant code (requiring Android 2.2 or later): camera = Camera.open(); camera.setPreviewDisplay(holder); camera.startPreview(); mRecorder = new MediaRecorder(); camera.unlock(); mRecorder.setCamera(camera); mRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); mRecorder.setProfile(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH)); mRecorder.setMaxDuration(1000*60*20); // 20 minutes videoFile = new File(/mnt/sdcard/xx/ + XXX + .mp4); mFileName = videoFile.toString(); mRecorder.setOutputFile(mFileName); mRecorder.setMaxFileSize(1024*1024); // Max 1 MB mRecorder.setOnInfoListener (this); mRecorder.setOnErrorListener(this); mRecorder.setPreviewDisplay(holder.getSurface()); // ??? try { mRecorder.prepare(); mRecorder.start(); } The preview is showing properly at the screen. The code seems to fail at the last line, when trying to start the video recorder. The most important lines of the debug log (from a Sony Ericsson device, running Android 2.3.4) seem to be the following, which occur when the attempt is made to start the recorder: 06-26 09:08:46.087: W/ServiceManager(139): Permission failure: com.sonyericsson.permission.CAMERA_EXTENDED from uid=1013 pid=139 06-26 09:08:46.087: W/ServiceManager(139): Permission failure: com.sonyericsson.permission.CAMERA_EXTENDED from uid=1013 pid=139 06-26 09:08:46.087: E/StagefrightRecorder(139): Failed to set the video frame size to 1280x720 06-26 09:08:46.087: W/AACEncoder(139): Call stop() when encoder has not started 06-26 09:08:46.097: D/kernel(131): [ 1514.405670] [adsp.c:msm_adsp_get] module AUDREC2TASK has been registered 06-26 09:08:46.097: D/kernel(131): [ 1514.405883] [adsp.c:msm_adsp_put] closing module AUDREC2TASK 06-26 09:08:46.097: E/MediaRecorder(1991): start failed: -2147483648 This is more of the log, in case that could be important: 06-26 09:08:35.647: W/ServiceManager(139): Permission failure: com.sonyericsson.permission.CAMERA_EXTENDED from uid=10018 pid=1991 06-26 09:08:35.697: I/caladbolg(139): 1265769348 cald_camctrl.c(6708) 2024 P [SVR] 1265769318 + Cald_CamCtrl_PowerUp 06-26 09:08:35.697: I/caladbolg(139): 1265769837 cald_camctrl.c(7479) 2024 P [SVR] 1265769837 + Cald_CamCtrl_FSM_Func_PowerUp 06-26 09:08:35.717: I/caladbolg(139): 1265786530 cald_hal_qct.c(2789) 2024 P [HAL] 1265786499 + Cald_Hal_Qct_If_PowerUp 06-26 09:08:35.717: I/caladbolg(139): 1265788758 cald_hal_qct.c(2847) 2024 P [HAL] 1265788727 - Cald_Hal_Qct_If_PowerUp (0) 06-26 09:08:35.717: I/caladbolg(139): 1265793579 cald_camctrl.c(7557) 2024 P [SVR] 1265793579 - Cald_CamCtrl_FSM_Func_PowerUp (0) 06-26 09:08:35.717: I/caladbolg(139): 1265793671 cald_camctrl.c(6715) 2024 P [SVR] 1265793671 - Cald_CamCtrl_PowerUp (0) 06-26 09:08:35.727: I/WMSTS(121): pthread_mutex_lock() : wmsts_mutex 06-26 09:08:35.727: I/WMSTS(121): pthread_mutex_unlock() : wmsts_mutex 06-26 09:08:35.747: I/StagefrightPlayer(139): setDataSource('/system/media/audio/ui/camera_click.ogg') 06-26 09:08:35.747: D/DrmManager(Native)(123): DrmManager::openDecryptSession: no capable plug-in found 06-26 09:08:35.747: D/IDrmManagerService(Native)(123): NULL decryptHandle is returned 06-26 09:08:35.747: D/IDrmManagerService(Native)(139): no decryptHandle is generated in service side 06-26 09:08:35.757: I/StagefrightPlayer(139): setDataSource('/system/media/audio/ui/VideoRecord.ogg') 06-26 09:08:35.767: D/DrmManager(Native)(123): DrmManager::openDecryptSession: no capable plug-in found 06-26 09:08:35.767: D/IDrmManagerService(Native)(123): NULL decryptHandle is returned 06-26 09:08:35.767: D/IDrmManagerService(Native)(139): no decryptHandle is generated in service side 06-26 09:08:36.847: E/WMSTS(121): Month is invalid: 0 06-26 09:08:36.997: D/dalvikvm(269): GC_EXPLICIT freed 1544K, 36% free 7631K/11847K, external 5923K/7197K, paused 130ms 06-26 09:08:45.957: D/kernel(131): [ 1514.266204] mdp4_overlay_pipe_alloc: pipe=80740538 ndx=5 06-26 09:08:45.957: D/kernel(131): [ 1514.266235] mpd4_overlay_req2pipe: zorder=0 pipe_num=2 06-26 09:08:45.987: D/kernel(131): [ 1514.294281] mdp4_dtv_on: ID=0 1280x720 (110,40,220), (5,5,20) 74MHz 06-26 09:08:45.987: D/kernel(131): [ 1514.294311] mdp4_overlay_pipe_alloc: pipe=80740694 ndx=6 06-26 09:08:45.987: D/kernel(131): [ 1514.294342] mpd4_overlay_req2pipe: zorder=0 pipe_num=3 06-26 09:08:46.007: D/kernel(131): [ 1514.307952] msm_enqueue: queue event new max is 1 06-26 09:08:46.007: D/kernel(131): [ 1514.312561] msm_enqueue: queue control new max is 1 06-26 09:08:46.007: I/caladbolg(139):
Re: [android-developers] Google App Engine and Users API and android
Hi, Does this plugin work if the appengine portion is hosted on googleplex and not on appspot? I am able to use it successfully on appspot, but not on googleplex. I am logging in into the app using a google.com account only. Arun. On Wed, Jan 11, 2012 at 12:32 PM, Sriram Saroop sar...@google.com wrote: +devx-gpe-eng - any thing to add ? I don't think you can create a App Engine connected Android Google 3 project. However, GPE does work in a limited way in the Google3 environment. More info here: https://sites.google.com/a/google.com/google-web-toolkit/Home/gpe - Sriram On Tue, Jan 10, 2012 at 8:26 PM, Brad Abrams b...@google.com wrote: Sriram -- any suggestions here? ..brad On Mon, Jan 9, 2012 at 10:25 PM, Arun C G aru...@google.com wrote: Hi Brad, Xavier, I saw your video on the Appengine-Android eclipse plugin. It is precisely what we need for our project. Do you have any suggestions to convert the two projects generated by the plugin into google3 projects easily (better still if you/someone has actually done this)? Needless to say, if this conversion is difficult, one is put off from using this plugin. Thank you in advance, Arun. On Sun, Jan 8, 2012 at 9:48 PM, Kostya Vasilyev kmans...@gmail.comwrote: John, You may want to watch this: http://www.youtube.com/watch?v=M7SxNNC429U Google I/O 2011: Android + App Engine: A Developer's Dream Combination The video covers this plugin for Eclipse: http://code.google.com/eclipse/ ... which makes it very easy to create Andorid apps that talk to a GAE backend, complete with device-to-GAE authentication and C2DM. -- Kostya -- Sriram Saroop | Product Manager, Google | +91-9900065945 -- 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 how to convert multiple images in to single gif format..
Thanks Mag. On Monday, June 25, 2012 11:54:08 PM UTC+5:30, MagouyaWare wrote: I stand by my previous answer: This has nothing to do with Android. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sat, Jun 23, 2012 at 12:55 AM, RAJESH sdipo...@gmail.com wrote: Hi Mog , Is there any way to convert the images into the movie using FFMPEG in C ??? can you provide me a bit of code ? On Saturday, June 23, 2012 10:50:10 AM UTC+5:30, MagouyaWare wrote: Again, this has nothing to do with Android. There is nothing in the Android API for doing this, AFAIK... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware On Fri, Jun 22, 2012 at 11:15 PM, RAJESH sdipo...@gmail.com wrote: Hi Mag, we have this option in native codes On Friday, June 22, 2012 9:18:05 PM UTC+5:30, MagouyaWare wrote: This has nothing to do with Android Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/**m**agouyawarehttp://sites.google.com/site/magouyaware On Fri, Jun 22, 2012 at 6:55 AM, RAJESH sdipo...@gmail.com wrote: Hi all , Anyone here can advice me , How to convert the multiple images into the Single GIF format. ?? Thanks , Rajesh K . -- 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@**googlegroup **s.com android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscribe**@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 -- 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 -- 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: Android how to convert multiple images in to single gif format..
Android do not support gif , that is truth . If what you want is make images active , you may be able to use a frame animation to achieve it 在 2012年6月22日星期五UTC+8下午8时55分01秒,RAJESH写道: Hi all , Anyone here can advice me , How to convert the multiple images into the Single GIF format. ?? Thanks , Rajesh K . -- 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] Google Chart Tools not working in Android WebView
Hi All, I am trying to load google chart api in webView. But doesn't show graphical image. I also allowed internet permission in manifest. For your reference i mention the my code below ?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 TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hello / WebView android:id=@+id/embeddedwebview android:layout_width=wrap_content android:layout_height=wrap_content android:layout_gravity=center / /LinearLayout -- public class GoogleChartActivity extends Activity { WebView embeddedWebView; String jj = https://chart.googleapis.com/chart?chs=100x100chd=t:60,40cht=p3chl=Hello|World; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); embeddedWebView = (WebView)findViewById(R.id.embeddedwebview); embeddedWebView.loadUrl(jj); } } - ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.app.googleChat android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=15 / uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/ic_launcher android:label=@string/app_name activity android:name=.GoogleChartActivity android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest Is there anything I am missing in manifest or some kind of changes I have to make in webview. please 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
Re: [android-developers] How can I execute Javascript on already loaded webpage in Android Webview
On Tue, Jun 26, 2012 at 1:06 AM, VP ims.proje...@gmail.com wrote: I want to execute a javascript on already loaded webpage in Webview. loadUrl(javascript:...), where ... is your JavaScript source, just like a bookmarklet. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- 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] Phone getting crashed sometimes when using Euro2012 application
Their app and your device each have bugs, apparently. For technical support regarding the app, contact the app's authors. For technical support regarding your device, contact the device manufacturer, retailer, or carrier. On Tue, Jun 26, 2012 at 1:17 AM, Manoj manojkumar.m...@gmail.com wrote: Hi, When using the Euro2012 application, the phone freezes and restarts immediately... I got the following information from the logs: EURO 2012 - UALib AndroidManifest.xml missing required receiver: com.urbanairship.iap.marketinterface.BillingReceiver EURO 2012 - UALib AndroidManifest.xml missing required service: com.urbanairship.iap.marketinterface.BillingService and also CPU usage from 7382ms to 0ms ago: 98% 1260/com.imano.euro2012.orange: 98% user + 0% kernel / faults: 15 minor 1.2% 298/system_server: 0.9% user + 0.2% kernel / faults: 3379 minor 0% 130/rild: 0% user + 0% kernel / faults: 118 minor 100% TOTAL: 99% user + 0.2% kernel CPU usage from 476ms to 987ms later: 78% 1260/com.imano.euro2012.orange: 78% user + 0% kernel 78% 1273/Thread-161: 78% user + 0% kernel 1.9% 298/system_server: 0% user + 1.9% kernel / faults: 2 minor 1.9% 320/ActivityManager: 0% user + 1.9% kernel 100% TOTAL: 98% user + 1.9% kernel Could some one suggest what might be the 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- 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: Permissions for System Apps (not in /data/system/packages.xml?)
As Dianne already guessed, my intentions are semi-misguided. I am a researcher in the field of mobile malware, which is why I asked (and nope, this ain't my real name ;) ). Just to be sure I wanted some confirmation for my guesses. If all goes well, the result of my current work will be some change proposals for future Android releases. Something in between the current state and SEAndroid - but less intrusive to the existing code base and the user experience as compared to SEAndroid. The primary objective is some hardening of the Android platform against malware which is capable of acquiring root privileges. Still, this is going to take a while and the results are still not 100% certain. Anyways, thanks a mountain for clearing things up for 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] SQLite does not write inserts but does not raise error neither
Hi there, I have a function to write scores in an SQL database table. Here is the code: public void setScores(int scores[]) { int len = (scores.length 10) ? 10 : scores.length; SQLiteDatabase db = this.getWritableDatabase(); db.beginTransaction(); db.delete(scores, null, null); ContentValues values = new ContentValues(); int score = 0; for (int i=0; ilen; i++) { score = scores[i]; values.put(score, score); db.insert(scores, null, values); } db.setTransactionSuccessful(); db.endTransaction(); db.close(); } I have checked with Eclipse debugger that scores[] array does actually carries the scores when the function is called and even values different from 0 are assigned on values.put(score, score), but when loading the table later they are not there. O_o This is the function call that creates that table: db.execSQL(CREATE TABLE scores (score UNSIGNED INTEGER)); It is called only when the database does not exists within the onCreate event on an SQLiteOpenHelper derived class, so it should be created when the inserts are performed. I do not get any error from SQLite when doing the transaction, so I am really lost with this. I have other tables and I perform other inserts and transactions on the same database and those works fine. May be there is something wrong with my code that I have not noticed yet. It is my first attempt to use an SQLite database within an Android app. Thanks a lot 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] Creating the seat selection layout in a movie theater
Hi, Can some one give me some idea on how to create a seat selection layout in a movie theater? Regards, Murali -- 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] Package Manager API clarification required.....
Hi, I am using PackageManager API to disable some component. ComponentName name = new ComponentName(context, className); className == the class object of the class i wanted to disable. This class is my Home category with higher priority than Homescreen app. Now while disabling the class i wanted to give flag PackageManager.DONT_KILL_APP because i do not want all the activities running in that package to die immediately. pm.setComponentEnabledSetting(name, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP); Now if i upgrade my phone with BOTA package placed in SD card and when my phone boots up, i see that my componet(className) got enabled and my class is recieving the Home Intent instead of the actual HomeScreen app. All my settings and userdata is still persisting. Why the component gets enabled after upgrade ??? I think its not the behaviour that is expected. The component should still be disabled. Thanks, Sudeep -- 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: SQLite does not write inserts but does not raise error neither
I answer to myself: there seems that there is nothing wrong with the function itself, but with some other code inherited from previous version where a file was used to store scores, that cleans the array and it is saved in the database through other function used to import old data from files to the DB. I have solved it yet. Best regards, On 26/06/12 13:16, Francisco M. Marzoa Alonso wrote: Hi there, I have a function to write scores in an SQL database table. Here is the code: public void setScores(int scores[]) { int len = (scores.length 10) ? 10 : scores.length; SQLiteDatabase db = this.getWritableDatabase(); db.beginTransaction(); db.delete(scores, null, null); ContentValues values = new ContentValues(); int score = 0; for (int i=0; ilen; i++) { score = scores[i]; values.put(score, score); db.insert(scores, null, values); } db.setTransactionSuccessful(); db.endTransaction(); db.close(); } I have checked with Eclipse debugger that scores[] array does actually carries the scores when the function is called and even values different from 0 are assigned on values.put(score, score), but when loading the table later they are not there. O_o This is the function call that creates that table: db.execSQL(CREATE TABLE scores (score UNSIGNED INTEGER)); It is called only when the database does not exists within the onCreate event on an SQLiteOpenHelper derived class, so it should be created when the inserts are performed. I do not get any error from SQLite when doing the transaction, so I am really lost with this. I have other tables and I perform other inserts and transactions on the same database and those works fine. May be there is something wrong with my code that I have not noticed yet. It is my first attempt to use an SQLite database within an Android app. Thanks a lot 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] detect if an app is launched
Hi all, I want to know if it is possible to detect an application launch, through its package name. Suppose, I have created a test app, in which I want to get some information about a specific app, For eg. Contact app of the devicelike how many times it has opened or closed, in a specific amount of time. I want to store the information (say, in database) when that app has just been launched (of course, on the same instant). I want all that by providing package name of that application. Is all what I want possible? If yes, how to do that? I guess, I need to use BroadcastReceiver for this. What do you say? Thanks n Regards, NSR -- 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] Create an application which consists of another application
Hi folks could anyone tell me the way to store the downloaded application from google play in my application -- ThanksRegards *Sandeep MNVVB* * * -- 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] startForeground icon not showing on Galaxy Nexus
Seeing a weird issue on my Galaxy Nexus with official 4.0.4 I have a service that uses startForeground to keep the process in memory, and, as required by the API, supplies a notification with an icon. Occasionally (about one every 5-10 calls to startForeground), the service's notification icon disappears after a few seconds. After this happens, the service is visible in adb dumpsys activity service, is marked as foreground, and has a notification object. But the status bar icon won't show. * ServiceRecord{42471db0 org.kman.AquaMail/.core.KeepAliveService} intent={cmp=org.kman.AquaMail/.core.KeepAliveService} packageName=org.kman.AquaMail processName=org.kman.AquaMail baseDir=/data/app/org.kman.AquaMail-1.apk dataDir=/data/data/org.kman.AquaMail app=ProcessRecord{41b085b0 30590:org.kman.AquaMail/10065} *isForeground=true foregroundId=268435457 foregroundNoti=Notification(contentView=org.kman.AquaMail/0x1090098 vibrate=null,sound=null,defaults=0x0,flags=0x62)* createTime=-44s849ms lastActivity=-37s300ms executingStart=-37s300ms restartTime=-44s850ms startRequested=true stopIfKilled=false callStart=true lastStartId=5 Subsequent calls to startForeground from the same service, same notification id, bring the icon back. Tried playing with notification id (using a small value), changing the icon, supplying a ticker or no ticker, using Notification.Builder from API 11 -- no effect. I am unable to reproduce the issue on an HTC Incredible S with 2.3. Has anyone else seen this? -- K -- 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] detect if an app is launched
Hi, Some guys was talking yesterday or the day before about getting CPU usage of running processes on a question about how to control battery use by apps that cannot be done directly. Make some search on the forum, I think it may be useful for you. Best regards, On 26/06/12 14:04, Narendra Singh Rathore wrote: Hi all, I want to know if it is possible to detect an application launch, through its package name. Suppose, I have created a test app, in which I want to get some information about a specific app, For eg. Contact app of the devicelike how many times it has opened or closed, in a specific amount of time. I want to store the information (say, in database) when that app has just been launched (of course, on the same instant). I want all that by providing package name of that application. Is all what I want possible? If yes, how to do that? I guess, I need to use BroadcastReceiver for this. What do you say? Thanks n Regards, NSR -- 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] NFC game
Hi Android developers, i m working on NFC hunter game on android, can any one tel me What kind of nfc tag is used in android how i should deploy in android. Brief description about that and if possible any samples for it.. Thank u -- 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]
Hi all, How to resolve the java.lang.OutOfMemoryError while calling BitmapFactory.decodeStream(stream). Thanks, vijay.k -- 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] detect if an app is launched
I guess, I need to use BroadcastReceiver for this. What do you say? I would say that there isn't a broadcast event for when apps are launched (that aren't your app), however you can kind of fake the behavior by doing what Francisco says and polling the logs. 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
Re: [android-developers] detect if an app is launched
Hi, I have found the link, published by Nobu the day before yesterday: http://www.javachartingandroid.com/2011/04/android-get-application-process-cpu-usage-and-memory-usage/ Best regards, On 26/06/12 14:04, Narendra Singh Rathore wrote: Hi all, I want to know if it is possible to detect an application launch, through its package name. Suppose, I have created a test app, in which I want to get some information about a specific app, For eg. Contact app of the devicelike how many times it has opened or closed, in a specific amount of time. I want to store the information (say, in database) when that app has just been launched (of course, on the same instant). I want all that by providing package name of that application. Is all what I want possible? If yes, how to do that? I guess, I need to use BroadcastReceiver for this. What do you say? Thanks n Regards, NSR -- 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] Database
Suggest me differences between remote and local data base -- 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 how to convert multiple images in to single gif format..
Thanks or your reply. On Tuesday, June 26, 2012 3:15:13 PM UTC+5:30, CuGBabyBeaR wrote: Android do not support gif , that is truth . If what you want is make images active , you may be able to use a frame animation to achieve it 在 2012年6月22日星期五UTC+8下午8时55分01秒,RAJESH写道: Hi all , Anyone here can advice me , How to convert the multiple images into the Single GIF format. ?? Thanks , Rajesh K . -- 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] Database
Suggest me differences between remote and local data base Well... a local database is available locally on the device. A remote database is not... it is, well, remote. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 7:14 AM, sri kanth sritullimi...@gmail.com wrote: Suggest me differences between remote and local data base -- 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]
Use this version of the method: http://developer.android.com/reference/android/graphics/BitmapFactory.html#decodeStream%28java.io.InputStream,%20android.graphics.Rect,%20android.graphics.BitmapFactory.Options%29 Pass in a BitmapFactory.Options that has an inSampleSize 1: http://developer.android.com/reference/android/graphics/BitmapFactory.Options.html#inSampleSize Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 6:54 AM, Vijay Krishnan vijay.vijay...@gmail.comwrote: Hi all, How to resolve the java.lang.OutOfMemoryError while calling BitmapFactory.decodeStream(stream). Thanks, vijay.k -- 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] NFC game
http://lmgtfy.com/?q=android+nfc+tutorial Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 6:53 AM, iconapp 2010 iconapp2...@gmail.com wrote: Hi Android developers, i m working on NFC hunter game on android, can any one tel me What kind of nfc tag is used in android how i should deploy in android. Brief description about that and if possible any samples for it.. Thank u -- 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] Create an application which consists of another application
What? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 6:12 AM, Sandeep Venkat sand...@believecreative.inwrote: Hi folks could anyone tell me the way to store the downloaded application from google play in my application -- ThanksRegards *Sandeep MNVVB* * * -- 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] Package Manager API clarification required.....
My guess, though I very well may be wrong, is that it is because the enabled/disabled state in the manifest file of the upgrade app overwrites the enabled/disabled state of the component. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 5:38 AM, Sudeep Sharma sudeep.andr...@gmail.comwrote: Hi, I am using PackageManager API to disable some component. ComponentName name = new ComponentName(context, className); className == the class object of the class i wanted to disable. This class is my Home category with higher priority than Homescreen app. Now while disabling the class i wanted to give flag PackageManager.DONT_KILL_APP because i do not want all the activities running in that package to die immediately. pm.setComponentEnabledSetting(name, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP); Now if i upgrade my phone with BOTA package placed in SD card and when my phone boots up, i see that my componet(className) got enabled and my class is recieving the Home Intent instead of the actual HomeScreen app. All my settings and userdata is still persisting. Why the component gets enabled after upgrade ??? I think its not the behaviour that is expected. The component should still be disabled. Thanks, Sudeep -- 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] Create an application which consists of another application
This topic has come up before, typically in the context of a stumbleupon like service for apps., the answer is basically that you can't. kris On Tue, Jun 26, 2012 at 8:12 AM, Sandeep Venkat sand...@believecreative.in wrote: Hi folks could anyone tell me the way to store the downloaded application from google play in my application -- ThanksRegards Sandeep MNVVB -- 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] Creating the seat selection layout in a movie theater
GridLayout, RelativeLayout, TableLayout, nested LinearLayouts... You have many options. Choose the one that fits your needs best. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 5:33 AM, Reddy devireddy@gmail.com wrote: Hi, Can some one give me some idea on how to create a seat selection layout in a movie theater? Regards, Murali -- 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]
Greetings, I have had a lot of those. You can reduce the sampling as told by Justin, and also use less bits per pixel: default is ARGB_, but you have also ARGB_ and ARGB_565. You should now anyway that use of ARGB_ is discouraged because it may generate a really bad quality output in some cases. I was using it to save memory but I have found that several images, specially those that includes gradients, looks really ugly in that mode. Anyway the BEST way to solve this is to make a more rational use of the available memory. I used to load ALL my application bitmaps into static members of a class at app loading, so they were available for the rest of the session. It was not a problem on my first app version, but the app grew and I started to have OutOfMemoryError exceptions in some devices. So what I do now is freeing those bitmaps that I do not need for a while, and load those needed by demand. For example, if you have a game with a main menu and a Play button, there is no reason to: a) Load game bitmaps before the user touches Play button. b) Keep main menu bitmaps in memory after the user touches Play button. So my advice is to review your code and try to load/recycle bitmaps as needed in each different application screen or state. Best regards, On 26/06/12 14:54, Vijay Krishnan wrote: Hi all, How to resolve the java.lang.OutOfMemoryError while calling BitmapFactory.decodeStream(stream). Thanks, vijay.k -- 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] Problems with ListView scroll.
Are you doing anything funky like programatically setting a selected item in the listview? What does your code look like? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 2:00 AM, Put_tiMe putt...@gmail.com wrote: I have a ListView, and a custom adapter. I have setup listeners for click, and long-click. The problem:: I can scroll, but the moment I take my finger off the screen, it scrolls back to the top of the list view. How can I fix this 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 -- 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] Dynamic Table layout
What does your code/xml look like? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 1:08 AM, Rahul Vijay rahul.vija...@gmail.comwrote: In a last message, I have display a table in a dynamic way. table header like Name, score and time and table row are Ram ,5, 2:15 and again print a another row in similar way. Yes it is display in a emulator. But it can not display in a device. I check it data can show logcat when I run application in a device using a system.out.println. it show a data. But it cannot show a table in a device. Also show a xml data in a textview. No problem in a xml. whats problem, I can never understand. -- 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]
this error occurs when i read the stream for the second time On Tue, Jun 26, 2012 at 8:15 PM, Francisco M. Marzoa Alonso fmmar...@gmail.com wrote: Greetings, I have had a lot of those. You can reduce the sampling as told by Justin, and also use less bits per pixel: default is ARGB_, but you have also ARGB_ and ARGB_565. You should now anyway that use of ARGB_ is discouraged because it may generate a really bad quality output in some cases. I was using it to save memory but I have found that several images, specially those that includes gradients, looks really ugly in that mode. Anyway the BEST way to solve this is to make a more rational use of the available memory. I used to load ALL my application bitmaps into static members of a class at app loading, so they were available for the rest of the session. It was not a problem on my first app version, but the app grew and I started to have OutOfMemoryError exceptions in some devices. So what I do now is freeing those bitmaps that I do not need for a while, and load those needed by demand. For example, if you have a game with a main menu and a Play button, there is no reason to: a) Load game bitmaps before the user touches Play button. b) Keep main menu bitmaps in memory after the user touches Play button. So my advice is to review your code and try to load/recycle bitmaps as needed in each different application screen or state. Best regards, On 26/06/12 14:54, Vijay Krishnan wrote: Hi all, How to resolve the java.lang.OutOfMemoryError while calling BitmapFactory.decodeStream(stream). Thanks, vijay.k -- 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] Package Manager API clarification required.....
Thanks for the reply From the docs : public static final int COMPONENT_ENABLED_STATE_DISABLED Since: API Level 1 Flag for setApplicationEnabledSetting(String, int, int) and setComponentEnabledSetting(ComponentName, int, int): This component or application has been explicitly disabled, regardless of what it has specified in its manifest. Constant Value: 2 (0x0002) There is no state mentioned in manifest for the upgraded component, it should be in Disabled state until user enables it or Factory reset of phone is done. Please can anybody help to understand why component got enabled after BOTA upgrade. Is it a bug in android framework ?? or I am missing something here? On 6/26/12, Justin Anderson magouyaw...@gmail.com wrote: My guess, though I very well may be wrong, is that it is because the enabled/disabled state in the manifest file of the upgrade app overwrites the enabled/disabled state of the component. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 5:38 AM, Sudeep Sharma sudeep.andr...@gmail.comwrote: Hi, I am using PackageManager API to disable some component. ComponentName name = new ComponentName(context, className); className == the class object of the class i wanted to disable. This class is my Home category with higher priority than Homescreen app. Now while disabling the class i wanted to give flag PackageManager.DONT_KILL_APP because i do not want all the activities running in that package to die immediately. pm.setComponentEnabledSetting(name, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP); Now if i upgrade my phone with BOTA package placed in SD card and when my phone boots up, i see that my componet(className) got enabled and my class is recieving the Home Intent instead of the actual HomeScreen app. All my settings and userdata is still persisting. Why the component gets enabled after upgrade ??? I think its not the behaviour that is expected. The component should still be disabled. Thanks, Sudeep -- 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 -- 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] NFC game
thanks above links helpful for me On Tue, Jun 26, 2012 at 7:30 PM, Justin Anderson magouyaw...@gmail.comwrote: http://lmgtfy.com/?q=android+nfc+tutorial Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 6:53 AM, iconapp 2010 iconapp2...@gmail.comwrote: Hi Android developers, i m working on NFC hunter game on android, can any one tel me What kind of nfc tag is used in android how i should deploy in android. Brief description about that and if possible any samples for it.. Thank u -- 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 -- 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] Can I make different paths become an object?
Inside the onDraw method I have several paths that draw a shape... You are using several paths to draw a single shape? what I want to know is how can I select the image that the different paths create and move it around the screen. You would need to determine if the user touched inside one of your paths, and if so, translate all your paths by the difference in x and y coordinates from the first touched point (this is assuming that you are wanting to move the shape dynamically based on touch events from the user). Unfortunately, there is no easy way to determine if a point is inside a path... I googled this and got several good pages with many methods of calculating this: http://lmgtfy.com/?q=android+determine+if+point+is+inside+Path Is there a way to combining all those path to a single object that I can work with? I don't really understand why you are using multiple paths to create your shape... Why can't you do it with a single path object? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Jun 22, 2012 at 8:31 PM, 0gravity 0gravity...@gmail.com wrote: I have class that extends SurfaceView. Inside the onDraw method I have several paths that draw a shape...what I want to know is how can I select the image that the different paths create and move it around the screen. Is there a way to combining all those path to a single object that I can work with? Here is part of my onDraw method: Path theSymbol = new Path(); theSymbol.moveTo(0.0F, 0.0F); theSymbol.lineTo(0.0F, 50.0F); theSymbol.lineTo(16.66F, 58.32F); theSymbol.lineTo(-16.66F, 75.0F); theSymbol.lineTo(16.66F, 91.64F); theSymbol.lineTo(-16.66F, 108.3F); theSymbol.lineTo(16.66F, 124.9F); theSymbol.lineTo(-16.66F, 141.6F); theSymbol.lineTo(0.0F, 150.0F); theSymbol.lineTo(0.0F, 200.0F); theSymbol.offset(100F, 20.0F); canvas.drawPath(theSymbol, paint); I would really appreciate if someone can point me in the right direction...as I have been searching for weeks and I can't find a concrete method to do this. Thanks in advance, 0gravity. -- 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] NFC game
I'm glad they were helpful... The point of that link was to illustrate that you didn't need to post this question on this list. I was able to point you in the right direction with a simple Google search... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 9:14 AM, Parthi K parthisof...@gmail.com wrote: thanks above links helpful for me On Tue, Jun 26, 2012 at 7:30 PM, Justin Anderson magouyaw...@gmail.comwrote: http://lmgtfy.com/?q=android+nfc+tutorial Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 6:53 AM, iconapp 2010 iconapp2...@gmail.comwrote: Hi Android developers, i m working on NFC hunter game on android, can any one tel me What kind of nfc tag is used in android how i should deploy in android. Brief description about that and if possible any samples for it.. Thank u -- 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 -- 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]
You need to call the recycle method on the previously decoded Bitmap. On Tuesday, June 26, 2012 9:52:04 AM UTC-5, Vijay Krishnan wrote: this error occurs when i read the stream for the second time On Tue, Jun 26, 2012 at 8:15 PM, Francisco M. Marzoa Alonso fmmar...@gmail.com wrote: Greetings, I have had a lot of those. You can reduce the sampling as told by Justin, and also use less bits per pixel: default is ARGB_, but you have also ARGB_ and ARGB_565. You should now anyway that use of ARGB_ is discouraged because it may generate a really bad quality output in some cases. I was using it to save memory but I have found that several images, specially those that includes gradients, looks really ugly in that mode. Anyway the BEST way to solve this is to make a more rational use of the available memory. I used to load ALL my application bitmaps into static members of a class at app loading, so they were available for the rest of the session. It was not a problem on my first app version, but the app grew and I started to have OutOfMemoryError exceptions in some devices. So what I do now is freeing those bitmaps that I do not need for a while, and load those needed by demand. For example, if you have a game with a main menu and a Play button, there is no reason to: a) Load game bitmaps before the user touches Play button. b) Keep main menu bitmaps in memory after the user touches Play button. So my advice is to review your code and try to load/recycle bitmaps as needed in each different application screen or state. Best regards, On 26/06/12 14:54, Vijay Krishnan wrote: Hi all, How to resolve the java.lang.OutOfMemoryError while calling BitmapFactory.decodeStream(stream). Thanks, vijay.k -- 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] How to receive files via Bluetooth?
sounds like you need to build a bluetooth server similar to IP based servers are created with one listener able to receive and process the incoming files from any BT clients. On Mon, Jun 25, 2012 at 11:09 PM, Rahul Radhakrishnanunnithan K rahu...@whiteovaltechnologies.com wrote: please refer the sdk example Bluetooth chat ,i think that example is partially suit for your question On Mon, Jun 25, 2012 at 5:13 PM, Giuseppe porcelli.giuse...@gmail.comwrote: In my app, I would like to add the function to receive files directly into it via Bluetooth. I know that I can use the Chat sample to connect to instance of my app on two devices via Bluetooth, but what I am looking for is to make possible to receive the files from any devices and without to have my app installed on the sender side. Any suggestion? 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 -- 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] Package Manager API clarification required.....
Flag for setApplicationEnabledSetting(String, int, int) and setComponentEnabledSetting(ComponentName, int, int): This component or application has been explicitly disabled, regardless of what it has specified in its manifest. Constant Value: 2 (0x0002) FWIW this does not say anything about the behavior of setting this flag and then upgrading... When I read this I took it to mean that it will override the value of the manifest file of an already installed app. There is no state mentioned in manifest for the upgraded component, it should be in Disabled state until user enables it or Factory reset of phone is done. Why? I didn't read it that way. I agree that it is not well-defined, but the docs do not say that this should be the case. Please can anybody help to understand why component got enabled after BOTA upgrade. Is it a bug in android framework ?? or I am missing something here? It might be a bug... But based on how I read the docs it wouldn't be. Based on how you interpreted them, it would be a bug. I'm not saying your wrong (you very well may be right). I'm just saying that I interpreted the docs differently... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 9:05 AM, Sudeep Sharma sudeep.andr...@gmail.comwrote: Flag for setApplicationEnabledSetting(String, int, int) and setComponentEnabledSetting(ComponentName, int, int): This component or application has been explicitly disabled, regardless of what it has specified in its manifest. Constant Value: 2 (0x0002) -- 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 Camera Intent doesn't return control to the application
This is pretty much identical to the other question you asked (which I just answered)... Please don't spawn multiple threads for the same question... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Jun 25, 2012 at 8:42 PM, frizzo rg...@vbrad.com wrote: In my app, I kick off the following: Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(cameraIntent, CAMERA_REQUEST); And sure enough, the camera activity starts: https://lh6.googleusercontent.com/-AKg4Tc6JSeM/T-kgD0jN5tI/ACE/3-T71xf6T6M/s1600/photo1.JPG I press the button on the left, the flash goes off and the picture is taken. The Take Photo button turns into an OK button, like below: https://lh5.googleusercontent.com/-X3iPT5UoOP8/T-kgti05wBI/ACM/VtC3tkprPT8/s1600/photo2.JPG I try to press the OK button, but nothing happens. I can press it a 100 times and still nothing happens. If I press the Cancel button, the control does return back to the application. Can someone tell me why control does not return to the application? Facts. 1. This is a Nexus One running 2.3.6. 2. This works perfectly fine in the emulator. 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 -- 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: leaked window again
Mahmoud, I'd be interested in pursuing this, if you are still having the problem. Would you: - Post the code for the anonymous onClick handler, in which the exception is being thrown? - Post the entire exception that is the problem Thanks, G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do On Monday, June 25, 2012 9:19:41 AM UTC-7, Mahmoud Emam wrote: 06-25 15:03:02.596: E/WindowManager(29217): at com.android.grad.PreviewActivity$1.onClick(PreviewActivity.java:36) 06-25 15:03:02.596: E/WindowManager(29217): at android.view.View.performClick(View.java:3527) 06-25 15:03:02.596: E/WindowManager(29217): at android.view.View$PerformClick.run(View.java:14234) 06-25 15:03:02.596: E/WindowManager(29217): at android.os.Handler.handleCallback(Handler.java:605) 06-25 15:03:02.596: E/WindowManager(29217): at android.os.Handler.dispatchMessage(Handler.java:92) 06-25 15:03:02.596: E/WindowManager(29217): at android.os.Looper.loop(Looper.java:137) 06-25 15:03:02.596: E/WindowManager(29217): at android.app.ActivityThread.main(ActivityThread.java:4441) 06-25 15:03:02.596: E/WindowManager(29217): at java.lang.reflect.Method.invokeNative(Native Method) 06-25 15:03:02.596: E/WindowManager(29217): at java.lang.reflect.Method.invoke(Method.java:511) 06-25 15:03:02.596: E/WindowManager(29217): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 06-25 15:03:02.596: E/WindowManager(29217): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 06-25 15:03:02.596: E/WindowManager(29217): at dalvik.system.NativeStart.main(Native Method) 06-25 15:03:04.186: I/Process(29217): Sending signal. PID: 29217 SIG: 9 06-25 15:03:04.566: D/TextLayoutCache(29339): Using debug level: 0 - Debug Enabled: 0 06-25 15:03:04.606: D/libEGL(29339): loaded /system/lib/egl/libGLES_android.so 06-25 15:03:04.606: D/libEGL(29339): loaded /system/lib/egl/libEGL_adreno200.so 06-25 15:03:04.636: D/libEGL(29339): loaded /system/lib/egl/libGLESv1_CM_adreno200.so 06-25 15:03:04.636: D/dalvikvm(29339): GC_CONCURRENT freed 117K, 3% free 9125K/9351K, paused 4ms+17ms 06-25 15:03:04.636: D/libEGL(29339): loaded /system/lib/egl/libGLESv2_adreno200.so 06-25 15:03:04.706: D/OpenGLRenderer(29339): Enabling debug mode 0 06-25 15:03:07.326: D/OpenGLRenderer(29339): Flushing caches (mode 0) 06-25 15:03:07.326: W/IInputConnectionWrapper(29339): showStatusIcon on inactive InputConnection 06-25 15:03:07.366: D/OpenGLRenderer(29339): Flushing caches (mode 1) I know that this error asked before and i saw the solutions for that but the solutions don't work with me. and this is my code. The error appear on pd.show(). @Override protected void onPreExecute() { //network.loadData(); file = new File( Environment .getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES), MyCameraApp + File.separator + project); createProgressDialog(); pd.show(); } @Override protected Boolean doInBackground(String... params) { try { crop = new Crop(params[0]); crop.cropID(); croppedID = crop.getId(); publishProgress(2); } catch (IOException e) { } segmentNumbers(); return true; } @Override protected void onProgressUpdate(Integer... values) { pd.incrementProgressBy(values[0]); } @Override protected void onPostExecute(Boolean result) { pd.dismiss(); Toast.makeText(activity, Processing Done, Toast.LENGTH_LONG).show(); } private void createProgressDialog() { pd = new ProgressDialog(activity); pd.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); pd.setTitle(Extract ID); pd.setMessage(Processing...); pd.setIcon(R.drawable.ic_launcher); pd.setProgress(0); pd.setCancelable(false); } onpreExecution method :- i am showing my dialog. doInBackGround method :- I execute my segmentNumber() which used to segement picture. onPostExecution method :- I am dismissing my dialog. -- 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] Package Manager API clarification required.....
On Tuesday, June 26, 2012 10:40:28 AM UTC-5, MagouyaWare wrote: There is no state mentioned in manifest for the upgraded component, it should be in Disabled state until user enables it or Factory reset of phone is done. Why? I didn't read it that way. I agree that it is not well-defined, but the docs do not say that this should be the case. I would suspect that upgrading doesn't retain your runtime setting because it resets back to the manifest value, or in your case the DEFAULT value since you don't have it defined in your manifest. http://developer.android.com/guide/topics/manifest/application-element.html http://developer.android.com/guide/topics/manifest/activity-element.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] Customized Soft keyboard
Hello Friends, For my Android tablet application I'm looking a customize keyboard, customize in the sense I have many list view in my application and to filter data in list I need keyboard with just 26 letter and 9 number,(list will only have character or numbers) I see many post where people are trying to develop entire keyboard, however I'm looking for some solution where I can control keys of existing keyboard. I do not wants to enter in complexity of handling input methods or writing some thing complex. I see that in numeric keyboard it's possible to give keys which we wants to show, is there any similar solution where I can just give list of keys I wants to show, appreciate any 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
Re: [android-developers] Customized Soft keyboard
On Tue, Jun 26, 2012 at 12:21 PM, Harish hkacho...@gmail.com wrote: I see many post where people are trying to develop entire keyboard, however I'm looking for some solution where I can control keys of existing keyboard. That is not possible. I see that in numeric keyboard it's possible to give keys which we wants to show No, you do not. You supply a *request* of a *general category* of what you want the input method editor to offer in the way of keys. It is up to the IME to honor or ignore your request, as decided by the IME's developer. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- 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: the Android layout blues
If the parent container for both the button and list view is a linear layout, you should be able to set the list view's layout_height=0dpi and layout_weight=1 G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do On Friday, June 22, 2012 2:07:41 PM UTC-7, bob wrote: Am I the only one who is continuously baffled by Android layouts? Can someone help me with this layout problem I'm struggling with? Basically, I have a ListView that's on top of a button. The button's height should be wrap_content. The ListView height should be whatever's left. Anyone know how to do this? 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
Re: [android-developers] Customized Soft keyboard
bad luck, I need solution I can write keyboard but I know it is not easy to make it stable and that will kill my time, any other solution ? any idea how ime handles different input type, I mean when we give input type to number number key board appears and when I give input type to email keyboard popup with having @ key. is there any way I can add custom input type ? On Tue, Jun 26, 2012 at 9:54 PM, Mark Murphy mmur...@commonsware.comwrote: On Tue, Jun 26, 2012 at 12:21 PM, Harish hkacho...@gmail.com wrote: I see many post where people are trying to develop entire keyboard, however I'm looking for some solution where I can control keys of existing keyboard. That is not possible. I see that in numeric keyboard it's possible to give keys which we wants to show No, you do not. You supply a *request* of a *general category* of what you want the input method editor to offer in the way of keys. It is up to the IME to honor or ignore your request, as decided by the IME's developer. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- 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] Customized Soft keyboard
On Tue, Jun 26, 2012 at 1:03 PM, Harish Kachoria hkacho...@gmail.com wrote: bad luck, I need solution I can write keyboard but I know it is not easy to make it stable and that will kill my time, any other solution ? Embed a bunch of buttons in your activity or fragment by some means. any idea how ime handles different input type, I mean when we give input type to number number key board appears and when I give input type to email keyboard popup with having @ key. is there any way I can add custom input type ? That is not possible, except by writing your own IME and then convincing users to use your IME. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- 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
R: [android-developers] How to receive files via Bluetooth?
Thank you Da: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] Per conto di mike digioia Inviato: martedì 26 giugno 2012 17:36 A: android-developers@googlegroups.com Oggetto: Re: [android-developers] How to receive files via Bluetooth? sounds like you need to build a bluetooth server similar to IP based servers are created with one listener able to receive and process the incoming files from any BT clients. On Mon, Jun 25, 2012 at 11:09 PM, Rahul Radhakrishnanunnithan K rahu...@whiteovaltechnologies.com wrote: please refer the sdk example Bluetooth chat ,i think that example is partially suit for your question On Mon, Jun 25, 2012 at 5:13 PM, Giuseppe porcelli.giuse...@gmail.com wrote: In my app, I would like to add the function to receive files directly into it via Bluetooth. I know that I can use the Chat sample to connect to instance of my app on two devices via Bluetooth, but what I am looking for is to make possible to receive the files from any devices and without to have my app installed on the sender side. Any suggestion? 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 mailto:android-developers%2bunsubscr...@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 mailto:android-developers%2bunsubscr...@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 -- 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] listenUsingInsecureRfcommWithServiceRecord
Can someone help me understand why this feature did not show up until API Level 10? public BluetoothServerSocket listenUsingInsecureRfcommWithServiceRecord (String name, UUID uuid) Is this making use of some new feature that is not widely supported? I'm trying to program a desktop to talk to an Android device that's calling this function, and it's not going well. -- 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] Distributing Multiple APKs for Medical App
I am designing an app the is a intended to be a regulated medical device. The architecture we have setup is: 1) An .apk that contains the regulated software and 2) A second .apk that is not regulated (contains a more complex UI). Ideally we would like to be able to distribute these two apps together, but for testing/quality purposes we need them to be separate binaries. Does anyone have suggestions on how we can couple these two apps to distribute them together? Is there a way to bundle two .apks together and have them distributed together on Play? Is there a way to do this outside of the Play? Any input is helpful. 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: startForeground icon not showing on Galaxy Nexus
Are you changing the state of a component sometimes ? If so, probably this: http://code.google.com/p/android/issues/detail?id=21635 Pent -- 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: startForeground icon not showing on Galaxy Nexus
2012/6/26 Pent supp...@apps.dinglisch.net Are you changing the state of a component sometimes ? Yes, of a different component. If so, probably this: Looks like that's it. Thanks. -- K http://code.google.com/p/android/issues/detail?id=21635 Pent -- 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] Distributing Multiple APKs for Medical App
On Tue, Jun 26, 2012 at 1:27 PM, miwrig...@gmail.com miwrig...@gmail.com wrote: I am designing an app the is a intended to be a regulated medical device. The architecture we have setup is: 1) An .apk that contains the regulated software and 2) A second .apk that is not regulated (contains a more complex UI). Ideally we would like to be able to distribute these two apps together, but for testing/quality purposes we need them to be separate binaries. Does anyone have suggestions on how we can couple these two apps to distribute them together? There is nothing stopping you from packaging an APK in another app's assets/, copying it to external storage, then launching the install process. However, you can't get rid of the copy in assets/, meaning that you take up more space on the device. And I forget all the rules about whether you can update the inner APK via the Play Store or if you will then have to do this yourself. Is there a way to bundle two .apks together and have them distributed together on Play? There is nothing specific about the Play Store that supports your model. Is there a way to do this outside of the Play? See above. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- 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: Distributing Multiple APKs for Medical App
Thanks Mark! This method would require install from unknown sources? On Tuesday, June 26, 2012 10:27:21 AM UTC-7, miwr...@gmail.com wrote: I am designing an app the is a intended to be a regulated medical device. The architecture we have setup is: 1) An .apk that contains the regulated software and 2) A second .apk that is not regulated (contains a more complex UI). Ideally we would like to be able to distribute these two apps together, but for testing/quality purposes we need them to be separate binaries. Does anyone have suggestions on how we can couple these two apps to distribute them together? Is there a way to bundle two .apks together and have them distributed together on Play? Is there a way to do this outside of the Play? Any input is helpful. 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
Re: [android-developers] How can I execute Javascript on already loaded webpage in Android Webview
Hi Kristopher, I want to execute javascript after their page is loaded. I want to extract the relevant content and images from the pages just like Readabilityhttp://www.readability.com/bookmarklet does on the browser. How could I execute javascript in that case? Thanks, On Mon, Jun 25, 2012 at 10:47 PM, Kristopher Micinski krismicin...@gmail.com wrote: What do you mean? It's their page, why should you execute *your* javascript code? I would assume the only thing you could do is to add your Javascript code into their page after you download it or something... You can add a javascript *interface* to your code, and you can execute your app's java code after the page is loaded, but it doesn't really make sense to execute your javascript code after *their* page is loaded.. (at least, not the way you've described it..) kris On Tue, Jun 26, 2012 at 1:06 AM, VP ims.proje...@gmail.com wrote: Hi, I want to execute a javascript on already loaded webpage in Webview. I am loading a new article webpage eg: www.techcrunch,com in webview. I want to run javascript on this already loaded webpage in Webview. This javascript is an external file in assets folder. The javascript basically extracts images from the img tags in does some other processing in the html page. How can I execute this javascript on the already loaded www.techcrunch.com page? 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 -- 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] Package Manager API clarification required.....
No it should not be the case because when you buy a new android phone Google Google Setup Wizard package runs which has a Home category activity(com.google.android.setupwizard/.SetupWizardActivity having higher priority than home screen) which activates the phone, ask for setting up google account and then disables the Home category activity(com.google.android.setupwizard/.SetupWizardActivity) and actual Home screen comes. For this case manifest doesnt have any explicit state enabled/disabled. The default value android:enabled is true if not stated. Disabling of SetupWizardActivity in this case happens at run time only. Now if you upgrade the phone to a higher android version and phone reboots, SetupWizardActivity should start again but that is not the case and Home intent is recieved by HomeScreen. It means in upgrade the activity which is disabled will remain disabled. So i am wondering if I am disabling correctly or not ? But as per API I am disabling it correctly because until upgrade happens my activity is disabled. pm.setComponentEnabledSetting(name, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP); I think somebody from google android framework team should comment. Thanks , Sudeep On 6/26/12, jc jroma...@gmail.com wrote: On Tuesday, June 26, 2012 10:40:28 AM UTC-5, MagouyaWare wrote: There is no state mentioned in manifest for the upgraded component, it should be in Disabled state until user enables it or Factory reset of phone is done. Why? I didn't read it that way. I agree that it is not well-defined, but the docs do not say that this should be the case. I would suspect that upgrading doesn't retain your runtime setting because it resets back to the manifest value, or in your case the DEFAULT value since you don't have it defined in your manifest. http://developer.android.com/guide/topics/manifest/application-element.html http://developer.android.com/guide/topics/manifest/activity-element.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 -- 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] Distributing Multiple APKs for Medical App
On Tue, Jun 26, 2012 at 1:54 PM, Matt Wright miwrig...@gmail.com wrote: This method would require install from unknown sources? Yes. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- 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] Package Manager API clarification required.....
No it should not be the case because when you buy a new android phone Google Google Setup Wizard package runs which has a Home category activity(com.google.android. setupwizard/.SetupWizardActivity having higher priority than home screen) which activates the phone, ask for setting up google account and then disables the Home category activity(com.google.android.setupwizard/.SetupWizardActivity) and actual Home screen comes. For this case manifest doesnt have any explicit state enabled/disabled. The default value android:enabled is true if not stated. Disabling of SetupWizardActivity in this case happens at run time only. Now if you upgrade the phone to a higher android version and phone reboots, SetupWizardActivity should start again but that is not the case and Home intent is recieved by HomeScreen. It means in upgrade the activity which is disabled will remain disabled. Many times comparing the behavior of apps that come installed with a device and those that get installed later is like comparing apples and oranges. Many apps that come pre-installed on a device have System permissions which allow them to do things normal apps cannot. So i am wondering if I am disabling correctly or not ? But as per API I am disabling it correctly because until upgrade happens my activity is disabled. As for whether you are setting it correctly or not, you don't have many options... You have the API available to you, and that's it... So I would guess that you are calling it correctly. I think somebody from google android framework team should comment. Perhaps Dianne or Romain will, if they happen across this thread and feel our comments don't adequately answer the question... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 12:14 PM, Sudeep Sharma sudeep.andr...@gmail.comwrote: No it should not be the case because when you buy a new android phone Google Google Setup Wizard package runs which has a Home category activity(com.google.android.setupwizard/.SetupWizardActivity having higher priority than home screen) which activates the phone, ask for setting up google account and then disables the Home category activity(com.google.android.setupwizard/.SetupWizardActivity) and actual Home screen comes. For this case manifest doesnt have any explicit state enabled/disabled. The default value android:enabled is true if not stated. Disabling of SetupWizardActivity in this case happens at run time only. Now if you upgrade the phone to a higher android version and phone reboots, SetupWizardActivity should start again but that is not the case and Home intent is recieved by HomeScreen. It means in upgrade the activity which is disabled will remain disabled. So i am wondering if I am disabling correctly or not ? But as per API I am disabling it correctly because until upgrade happens my activity is disabled. pm.setComponentEnabledSetting(name, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP); I think somebody from google android framework team should comment. Thanks , Sudeep On 6/26/12, jc jroma...@gmail.com wrote: On Tuesday, June 26, 2012 10:40:28 AM UTC-5, MagouyaWare wrote: There is no state mentioned in manifest for the upgraded component, it should be in Disabled state until user enables it or Factory reset of phone is done. Why? I didn't read it that way. I agree that it is not well-defined, but the docs do not say that this should be the case. I would suspect that upgrading doesn't retain your runtime setting because it resets back to the manifest value, or in your case the DEFAULT value since you don't have it defined in your manifest. http://developer.android.com/guide/topics/manifest/application-element.html http://developer.android.com/guide/topics/manifest/activity-element.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 -- 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
Re: [android-developers] Create an application which consists of another application
Why can't we find the solution could anyone tell me briefly On 6/26/12, Kristopher Micinski krismicin...@gmail.com wrote: This topic has come up before, typically in the context of a stumbleupon like service for apps., the answer is basically that you can't. kris On Tue, Jun 26, 2012 at 8:12 AM, Sandeep Venkat sand...@believecreative.in wrote: Hi folks could anyone tell me the way to store the downloaded application from google play in my application -- ThanksRegards Sandeep MNVVB -- 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 -- ThanksRegards *Sandeep MNVVB* * **Mobile Application Developer Believe Creative **sand...@believecreative.in * M: 0091 8019585636 W: www.believecreative.in First Floor, Plot 1 Silicon Valley, Image Garden Lane, Madhapur, Hyderabad, 500081 **ConfidentialNote* Please do not print this email unless it is absolutely necessary. * *The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. * * * WARNING*: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. * -- 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] Create an application which consists of another application
Why can't we find the solution could anyone tell me briefly We did... there is no solution. What you are trying to do is not possible. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 12:40 PM, Sandeep Venkat sand...@believecreative.in wrote: Why can't we find the solution could anyone tell me briefly On 6/26/12, Kristopher Micinski krismicin...@gmail.com wrote: This topic has come up before, typically in the context of a stumbleupon like service for apps., the answer is basically that you can't. kris On Tue, Jun 26, 2012 at 8:12 AM, Sandeep Venkat sand...@believecreative.in wrote: Hi folks could anyone tell me the way to store the downloaded application from google play in my application -- ThanksRegards Sandeep MNVVB -- 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 -- ThanksRegards *Sandeep MNVVB* * **Mobile Application Developer Believe Creative **sand...@believecreative.in * M: 0091 8019585636 W: www.believecreative.in First Floor, Plot 1 Silicon Valley, Image Garden Lane, Madhapur, Hyderabad, 500081 **ConfidentialNote* Please do not print this email unless it is absolutely necessary. * *The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. * * * WARNING*: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. * -- 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] Create an application which consists of another application
How about you explain in more detail what you are trying to accomplish... What are you wanting your app to do? There may be another way to go about it that will work for your needs... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 12:43 PM, Justin Anderson magouyaw...@gmail.comwrote: Why can't we find the solution could anyone tell me briefly We did... there is no solution. What you are trying to do is not possible. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 12:40 PM, Sandeep Venkat sand...@believecreative.in wrote: Why can't we find the solution could anyone tell me briefly On 6/26/12, Kristopher Micinski krismicin...@gmail.com wrote: This topic has come up before, typically in the context of a stumbleupon like service for apps., the answer is basically that you can't. kris On Tue, Jun 26, 2012 at 8:12 AM, Sandeep Venkat sand...@believecreative.in wrote: Hi folks could anyone tell me the way to store the downloaded application from google play in my application -- ThanksRegards Sandeep MNVVB -- 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 -- ThanksRegards *Sandeep MNVVB* * **Mobile Application Developer Believe Creative **sand...@believecreative.in * M: 0091 8019585636 W: www.believecreative.in First Floor, Plot 1 Silicon Valley, Image Garden Lane, Madhapur, Hyderabad, 500081 **ConfidentialNote* Please do not print this email unless it is absolutely necessary. * *The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. * * * WARNING*: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. * -- 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: leaked window again
Event handler that call the AsyncTask OnClickListener processOnClickListener = new OnClickListener() { public void onClick(View v) { try { createProgressDialog(); pd.show(); new Segement(PreviewActivity.this, pd).execute(path); } catch (IOException e) { } } }; Full back trace 06-26 20:45:58.159: E/WindowManager(8663): Activity com.android.grad.LoginActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@2be6a248 that was originally added here 06-26 20:45:58.159: E/WindowManager(8663): android.view.WindowLeaked: Activity com.android.grad.LoginActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@2be6a248 that was originally added here 06-26 20:45:58.159: E/WindowManager(8663): at android.view.ViewRootImpl.init(ViewRootImpl.java:344) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:267) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:215) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:140) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.Window$LocalWindowManager.addView(Window.java:537) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.Dialog.show(Dialog.java:278) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.ProgressDialog.show(ProgressDialog.java:116) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.ProgressDialog.show(ProgressDialog.java:99) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.ProgressDialog.show(ProgressDialog.java:94) 06-26 20:45:58.159: E/WindowManager(8663): at com.android.grad.LoginTask.onPreExecute(LoginTask.java:24) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:561) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.AsyncTask.execute(AsyncTask.java:511) 06-26 20:45:58.159: E/WindowManager(8663): at com.android.grad.LoginActivity$1.onClick(LoginActivity.java:35) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.View.performClick(View.java:3527) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.View$PerformClick.run(View.java:14234) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.Handler.handleCallback(Handler.java:605) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.Handler.dispatchMessage(Handler.java:92) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.Looper.loop(Looper.java:137) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.ActivityThread.main(ActivityThread.java:4441) 06-26 20:45:58.159: E/WindowManager(8663): at java.lang.reflect.Method.invokeNative(Native Method) 06-26 20:45:58.159: E/WindowManager(8663): at java.lang.reflect.Method.invoke(Method.java:511) 06-26 20:45:58.159: E/WindowManager(8663): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 06-26 20:45:58.159: E/WindowManager(8663): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 06-26 20:45:58.159: E/WindowManager(8663): at dalvik.system.NativeStart.main(Native Method) 06-26 20:45:58.279: D/dalvikvm(8663): GC_CONCURRENT freed 265K, 4% free 9332K/9671K, paused 10ms+3ms 06-26 20:45:58.319: D/AndroidRuntime(8663): Shutting down VM 06-26 20:45:58.329: W/dalvikvm(8663): threadid=1: thread exiting with uncaught exception (group=0x2b542210) 06-26 20:45:58.329: E/AndroidRuntime(8663): FATAL EXCEPTION: main 06-26 20:45:58.329: E/AndroidRuntime(8663): java.lang.IllegalArgumentException: View not attached to window manager 06-26 20:45:58.329: E/AndroidRuntime(8663): at android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:587) 06-26 20:45:58.329: E/AndroidRuntime(8663): at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:324) 06-26 20:45:58.329: E/AndroidRuntime(8663): at android.view.WindowManagerImpl$CompatModeWrapper.removeView(WindowManagerImpl.java:151) 06-26 20:45:58.329: E/AndroidRuntime(8663): at android.app.Dialog.dismissDialog(Dialog.java:321) 06-26 20:45:58.329: E/AndroidRuntime(8663): at android.app.Dialog$1.run(Dialog.java:119) 06-26 20:45:58.329: E/AndroidRuntime(8663): at android.app.Dialog.dismiss(Dialog.java:306) 06-26 20:45:58.329: E/AndroidRuntime(8663): at com.android.grad.LoginTask.onPostExecute(LoginTask.java:39) 06-26 20:45:58.329: E/AndroidRuntime(8663): at com.android.grad.LoginTask.onPostExecute(LoginTask.java:1) 06-26 20:45:58.329: E/AndroidRuntime(8663): at android.os.AsyncTask.finish(AsyncTask.java:602) 06-26 20:45:58.329: E/AndroidRuntime(8663): at android.os.AsyncTask.access$600(AsyncTask.java:156) 06-26 20:45:58.329: E/AndroidRuntime(8663): at
[android-developers] MediaPlayer setVolume broken on some ICS devices?
Hi, I have been using the MediaPlayer for years without issues, controlling the volume via setVolume directly rather than setting the stream volume to allow for much finer control. Recently, I get reports that the volume always plays at 100% for MP3 files while OGG files are unaffected. The reports so far came from these phones (which I do not own myself): - LG Lucid - T-mobile Samsung Galaxy S2 (with ICS update) Has anybody else run into the issue? Of course, I can switch to controlling the stream volume but then some things such as cross-fading of two media files are no longer possible. How can this be? If it is an Android issue, all phones should be affected with ICS. If it is a device driver issue, I wouldn't expect several vendors to suddenly come up with the same error. Any idea whom I can contact about this? Thank you for any info, Martin mobitobi -- 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] Create an application which consists of another application
Hi justin Let me explain you my app I want to download few applications from google play. the applications those were downloaded from the google play must be display in a grid format in my application.. Can we? On 6/27/12, Justin Anderson magouyaw...@gmail.com wrote: How about you explain in more detail what you are trying to accomplish... What are you wanting your app to do? There may be another way to go about it that will work for your needs... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 12:43 PM, Justin Anderson magouyaw...@gmail.comwrote: Why can't we find the solution could anyone tell me briefly We did... there is no solution. What you are trying to do is not possible. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 12:40 PM, Sandeep Venkat sand...@believecreative.in wrote: Why can't we find the solution could anyone tell me briefly On 6/26/12, Kristopher Micinski krismicin...@gmail.com wrote: This topic has come up before, typically in the context of a stumbleupon like service for apps., the answer is basically that you can't. kris On Tue, Jun 26, 2012 at 8:12 AM, Sandeep Venkat sand...@believecreative.in wrote: Hi folks could anyone tell me the way to store the downloaded application from google play in my application -- ThanksRegards Sandeep MNVVB -- 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 -- ThanksRegards *Sandeep MNVVB* * **Mobile Application Developer Believe Creative **sand...@believecreative.in * M: 0091 8019585636 W: www.believecreative.in First Floor, Plot 1 Silicon Valley, Image Garden Lane, Madhapur, Hyderabad, 500081 **ConfidentialNote* Please do not print this email unless it is absolutely necessary. * *The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. * * * WARNING*: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. * -- 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 -- ThanksRegards *Sandeep MNVVB* * **Mobile Application Developer Believe Creative **sand...@believecreative.in * M: 0091 8019585636 W: www.believecreative.in First Floor, Plot 1 Silicon Valley, Image Garden Lane, Madhapur, Hyderabad, 500081 **ConfidentialNote* Please do not print this email unless it is absolutely necessary. * *The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. * * * WARNING*: Computer viruses can be transmitted via email. The recipient should check this email and any
Re: [android-developers] Create an application which consists of another application
Instead empty view will be display for us as far as we download and install any new app that app must be display in my app.. -- ThanksRegards *Sandeep MNVVB* * **Mobile Application Developer Believe Creative **sand...@believecreative.in * M: 0091 8019585636 W: www.believecreative.in First Floor, Plot 1 Silicon Valley, Image Garden Lane, Madhapur, Hyderabad, 500081 **ConfidentialNote* Please do not print this email unless it is absolutely necessary. * *The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. * * * WARNING*: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. * -- 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] ViewFlipper
I have 5 content views in view flipper, here i use to see all 5 content through viewflipperinstance.showNext() and viewflipperinstance.showPrevious(). Here my problem is both next and previous buttons click, it show all 5 content and again start 1st. I need whenever user click next it will up to 5th content and same to previous when user click back it will show up tp 1st content. Kindly any one help me. Thanks in advances. By Mani -- 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] buffering problem with live streaming audio and media player
Hi All, I'm using MediaPlayer to stream an .mp3 radio broadcast. This stream is a live stream and therefore has no duration. I'm debugging it on my phone in eclipse and every few seconds I'm getting info/warnings that the buffering is starting and stopping. Sometimes the buffering lasts longer than other times, but while it's buffering it pauses the playback of the audio. Since this happens every few seconds it's not a great experience for users. I've been trying to find a way to get around this but I haven't been able to find anything. If anyone has any suggestions I'd love to hear them, or if you can point me to some examples that would be great. My test device is an HTC Sensation 4G running Android 4.0.3. I'm running the stream over my phone network. I have a feeling that the buffering has something to do with the speed of the network connection, but I haven't been able to find any examples of how I can request a slower/faster speed stream based on the network speed. This would be an ideal solution since you never know what kind of network people are using to stream audio. I know the Network Manager has ways to implement different things based on when the network changes but I read that it doesn't actually give you the speed of the network, just when it's changed. Thanks in advance for any help, Danielle -- 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] Create an application which consists of another application
Are you trying to make a launcher? Or a list of applications installed? Or something else entirely? Thanks On Wed, Jun 27, 2012 at 12:30 AM, Sandeep Venkat sand...@believecreative.in wrote: Instead empty view will be display for us as far as we download and install any new app that app must be display in my app.. -- ThanksRegards *Sandeep MNVVB* * **Mobile Application Developer Believe Creative **sand...@believecreative.in * M: 0091 8019585636 W: www.believecreative.in First Floor, Plot 1 Silicon Valley, Image Garden Lane, Madhapur, Hyderabad, 500081 **ConfidentialNote* Please do not print this email unless it is absolutely necessary. * *The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. * * * WARNING*: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. * -- 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 -- Raghav Sood Please do not email private questions to me as I do not have time to answer them. Instead, post them to public forums where others and I can answer and benefit from them. http://www.appaholics.in/ - Founder http://www.apress.com/9781430239451 - Author +91 81 303 77248 -- 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] Create an application which consists of another application
The other app can't run inside your app because of the security constraints of the platform. In general it is impossible to run other app's code inside of your app, for security reasons. There are always ways to emulate this, but you can't share the screen with another app. kris On Tue, Jun 26, 2012 at 3:00 PM, Sandeep Venkat sand...@believecreative.in wrote: Instead empty view will be display for us as far as we download and install any new app that app must be display in my app.. -- ThanksRegards *Sandeep MNVVB* * **Mobile Application Developer Believe Creative **sand...@believecreative.in * M: 0091 8019585636 W: www.believecreative.in First Floor, Plot 1 Silicon Valley, Image Garden Lane, Madhapur, Hyderabad, 500081 **ConfidentialNote* Please do not print this email unless it is absolutely necessary. * *The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. * * * WARNING*: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. * -- 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] Create an application which consists of another application
ok can we implement it in any other platforms like ios On 6/27/12, Kristopher Micinski krismicin...@gmail.com wrote: The other app can't run inside your app because of the security constraints of the platform. In general it is impossible to run other app's code inside of your app, for security reasons. There are always ways to emulate this, but you can't share the screen with another app. kris On Tue, Jun 26, 2012 at 3:00 PM, Sandeep Venkat sand...@believecreative.in wrote: Instead empty view will be display for us as far as we download and install any new app that app must be display in my app.. -- ThanksRegards *Sandeep MNVVB* * **Mobile Application Developer Believe Creative **sand...@believecreative.in * M: 0091 8019585636 W: www.believecreative.in First Floor, Plot 1 Silicon Valley, Image Garden Lane, Madhapur, Hyderabad, 500081 **ConfidentialNote* Please do not print this email unless it is absolutely necessary. * *The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. * * * WARNING*: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. * -- 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 -- ThanksRegards *Sandeep MNVVB* * **Mobile Application Developer Believe Creative **sand...@believecreative.in * M: 0091 8019585636 W: www.believecreative.in First Floor, Plot 1 Silicon Valley, Image Garden Lane, Madhapur, Hyderabad, 500081 **ConfidentialNote* Please do not print this email unless it is absolutely necessary. * *The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. * * * WARNING*: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. * -- 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] Create an application which consists of another application
hi ragava i want to install other app's downloaded and installed to be displayed in my app -- 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] Enforcing clearTop only when launching app from browser
Hi everyone! I have an application with an activity named SplashActivity which has the following intent-filters defined. activity android:name=.SplashActivity android:configChanges=keyboardHidden|orientation android:launchMode=singleTop android:screenOrientation=portrait android:windowSoftInputMode=adjustPan intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter intent-filter action android:name=android.intent.action.VIEW/ category android:name=android.intent.category.DEFAULT/ category android:name=android.intent.category.BROWSABLE/ data android:scheme=abc/ /intent-filter /activity Hence the activity can be launched from the launcher or from the browser by using the scheme abc:parameters. *Scenario 1:* I launch the app (SplashActivity) from the launcher and from SplashActivity I launch MainActivity. Now the task has 2 activities with MainActivity on top. I minimize with the HOME key and then relaunch the app from the launcher. I will see the same 2 activity stack preserved. This is the desired behavior so all is well. *Scenario 2:* I launch the app (SplashActivity) from the launcher and from SplashActivity I launch MainActivity. Now the task has 2 activities with MainActivity on top. I minimize with the HOME key and then launch a special webpage. This webpage has a button that launches a url with the scheme abc:data. This launches SplashActivity. However, this is launched in the browser task. I would like for the original minimized task to be launched with SplashActivity as the root (FLAG_ACTIVITY_NEW_TASK might unify SplashActivity with the original instance that was in the background) and I would also like to add a flag of FLAG_ACTIVITY_CLEAR_TOP so that MainActivity is closed. How do I achieve this? The most promising option seemed to be to define SplashActivity as singleTask but for various reasons singleTask does not perform exactly as desired. Most importantly, it seems to clear all the activities on top each time you relaunch SplashActivity. This is fine for Scenario 2 but in Scenario 1 I do not wish to clear the activities on top. So my question is, how can I achieve an outcome in Scenario 2 where on clicking the button on the webpage, my app is launched with SplashActivity at the root (not in the browser task) and MainActivity is closed. The issue is that we can't control the intent from the browser. 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
Re: [android-developers] Top Developer?
No, I have seen developers with apps that have even fewer downloads than my apps, that have Top Developer. It seems completely arbitrary. Also, I've been a dev since April of 2009. So over 3 years. And my paid app has over 62000 downloads currently with a 4.5 rating. And I'm still not a Top Developer. Personally I think that is bull -niko On Saturday, June 23, 2012 2:55:03 AM UTC-5, Harri Smått wrote: On Jun 22, 2012, at 11:34 PM, Robert Nekic wrote: Is there a process for being considered for the Top Developer designation on Google Play? I would guess this happens when your applications get 10+ million downloads or something. Maybe it helps Google Play team to catch your account - plus maybe there's some other criteria too. Nothing too specific I knew about though, just guessing. -- H -- 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] Create an application which consists of another application
On Tue, Jun 26, 2012 at 3:19 PM, Sandeep Venkat sand...@believecreative.in wrote: hi ragava i want to install other app's downloaded and installed to be displayed in my app I don't know about iOS, but I would assume you also can't do it there... In Android it's a definite no, just because of the security constraints. 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
Re: [android-developers] ViewFlipper
Not sure I understand... The showNext() and showPrevious() methods only flip by one view... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 1:06 PM, chandur mani chandur.ind...@gmail.comwrote: I have 5 content views in view flipper, here i use to see all 5 content through viewflipperinstance.showNext() and viewflipperinstance.showPrevious(). Here my problem is both next and previous buttons click, it show all 5 content and again start 1st. I need whenever user click next it will up to 5th content and same to previous when user click back it will show up tp 1st content. Kindly any one help me. Thanks in advances. By Mani -- 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: leaked window again
How many times are you calling CreateProgressDialog()? It is called in your onClick() method and in onPreExecute() Also, what does the Segement class do? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 12:48 PM, mahmoud emam mahmude...@gmail.com wrote: Event handler that call the AsyncTask OnClickListener processOnClickListener = new OnClickListener() { public void onClick(View v) { try { createProgressDialog(); pd.show(); new Segement(PreviewActivity.this, pd).execute(path); } catch (IOException e) { } } }; Full back trace 06-26 20:45:58.159: E/WindowManager(8663): Activity com.android.grad.LoginActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@2be6a248 that was originally added here 06-26 20:45:58.159: E/WindowManager(8663): android.view.WindowLeaked: Activity com.android.grad.LoginActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@2be6a248 that was originally added here 06-26 20:45:58.159: E/WindowManager(8663): at android.view.ViewRootImpl.init(ViewRootImpl.java:344) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:267) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:215) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:140) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.Window$LocalWindowManager.addView(Window.java:537) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.Dialog.show(Dialog.java:278) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.ProgressDialog.show(ProgressDialog.java:116) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.ProgressDialog.show(ProgressDialog.java:99) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.ProgressDialog.show(ProgressDialog.java:94) 06-26 20:45:58.159: E/WindowManager(8663): at com.android.grad.LoginTask.onPreExecute(LoginTask.java:24) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:561) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.AsyncTask.execute(AsyncTask.java:511) 06-26 20:45:58.159: E/WindowManager(8663): at com.android.grad.LoginActivity$1.onClick(LoginActivity.java:35) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.View.performClick(View.java:3527) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.View$PerformClick.run(View.java:14234) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.Handler.handleCallback(Handler.java:605) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.Handler.dispatchMessage(Handler.java:92) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.Looper.loop(Looper.java:137) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.ActivityThread.main(ActivityThread.java:4441) 06-26 20:45:58.159: E/WindowManager(8663): at java.lang.reflect.Method.invokeNative(Native Method) 06-26 20:45:58.159: E/WindowManager(8663): at java.lang.reflect.Method.invoke(Method.java:511) 06-26 20:45:58.159: E/WindowManager(8663): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 06-26 20:45:58.159: E/WindowManager(8663): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 06-26 20:45:58.159: E/WindowManager(8663): at dalvik.system.NativeStart.main(Native Method) 06-26 20:45:58.279: D/dalvikvm(8663): GC_CONCURRENT freed 265K, 4% free 9332K/9671K, paused 10ms+3ms 06-26 20:45:58.319: D/AndroidRuntime(8663): Shutting down VM 06-26 20:45:58.329: W/dalvikvm(8663): threadid=1: thread exiting with uncaught exception (group=0x2b542210) 06-26 20:45:58.329: E/AndroidRuntime(8663): FATAL EXCEPTION: main 06-26 20:45:58.329: E/AndroidRuntime(8663): java.lang.IllegalArgumentException: View not attached to window manager 06-26 20:45:58.329: E/AndroidRuntime(8663): at android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:587) 06-26 20:45:58.329: E/AndroidRuntime(8663): at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:324) 06-26 20:45:58.329: E/AndroidRuntime(8663): at android.view.WindowManagerImpl$CompatModeWrapper.removeView(WindowManagerImpl.java:151) 06-26 20:45:58.329: E/AndroidRuntime(8663): at android.app.Dialog.dismissDialog(Dialog.java:321) 06-26 20:45:58.329: E/AndroidRuntime(8663): at android.app.Dialog$1.run(Dialog.java:119) 06-26 20:45:58.329: E/AndroidRuntime(8663): at android.app.Dialog.dismiss(Dialog.java:306) 06-26 20:45:58.329: E/AndroidRuntime(8663): at
Re: [android-developers] Re: leaked window again
*no each call in different places and the Segment class its my own class that i use it to do extract Numbers from an image I can send you the whole code if you want * On Tue, Jun 26, 2012 at 10:15 PM, Justin Anderson magouyaw...@gmail.comwrote: How many times are you calling CreateProgressDialog()? It is called in your onClick() method and in onPreExecute() Also, what does the Segement class do? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 12:48 PM, mahmoud emam mahmude...@gmail.comwrote: Event handler that call the AsyncTask OnClickListener processOnClickListener = new OnClickListener() { public void onClick(View v) { try { createProgressDialog(); pd.show(); new Segement(PreviewActivity.this, pd).execute(path); } catch (IOException e) { } } }; Full back trace 06-26 20:45:58.159: E/WindowManager(8663): Activity com.android.grad.LoginActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@2be6a248 that was originally added here 06-26 20:45:58.159: E/WindowManager(8663): android.view.WindowLeaked: Activity com.android.grad.LoginActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@2be6a248 that was originally added here 06-26 20:45:58.159: E/WindowManager(8663): at android.view.ViewRootImpl.init(ViewRootImpl.java:344) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:267) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:215) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:140) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.Window$LocalWindowManager.addView(Window.java:537) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.Dialog.show(Dialog.java:278) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.ProgressDialog.show(ProgressDialog.java:116) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.ProgressDialog.show(ProgressDialog.java:99) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.ProgressDialog.show(ProgressDialog.java:94) 06-26 20:45:58.159: E/WindowManager(8663): at com.android.grad.LoginTask.onPreExecute(LoginTask.java:24) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:561) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.AsyncTask.execute(AsyncTask.java:511) 06-26 20:45:58.159: E/WindowManager(8663): at com.android.grad.LoginActivity$1.onClick(LoginActivity.java:35) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.View.performClick(View.java:3527) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.View$PerformClick.run(View.java:14234) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.Handler.handleCallback(Handler.java:605) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.Handler.dispatchMessage(Handler.java:92) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.Looper.loop(Looper.java:137) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.ActivityThread.main(ActivityThread.java:4441) 06-26 20:45:58.159: E/WindowManager(8663): at java.lang.reflect.Method.invokeNative(Native Method) 06-26 20:45:58.159: E/WindowManager(8663): at java.lang.reflect.Method.invoke(Method.java:511) 06-26 20:45:58.159: E/WindowManager(8663): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 06-26 20:45:58.159: E/WindowManager(8663): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 06-26 20:45:58.159: E/WindowManager(8663): at dalvik.system.NativeStart.main(Native Method) 06-26 20:45:58.279: D/dalvikvm(8663): GC_CONCURRENT freed 265K, 4% free 9332K/9671K, paused 10ms+3ms 06-26 20:45:58.319: D/AndroidRuntime(8663): Shutting down VM 06-26 20:45:58.329: W/dalvikvm(8663): threadid=1: thread exiting with uncaught exception (group=0x2b542210) 06-26 20:45:58.329: E/AndroidRuntime(8663): FATAL EXCEPTION: main 06-26 20:45:58.329: E/AndroidRuntime(8663): java.lang.IllegalArgumentException: View not attached to window manager 06-26 20:45:58.329: E/AndroidRuntime(8663): at android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:587) 06-26 20:45:58.329: E/AndroidRuntime(8663): at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:324) 06-26 20:45:58.329: E/AndroidRuntime(8663): at android.view.WindowManagerImpl$CompatModeWrapper.removeView(WindowManagerImpl.java:151) 06-26 20:45:58.329: E/AndroidRuntime(8663): at android.app.Dialog.dismissDialog(Dialog.java:321) 06-26 20:45:58.329:
[android-developers] Instantiating (but not attaching!) a View from a non-UI thread
I know that the UI elements (View hierarchy) may only be manipulated from the UI thread. For a background operation, the AsyncTask can be used, which offers event handers to reach the UI thread. To be brief, is it allowed to instantiate a View (tied to getApplicationContext()) in a non-UI thread? This custom View descendant -- once instantiated -- is added to the view hierarchy from the UI thread. So only the constructor call is done inside an Asynctask.doInBackground; its attaching (addView(...))to the Activity's root layout hierarchy is still done in the UI thread. (I pre-instantiate the View in an asynctask because when it's needed in an Activity, it must be instantly 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] getOrientation wierd issue
Hi guys, I need to know the current rotation of the screen from its natural orientation. fortunately enough there's an API for exactly that at Display.getOrientation() this works well on most devices i tested it on, but for some reason, GT-P1000 device, returns the wrong value i've used adb shell getevent to check where the real axis of the screen are, and they are rotated 90 degrees from what getRotation tells me any idea why this could happan? or did anyone ran into this issue before? Device: GT-P1000 Android: 2.3.3 Thanks, Vlad -- 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: leaked window again
Generally sending the whole code won't be beneficial... How about posting the code for your activity? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 2:25 PM, mahmoud emam mahmude...@gmail.com wrote: *no each call in different places and the Segment class its my own class that i use it to do extract Numbers from an image I can send you the whole code if you want * On Tue, Jun 26, 2012 at 10:15 PM, Justin Anderson magouyaw...@gmail.comwrote: How many times are you calling CreateProgressDialog()? It is called in your onClick() method and in onPreExecute() Also, what does the Segement class do? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 12:48 PM, mahmoud emam mahmude...@gmail.comwrote: Event handler that call the AsyncTask OnClickListener processOnClickListener = new OnClickListener() { public void onClick(View v) { try { createProgressDialog(); pd.show(); new Segement(PreviewActivity.this, pd).execute(path); } catch (IOException e) { } } }; Full back trace 06-26 20:45:58.159: E/WindowManager(8663): Activity com.android.grad.LoginActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@2be6a248 that was originally added here 06-26 20:45:58.159: E/WindowManager(8663): android.view.WindowLeaked: Activity com.android.grad.LoginActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@2be6a248 that was originally added here 06-26 20:45:58.159: E/WindowManager(8663): at android.view.ViewRootImpl.init(ViewRootImpl.java:344) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:267) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:215) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:140) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.Window$LocalWindowManager.addView(Window.java:537) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.Dialog.show(Dialog.java:278) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.ProgressDialog.show(ProgressDialog.java:116) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.ProgressDialog.show(ProgressDialog.java:99) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.ProgressDialog.show(ProgressDialog.java:94) 06-26 20:45:58.159: E/WindowManager(8663): at com.android.grad.LoginTask.onPreExecute(LoginTask.java:24) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:561) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.AsyncTask.execute(AsyncTask.java:511) 06-26 20:45:58.159: E/WindowManager(8663): at com.android.grad.LoginActivity$1.onClick(LoginActivity.java:35) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.View.performClick(View.java:3527) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.View$PerformClick.run(View.java:14234) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.Handler.handleCallback(Handler.java:605) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.Handler.dispatchMessage(Handler.java:92) 06-26 20:45:58.159: E/WindowManager(8663): at android.os.Looper.loop(Looper.java:137) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.ActivityThread.main(ActivityThread.java:4441) 06-26 20:45:58.159: E/WindowManager(8663): at java.lang.reflect.Method.invokeNative(Native Method) 06-26 20:45:58.159: E/WindowManager(8663): at java.lang.reflect.Method.invoke(Method.java:511) 06-26 20:45:58.159: E/WindowManager(8663): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 06-26 20:45:58.159: E/WindowManager(8663): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 06-26 20:45:58.159: E/WindowManager(8663): at dalvik.system.NativeStart.main(Native Method) 06-26 20:45:58.279: D/dalvikvm(8663): GC_CONCURRENT freed 265K, 4% free 9332K/9671K, paused 10ms+3ms 06-26 20:45:58.319: D/AndroidRuntime(8663): Shutting down VM 06-26 20:45:58.329: W/dalvikvm(8663): threadid=1: thread exiting with uncaught exception (group=0x2b542210) 06-26 20:45:58.329: E/AndroidRuntime(8663): FATAL EXCEPTION: main 06-26 20:45:58.329: E/AndroidRuntime(8663): java.lang.IllegalArgumentException: View not attached to window manager 06-26 20:45:58.329: E/AndroidRuntime(8663): at android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:587) 06-26 20:45:58.329: E/AndroidRuntime(8663): at
Re: [android-developers] Instantiating (but not attaching!) a View from a non-UI thread
I'm not sure, but I doubt it... Have you tried it? Did it work? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 2:27 PM, Tamás Kovács falcon.firebre...@gmail.comwrote: I know that the UI elements (View hierarchy) may only be manipulated from the UI thread. For a background operation, the AsyncTask can be used, which offers event handers to reach the UI thread. To be brief, is it allowed to instantiate a View (tied to getApplicationContext()) in a non-UI thread? This custom View descendant -- once instantiated -- is added to the view hierarchy from the UI thread. So only the constructor call is done inside an Asynctask.doInBackground; its attaching (addView(...))to the Activity's root layout hierarchy is still done in the UI thread. (I pre-instantiate the View in an asynctask because when it's needed in an Activity, it must be instantly 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 -- 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] getOrientation wierd issue
Have you checked if there are any available updates for your Galaxy Tab? I have heard reports of some Samsung devices having this issue, and an update from Samsung fixed it... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 2:35 PM, Vlad ostrov...@gmail.com wrote: GT-P1000 -- 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: Instantiating (but not attaching!) a View from a non-UI thread
It works seamlessly like a charm. It would be nice to know if this is supported/acceptable generally. I hope we'll get an answer from the Android guys/ladies. On Jun 26, 10:53 pm, Justin Anderson magouyaw...@gmail.com wrote: I'm not sure, but I doubt it... Have you tried it? Did it work? Thanks, Justin Anderson MagouyaWare Developerhttp://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 2:27 PM, Tamás Kovács falcon.firebre...@gmail.comwrote: I know that the UI elements (View hierarchy) may only be manipulated from the UI thread. For a background operation, the AsyncTask can be used, which offers event handers to reach the UI thread. To be brief, is it allowed to instantiate a View (tied to getApplicationContext()) in a non-UI thread? This custom View descendant -- once instantiated -- is added to the view hierarchy from the UI thread. So only the constructor call is done inside an Asynctask.doInBackground; its attaching (addView(...))to the Activity's root layout hierarchy is still done in the UI thread. (I pre-instantiate the View in an asynctask because when it's needed in an Activity, it must be instantly 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 -- 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: leaked window again
public class PreviewActivity extends Activity { private ImageView previewIV; private final int CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE = 100; private String path; private boolean crop = true; private boolean resample = true; private ProgressDialog pd; OnClickListener processOnClickListener = new OnClickListener() { public void onClick(View v) { try { createProgressDialog(); pd.show(); new Segement(PreviewActivity.this, pd).execute(path); } catch (IOException e) { } } }; private void createProgressDialog() { pd = new ProgressDialog(PreviewActivity.this); pd.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); pd.setTitle(Extract ID); pd.setMessage(Processing...); pd.setIcon(R.drawable.ic_launcher); pd.setProgress(0); pd.setCancelable(false); } private OnClickListener backOnClickListener = new OnClickListener() { public void onClick(View v) { startActivityForResult( new Intent(MediaStore.ACTION_IMAGE_CAPTURE).putExtra( MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(path))), CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE); } }; protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (resultCode == RESULT_OK) { if (requestCode == CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE) { previewIV.setImageBitmap(BitmapFactory.decodeFile(path)); } } } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.preview); path = getIntent().getExtras().getString(path); //Log.d(path, path); // path = /sdcard/Pictures/MyCameraApp/IMG01.jpg; previewIV = (ImageView) findViewById(R.id.previewPicID); previewIV.setImageBitmap(AndroidImage.decodeSampledBitmapFromSDcard( path, 1000, 1000)); // previewIV.setImageBitmap(AndroidImage.readImage(path)); Button process = (Button) findViewById(R.id.processID); process.setOnClickListener(processOnClickListener); Button back = (Button) findViewById(R.id.back); back.setOnClickListener(backOnClickListener); } AndroidImage is a utility class for read write downSample On Tue, Jun 26, 2012 at 10:52 PM, Justin Anderson magouyaw...@gmail.comwrote: Generally sending the whole code won't be beneficial... How about posting the code for your activity? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 2:25 PM, mahmoud emam mahmude...@gmail.comwrote: *no each call in different places and the Segment class its my own class that i use it to do extract Numbers from an image I can send you the whole code if you want * On Tue, Jun 26, 2012 at 10:15 PM, Justin Anderson magouyaw...@gmail.comwrote: How many times are you calling CreateProgressDialog()? It is called in your onClick() method and in onPreExecute() Also, what does the Segement class do? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 12:48 PM, mahmoud emam mahmude...@gmail.comwrote: Event handler that call the AsyncTask OnClickListener processOnClickListener = new OnClickListener() { public void onClick(View v) { try { createProgressDialog(); pd.show(); new Segement(PreviewActivity.this, pd).execute(path); } catch (IOException e) { } } }; Full back trace 06-26 20:45:58.159: E/WindowManager(8663): Activity com.android.grad.LoginActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@2be6a248 that was originally added here 06-26 20:45:58.159: E/WindowManager(8663): android.view.WindowLeaked: Activity com.android.grad.LoginActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@2be6a248 that was originally added here 06-26 20:45:58.159: E/WindowManager(8663): at android.view.ViewRootImpl.init(ViewRootImpl.java:344) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:267) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:215) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:140) 06-26 20:45:58.159: E/WindowManager(8663): at android.view.Window$LocalWindowManager.addView(Window.java:537) 06-26 20:45:58.159: E/WindowManager(8663): at android.app.Dialog.show(Dialog.java:278) 06-26 20:45:58.159:
Re: [android-developers] Top Developer?
The app I work on has 600,000+ installs, 14,000+ ratings, and a 4.5 average. The app has a higher average than others in our category from Top Developers so I'm not sure what it takes. I'm mostly just curious. I'm not sure it would generate more downloads or anything like that. On Tue, Jun 26, 2012 at 3:46 PM, niko20 nikolatesl...@yahoo.com wrote: No, I have seen developers with apps that have even fewer downloads than my apps, that have Top Developer. It seems completely arbitrary. Also, I've been a dev since April of 2009. So over 3 years. And my paid app has over 62000 downloads currently with a 4.5 rating. And I'm still not a Top Developer. Personally I think that is bull -niko On Saturday, June 23, 2012 2:55:03 AM UTC-5, Harri Smått wrote: On Jun 22, 2012, at 11:34 PM, Robert Nekic wrote: Is there a process for being considered for the Top Developer designation on Google Play? I would guess this happens when your applications get 10+ million downloads or something. Maybe it helps Google Play team to catch your account - plus maybe there's some other criteria too. Nothing too specific I knew about though, just guessing. -- H -- 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] Problem with notifications and recent activities list
I'm having nothing but trouble with something that seems pretty basic. So I have a notification set up so that it launches to my main activity with SINGLE_TOP and CLEAR_TOP. All this works well and I act accordingly to the notification. But what happens is that in the recent app list (if you hold down home or on ICS click on task switcher) that intent is now the notification intent instead of the typical bring to front your whole activity. For instance, if I launch a new activity from my main task, then click home, then go to the recent app list and click it, I get the clear top again with my original notification extras. I've tried every combination of things I can think of to try and get this to work with no solution in sight. No matter what I do, whatever my notification parameters and extras are, they are maintained in the recent applications. How can I send a notification intent to my app without it hijacking the recent application list? Btw, if I do the FLAG_ACTIVITY_NO_HISTORY, then nothing is in the recent applications. Any thoughts? -- 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: Instantiating (but not attaching!) a View from a non-UI thread
OK I made additional research and source code exploring: only *ViewGroup* and its descendants check the Thread, the *View* class does not. It does not even STORE the thread which created it. Based on this, it should be safe to create Views (but never Viewgroups) in different threads. It would be nice if Dianne or Romain could confirm this. On Jun 26, 10:53 pm, Justin Anderson magouyaw...@gmail.com wrote: I'm not sure, but I doubt it... Have you tried it? Did it work? Thanks, Justin Anderson MagouyaWare Developerhttp://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 2:27 PM, Tamás Kovács falcon.firebre...@gmail.comwrote: I know that the UI elements (View hierarchy) may only be manipulated from the UI thread. For a background operation, the AsyncTask can be used, which offers event handers to reach the UI thread. To be brief, is it allowed to instantiate a View (tied to getApplicationContext()) in a non-UI thread? This custom View descendant -- once instantiated -- is added to the view hierarchy from the UI thread. So only the constructor call is done inside an Asynctask.doInBackground; its attaching (addView(...))to the Activity's root layout hierarchy is still done in the UI thread. (I pre-instantiate the View in an asynctask because when it's needed in an Activity, it must be instantly 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 -- 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: Instantiating (but not attaching!) a View from a non-UI thread
No, it is not safe. Don't do this. The documentation is very clear about this: http://developer.android.com/reference/android/view/View.html Note: The entire view tree is single threaded. You must always be on the UI thread when calling any method on any view. This wasn't written to mislead people into thinking that it works a different way than it does: it is because it is true, the view hierarchy is single-threaded, and it is explicitly not designed to be used from multiple threads. If you think that not seeing checks about which thread calls are being made on indicates that something is safe to use from multiple threads, you should probably stop whatever multi-threaded programming you are doing and rethink it. :} Even instantiating a view from one thread and attaching it to a view hierarchy in another is not safe, because many views will internally create Handler objects that are bound to whatever thread they were created on, causing you to have parts of your view hierarchy running on the wrong thread with bad results. On Tue, Jun 26, 2012 at 2:00 PM, Tamás Kovács falcon.firebre...@gmail.comwrote: It works seamlessly like a charm. It would be nice to know if this is supported/acceptable generally. I hope we'll get an answer from the Android guys/ladies. On Jun 26, 10:53 pm, Justin Anderson magouyaw...@gmail.com wrote: I'm not sure, but I doubt it... Have you tried it? Did it work? Thanks, Justin Anderson MagouyaWare Developerhttp://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 2:27 PM, Tamás Kovács falcon.firebre...@gmail.comwrote: I know that the UI elements (View hierarchy) may only be manipulated from the UI thread. For a background operation, the AsyncTask can be used, which offers event handers to reach the UI thread. To be brief, is it allowed to instantiate a View (tied to getApplicationContext()) in a non-UI thread? This custom View descendant -- once instantiated -- is added to the view hierarchy from the UI thread. So only the constructor call is done inside an Asynctask.doInBackground; its attaching (addView(...))to the Activity's root layout hierarchy is still done in the UI thread. (I pre-instantiate the View in an asynctask because when it's needed in an Activity, it must be instantly 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 -- 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 -- 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] Re: Instantiating (but not attaching!) a View from a non-UI thread
It is not safe, and definitely not guaranteed to even work. On Tue, Jun 26, 2012 at 3:04 PM, Tamás Kovács falcon.firebre...@gmail.com wrote: OK I made additional research and source code exploring: only *ViewGroup* and its descendants check the Thread, the *View* class does not. It does not even STORE the thread which created it. Based on this, it should be safe to create Views (but never Viewgroups) in different threads. It would be nice if Dianne or Romain could confirm this. On Jun 26, 10:53 pm, Justin Anderson magouyaw...@gmail.com wrote: I'm not sure, but I doubt it... Have you tried it? Did it work? Thanks, Justin Anderson MagouyaWare Developerhttp://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 2:27 PM, Tamás Kovács falcon.firebre...@gmail.comwrote: I know that the UI elements (View hierarchy) may only be manipulated from the UI thread. For a background operation, the AsyncTask can be used, which offers event handers to reach the UI thread. To be brief, is it allowed to instantiate a View (tied to getApplicationContext()) in a non-UI thread? This custom View descendant -- once instantiated -- is added to the view hierarchy from the UI thread. So only the constructor call is done inside an Asynctask.doInBackground; its attaching (addView(...))to the Activity's root layout hierarchy is still done in the UI thread. (I pre-instantiate the View in an asynctask because when it's needed in an Activity, it must be instantly 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 -- 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 -- 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: Instantiating (but not attaching!) a View from a non-UI thread
I would still advise against it, because you don't have control of the code after you call the constructor of the View. Creating a View should never be that expensive (i.e. time consuming) that it could not be done on the UI thread. If the creation of the View needs other pieces of data that are expensive to compute, just compute those pieces of data in the background thread and create the View in the UI thread after that, giving it the earlier computed data. On Tuesday, June 26, 2012 6:04:44 PM UTC-4, Tamás Kovács wrote: OK I made additional research and source code exploring: only *ViewGroup* and its descendants check the Thread, the *View* class does not. It does not even STORE the thread which created it. Based on this, it should be safe to create Views (but never Viewgroups) in different threads. It would be nice if Dianne or Romain could confirm this. On Jun 26, 10:53 pm, Justin Anderson magouyaw...@gmail.com wrote: I'm not sure, but I doubt it... Have you tried it? Did it work? Thanks, Justin Anderson MagouyaWare Developerhttp://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 2:27 PM, Tamás Kovács falcon.firebre...@gmail.comwrote: I know that the UI elements (View hierarchy) may only be manipulated from the UI thread. For a background operation, the AsyncTask can be used, which offers event handers to reach the UI thread. To be brief, is it allowed to instantiate a View (tied to getApplicationContext()) in a non-UI thread? This custom View descendant -- once instantiated -- is added to the view hierarchy from the UI thread. So only the constructor call is done inside an Asynctask.doInBackground; its attaching (addView(...))to the Activity's root layout hierarchy is still done in the UI thread. (I pre-instantiate the View in an asynctask because when it's needed in an Activity, it must be instantly 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 -- 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] Problem with notifications and recent activities list
As per the current UI guidelines, a notification should either go to a complete activity back stack (entirely replacing whatever your current task is), or it should launch an activity that is entirely separate from your main activity's task. For the former, you can use things like http://developer.android.com/reference/android/support/v4/app/TaskStackBuilder.html For the latter, you can set your android:taskAffinity= for that activity in your manifest so that it is not considered to be part of the main task of the app. On Tue, Jun 26, 2012 at 2:47 PM, Brett bnotting...@gmail.com wrote: I'm having nothing but trouble with something that seems pretty basic. So I have a notification set up so that it launches to my main activity with SINGLE_TOP and CLEAR_TOP. All this works well and I act accordingly to the notification. But what happens is that in the recent app list (if you hold down home or on ICS click on task switcher) that intent is now the notification intent instead of the typical bring to front your whole activity. For instance, if I launch a new activity from my main task, then click home, then go to the recent app list and click it, I get the clear top again with my original notification extras. I've tried every combination of things I can think of to try and get this to work with no solution in sight. No matter what I do, whatever my notification parameters and extras are, they are maintained in the recent applications. How can I send a notification intent to my app without it hijacking the recent application list? Btw, if I do the FLAG_ACTIVITY_NO_HISTORY, then nothing is in the recent applications. Any thoughts? -- 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 -- 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