[android-developers] UI Automator Viewer from SDK tools Revision 21
I have posted a question on Stack Overflow http://stackoverflow.com/questions/15347294/ui-automator-viewer-from-sdk-tools-revision-21 Please add to it if anyone knows the answer. Reg, Varun -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: Implementing onShowCustomView on Android 3.1 throws in HTML5VideoFullScreen
Its been a long time but as i can recall we dropped video tag and went forward with Phonegap Media Plugin coz of following reasons: 1. On 2.3 and below there was no sync in play time in fulllscreen and embedded video seek bar. It was annoying. 2. Poster resizing issue. We didn't spend much time on it but there are some ways to fix it i guess. 3. On ICS and onwards video gets embedded. Embedded mode doesn't look good on phones, its better to have Fullscreen mode for phones. Other Ways than video tag: Having a div with poster img and play button. Which ll launch a Video Player in full through Phonegap bridge. Cons : Was causing INVALID_STATE_ERR: DOM Exception 11 on Samsung Galaxy Nexus (ICS Version) when we play video for second time. Phonegap fulfilled all our purpose so with out wasting any more time we went ahead with it. Hope it helps. Reg, Varun On Tue, Aug 7, 2012 at 8:41 AM, Zhao Rong zhaor...@gmail.com wrote: Hi Varun, Have your solved this problem? I meet the same one now... Thanks Rong Zhao On Sunday, March 11, 2012 10:20:25 PM UTC+8, varun tewari wrote: One problem i am facing currently is upon second launch of media player application is getting crashed because i have not stopped playback and released Media player. As VideoSurfaceView object, which we get in onShowCustomView function from 3.0 OS, are specific to browser and not a VideoView object as in, till 2.3 OS. How can i access it, stopPlayback and release resources? Thanks, Varun On Mon, Oct 31, 2011 at 4:28 PM, novemberox novembe...@gmail.com wrote: To make it work you just need to override getVideoLoadingProgressView() in WebChromeClient in WebView i.e. @Override public View getVideoLoadingProgressView() { ProgressBar bar = new ProgressBar(Context); return bar; } On 20 Paź, 14:28, M L novembe...@gmail.com wrote: Hi, nothing new on this I have also topic here:http://stackoverflow.com/** questions/7217159/**implementing-onshowcustomv.http://stackoverflow.com/questions/7217159/implementing-onshowcustomv. .. 2011/10/20 luciofm luci...@gmail.com Hi novemberox Any progress on this??? I'm having the same issue in a project If I don't find any solution I'll have to redirect it to the videoplayer via Intent unitl the ICS source code is released. Thanks Lúcio Maciel luci...@gmail.com On Wed, Aug 31, 2011 at 07:45, novemberox novembe...@gmail.com wrote: I also found, that enabling hardware acceleration fix issue with playing embedded video. Full screen still doesn't work. On 29 Sie, 21:34, novemberox novembe...@gmail.com wrote: A tip would be useful :) I tried to find Google browser sources in Android 3.1, but I'm not quite sure if sources here: http://android.git.kernel.**org/?p=platform/packages/apps/** Browser.git;a.http://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a. .. are the sources used in 3.1. On 27 Sie, 22:28, novemberox novembe...@gmail.com wrote: Hi, I'm trying to play video in html on fullscreen. When I click on fullscreen button in video method onShowCustomView is fired. Here is my implementation: public void onShowCustomView(View view, CustomViewCallback callback) { super.onShowCustomView(view, callback); if (view instanceof FrameLayout) { customComponenet.addView(view, new FrameLayout.LayoutParams( ViewGroup.LayoutParams.FILL_**PARENT, ViewGroup.LayoutParams.FILL_**PARENT, Gravity.CENTER)); customComponenet.** setVisibility(View.VISIBLE); } } Where customComponenet is FrameLayout placed on top of my current layout. Wideo is playing good, it's visibile and everything seams to be ok but it throws: 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): FATAL EXCEPTION: main 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): java.lang.NullPointerException 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.webkit.**HTML5VideoFullScreen.**switchProgressView(** HTML5VideoFullScreen .java: 320) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.webkit.HTML5VideoView.**setPlayerBuffering(** HTML5VideoView.java: 319) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.webkit.HTML5VideoView.**start(HTML5VideoView.java:85) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.webkit.**HTML5VideoViewProxy $VideoPlayer.onPrepared(**HTML5VideoViewProxy.java:257) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.webkit.**HTML5VideoViewProxy.**onPrepared(** HTML5VideoViewProxy.java: 278) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235
Re: [android-developers] How to hide apps in the launcher?
You may need to create a Home Screen Launcher experience for yourself.creating a front-end interface as suggested by Kristopher..though its not the best design, but you may have your own reasons or client req, we understand. On Mon, Jul 30, 2012 at 9:19 AM, Kristopher Micinski krismicin...@gmail.com wrote: Why do you want to do this? Because it's not your decision, it's theirs. I'd be interested to hear an explanation as to why you want to hide your app, I'd be interested to hear ones that aren't my app is malware. I actually can think of an example: when you have something like an app that provides services to other apps you distribute (even though this in itself might not be the most kosher design), but you can still make a frontend, in this case. kris On Sun, Jul 29, 2012 at 9:21 PM, perumal316 perumal...@gmail.com wrote: Hi All, In some of the launchers, there is an option to hide apps from the launcher. Any idea how this can be done? I want to hide other apps while my apps is running. Is this possible? Is there any other method to do this? Thanks In Advance, Perumal -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Re: View Pager performance hit when inflating views
Thanks for your reply. Actually there are some more items below List, per page. Now i have to create another ViewPager and sync scrolls between them I know that doesn't look very clean, but looks like no other option for me.. Br, Varun On Mon, May 7, 2012 at 6:31 PM, Jason Teagle teagle.ja...@gmail.com wrote: But as soon as i add a linear or relative layout as parent to list view ...i am able to see the lag while scrolling Although I can't really help you reach an answer that will help, I will just say that using layouts as the parent *will* decrease speed performance due to having to do the extra work to lay everything out according to the rules. Why were you trying to add a parent layout to the list view? Is the list view not the only item on the screen, per page? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@**googlegroups.comandroid-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
[android-developers] View Pager performance hit when inflating views
Guys, In my recent application, i had 80 items each one is a list view, in my View Pager. I observed a performance hit, if i create then *dynamically with Java code*v/s i *nflating view* from xml. I see a terrible lag in swiping left right, when i use inflating view approach...That's because GC calls increases like hell in logcat I use below method for inflating each list view for each view pager. *mLayoutInflater.inflate(R.layout.list, null, false);* * * I thought we can use View pager like ListViews and GridViews... Is there something i m missing here??? Br, Varun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: View Pager performance hit when inflating views
Okay so i tried some more Now layout xml has only listview as rootview and their is no performance difference as suchin total view pager has 80 listviews... But as soon as i add a linear or relative layout as parent to list view ...i am able to see the lag while scrolling I also lowered my view pager childs to 5 from 80, but no luck... Any expert advice ll be appreciated. Br, Varun On Mon, May 7, 2012 at 4:27 PM, Varun Tewari varuntewari2...@gmail.comwrote: Guys, In my recent application, i had 80 items each one is a list view, in my View Pager. I observed a performance hit, if i create then *dynamically with Java code * v/s i*nflating view* from xml. I see a terrible lag in swiping left right, when i use inflating view approach...That's because GC calls increases like hell in logcat I use below method for inflating each list view for each view pager. *mLayoutInflater.inflate(R.layout.list, null, false);* * * I thought we can use View pager like ListViews and GridViews... Is there something i m missing here??? Br, Varun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Implementing onShowCustomView on Android 3.1 throws in HTML5VideoFullScreen
One problem i am facing currently is upon second launch of media player application is getting crashed because i have not stopped playback and released Media player. As VideoSurfaceView object, which we get in onShowCustomView function from 3.0 OS, are specific to browser and not a VideoView object as in, till 2.3 OS. How can i access it, stopPlayback and release resources? Thanks, Varun On Mon, Oct 31, 2011 at 4:28 PM, novemberox novembe...@gmail.com wrote: To make it work you just need to override getVideoLoadingProgressView() in WebChromeClient in WebView i.e. @Override public View getVideoLoadingProgressView() { ProgressBar bar = new ProgressBar(Context); return bar; } On 20 Paź, 14:28, M L novembe...@gmail.com wrote: Hi, nothing new on this I have also topic here: http://stackoverflow.com/questions/7217159/implementing-onshowcustomv... 2011/10/20 luciofm luci...@gmail.com Hi novemberox Any progress on this??? I'm having the same issue in a project If I don't find any solution I'll have to redirect it to the videoplayer via Intent unitl the ICS source code is released. Thanks Lúcio Maciel luci...@gmail.com On Wed, Aug 31, 2011 at 07:45, novemberox novembe...@gmail.com wrote: I also found, that enabling hardware acceleration fix issue with playing embedded video. Full screen still doesn't work. On 29 Sie, 21:34, novemberox novembe...@gmail.com wrote: A tip would be useful :) I tried to find Google browser sources in Android 3.1, but I'm not quite sure if sources here: http://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a. .. are the sources used in 3.1. On 27 Sie, 22:28, novemberox novembe...@gmail.com wrote: Hi, I'm trying to play video in html on fullscreen. When I click on fullscreen button in video method onShowCustomView is fired. Here is my implementation: public void onShowCustomView(View view, CustomViewCallback callback) { super.onShowCustomView(view, callback); if (view instanceof FrameLayout) { customComponenet.addView(view, new FrameLayout.LayoutParams( ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT, Gravity.CENTER)); customComponenet.setVisibility(View.VISIBLE); } } Where customComponenet is FrameLayout placed on top of my current layout. Wideo is playing good, it's visibile and everything seams to be ok but it throws: 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): FATAL EXCEPTION: main 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): java.lang.NullPointerException 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.webkit.HTML5VideoFullScreen.switchProgressView(HTML5VideoFullScreen .java: 320) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.webkit.HTML5VideoView.setPlayerBuffering(HTML5VideoView.java: 319) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.webkit.HTML5VideoView.start(HTML5VideoView.java:85) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.webkit.HTML5VideoViewProxy $VideoPlayer.onPrepared(HTML5VideoViewProxy.java:257) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.webkit.HTML5VideoViewProxy.onPrepared(HTML5VideoViewProxy.java: 278) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.webkit.HTML5VideoView.onPrepared(HTML5VideoView.java:265) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.webkit.HTML5VideoFullScreen.onPrepared(HTML5VideoFullScreen.java: 164) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java: 1456) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.os.Handler.dispatchMessage(Handler.java:99) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.os.Looper.loop(Looper.java:132) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at android.app.ActivityThread.main(ActivityThread.java:4028) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at java.lang.reflect.Method.invokeNative(Native Method) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at java.lang.reflect.Method.invoke(Method.java:491) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:844) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602) 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at dalvik.system.NativeStart.main(Native Method) What am I doing
Re: [android-developers] HTML5 video tag and Amazon S3
Hey, I recently fell into similar problem. Browsing through web i came to know the problem is known to amazon, follow the thread for the same https://forums.aws.amazon.com/thread.jspa?threadID=77663; It has to do with https protocol. Try using http instead, works very well to me. Br, Varun On Thu, Oct 6, 2011 at 4:20 PM, Alen Mujezinovic flashingpump...@gmail.comwrote: Hello group I've run into a problem today that I can't solve. We're building a small app that stores video files on S3 and offers playback in the browser. This works fine on desktop browsers and iOS mobile devices but when trying to play the videos on Android an error message pops up: *Cannot play video* Sorry, this video cannot be played. When serving the same file from our servers though, it plays fine. Here's the headers returned from the local server and from S3: $ curl -I 127.0.0.1:8000/media/videos/2011/09/07/test-edit-1.mp4 HTTP/1.0 200 OK Date: Thu, 06 Oct 2011 10:47:35 GMT Server: WSGIServer/0.1 Python/2.6.1 Last-Modified: Fri, 09 Sep 2011 11:31:34 GMT Content-Length: 1595696 Content-Type: video/mp4 $ curl -I https://theeditpool.s3.amazonaws.com/test-client/foo/videos/2011-10-06-asdf.mp4 HTTP/1.1 200 OK x-amz-id-2: 8yyvFaVj7+2/VnKnk+HgZOxr0xjYu15UmOh5MUsJBJ2QVDRMPj/vWDMpS1edIZ5c x-amz-request-id: 33DE6C6C051A3A15 Date: Thu, 06 Oct 2011 10:48:42 GMT Cache-Control: max-age=604800 Last-Modified: Thu, 06 Oct 2011 10:02:12 GMT ETag: 8b29fe5416377e4fde563756558310aa Accept-Ranges: bytes Content-Type: video/mp4 Content-Length: 1595696 Server: AmazonS3 Logcat output when attempting to play the file in the browser: D/MediaPlayer(11669): Couldn't open file on client side, trying server side I/StagefrightPlayer( 68): setDataSource(' https://theeditpool.s3.amazonaws.com/test-client/foo/videos/2011-10-06-asdf.mp4 ') E/MediaPlayer(11669): error (1, -2147483648) E/MediaPlayer(11669): Error (1,-2147483648) D/VideoView(11669): Error: 1,-2147483648 When opening the url *directly* the browser downloads the video file. Any pointers would really be appreciated. I've not found out what is going wrong here... Alen -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Customize Android Source Code to run multiple Application on same Screen.
I have encountered similar situation. The only difference is i don't want to preview different application created by others. I have multiple apks each one has one preview to show inside one base application. All these previews in each apk, is a fragment of 2x2. Can anybody help me with that? Reg, Varun On Sat, Nov 12, 2011 at 6:51 AM, Lew lewbl...@gmail.com wrote: On Wednesday, November 9, 2011 5:15:30 AM UTC-8, Pawan wrote: You mean to say on wrong group, No, they meant wrong list, not wrong group. If they'd meant wrong group, they wouldn't have said, wrong list. I have applied to those groups for membership. Since some people are common on all the groups, so trying luck here. I can't sit and wait for approval. Lists like this are not a personal, free help desk where you can demand instant service. They are a volunteer-based community of people with shared interests. You cannot demand quick answers, especially when you are on the wrong list. This is neither good etiquette nor good sense. Post on the correct list, please. On Wed, Nov 9, 2011 at 6:31 PM, Kostya Vasilyev kman...@gmail.comwrote: First and foremost, you're on the wrong list. Find a more appropriate one here: http://source.android.com/**community/index.htmlhttp://source.android.com/community/index.html 09.11.2011 16:58, Pawan Singh Rathore пишет: Am I in right direction? -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.com To unsubscribe from this group, send email to android-develop...@**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] Showing fragment of multiple apks in other apk's activity
Guys, I have encountered a situation which i don't know how to proceed with. I have multiple apks , each one has one preview to show inside one base activity of other apk. All these previews in each apk, is a fragment of 2x2. Is there a way i can do it on SDK level? If yes can anybody help me with that? Reg, Varun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Showing fragment of multiple apks in other apk's activity
I know we can share layouts from other apks. Have successfully did it. But not able to inflate layouts with Fragments from others apk. Do we need to specify anything special for it. Reg, Varun On Tue, Dec 20, 2011 at 4:45 PM, Varun Tewari varuntewari2...@gmail.comwrote: Guys, I have encountered a situation which i don't know how to proceed with. I have multiple apks , each one has one preview to show inside one base activity of other apk. All these previews in each apk, is a fragment of 2x2. Is there a way i can do it on SDK level? If yes can anybody help me with that? Reg, Varun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Pls send me android souce code....
hahahha. On Tue, Dec 20, 2011 at 10:40 AM, John Coryat cor...@gmail.com wrote: Here you go: http://bit.ly/ucalcF -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Send Sms Bug in 2.3 OS
Guys, While working on a AutoReply app i found a bug which is bit strange. I have a receiver for SMS RECEIVED. It start a service to send message using below api smsManager.sendTextMessage(number, null, message, PendingIntent.getBroadcast( this, 0, new Intent(ACTION_SMS_SENT), 0), null); I handle following cases in ACTION SMS SENT receiver: case Activity.RESULT_OK: message = Message sent; break; case SmsManager.RESULT_ERROR_GENERIC_FAILURE: break; case SmsManager.RESULT_ERROR_NO_SERVICE: break; case SmsManager.RESULT_ERROR_NULL_PDU: break; case SmsManager.RESULT_ERROR_RADIO_OFF: break; I always see above error in red, dont know whats the problem as number is correct. I do not know how to debug further. If i call the same api to send message from activity it works and recipient is able to receive my message. This is getting very strange. Please let me know your thoughts. Thanks Reg, Varun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Fragments Map Support in Honeycomb
Make sure your activity which contains Fragment which inturn contains MapView, extends MapActivity. For your TestFragment should extend Fragment. Find ur map view by id from the inflated layout in onCreateView(). **There is a disadvantage with current design it can not have two MapView per MapActivity. Reg, Varun On Mon, Aug 1, 2011 at 6:26 PM, narendra bagdwal narendra.bagd...@gmail.com wrote: Hi Varun can u send sample code for that. Thanks, On May 3, 8:48 pm, Varun Tewari varuntewari2...@gmail.com wrote: @TreKing: Thanks for sharing this thread. I actually fixed my problem by moving my fragments to a Root MapActivity. While inflating mapView with other children of Fragment didn't cause any problem this way. Hope this will be helpful for others. Thanks Reg, Varun On Mon, May 2, 2011 at 11:29 PM, TreKing treking...@gmail.com wrote: On Mon, May 2, 2011 at 12:54 PM, Varun Tewari varuntewari2...@gmail.comwrote: Is it possible to achieve with current Fragment Support ? http://groups.google.com/group/android-developers/browse_thread/threa. .. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp:// 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] Preloaded Widget in Custom Launcher
Guys, While working on my own launcher, i tried to integrate my launcher with a set of my own widgets. I want these widgets to be pre-installed (don't by widget pick list). I have bind widget permission in place, but it gives me an error User 10032 does not have android.permission.BIND_APPWIDGET When i went through some of the discussion threads found security issues are the reason for this. “This is deliberately not available to applications. If you want to add a widget, you need to launch the selector UI for the user to pick the widget which will then take care of the bind. Widgets can expose a lot of private data of all types, so it is not safe to allow an application to arbitrarily bind to them without the user implicitly approving (through the selection UI). - Show quoted text - -- Dianne Hackborn Android framework engineer hack...@android.com ” My question is if the widget provider is in scope of my same user, as of my Launcher. Why i cant bind it with my own launcher? That's not sniffing. Is there a way or i am missing something to make this work? Let me know your thoughts. Thanks Reg, Varun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Preloaded Widget in Custom Launcher
Also does anybody know how Go Launcher is able to install widgets without a Pick Intent. They also have an uninstall widget option from manage applications. This means Go Widgets are in different package than Go Launcher package. Can anybody tell where such stuffs are documented? On Mon, Jul 25, 2011 at 3:26 PM, Varun Tewari varuntewari2...@gmail.comwrote: Guys, While working on my own launcher, i tried to integrate my launcher with a set of my own widgets. I want these widgets to be pre-installed (don't by widget pick list). I have bind widget permission in place, but it gives me an error User 10032 does not have android.permission.BIND_APPWIDGET When i went through some of the discussion threads found security issues are the reason for this. “This is deliberately not available to applications. If you want to add a widget, you need to launch the selector UI for the user to pick the widget which will then take care of the bind. Widgets can expose a lot of private data of all types, so it is not safe to allow an application to arbitrarily bind to them without the user implicitly approving (through the selection UI). - Show quoted text - -- Dianne Hackborn Android framework engineer hack...@android.com ” My question is if the widget provider is in scope of my same user, as of my Launcher. Why i cant bind it with my own launcher? That's not sniffing. Is there a way or i am missing something to make this work? Let me know your thoughts. Thanks Reg, Varun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Out of Memory Exception
Make sure you are using different set of graphics for ldpi/mdpi/hdpi/etc. Or else it will scale drawables from base folder, which eats cpu cycles and lots of memory. Reg, Varun On Mon, Jul 25, 2011 at 10:23 PM, Nick Risaro nris...@gmail.com wrote: I think the problem is with your background, try with a smaller picture On Mon, Jul 25, 2011 at 8:38 AM, chetan chetanchauha...@gmail.com wrote: bitmap size exceeds VM budget -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Fragments Map Support in Honeycomb
@TreKing: Thanks for sharing this thread. I actually fixed my problem by moving my fragments to a Root MapActivity. While inflating mapView with other children of Fragment didn't cause any problem this way. Hope this will be helpful for others. Thanks Reg, Varun On Mon, May 2, 2011 at 11:29 PM, TreKing treking...@gmail.com wrote: On Mon, May 2, 2011 at 12:54 PM, Varun Tewari varuntewari2...@gmail.comwrote: Is it possible to achieve with current Fragment Support ? http://groups.google.com/group/android-developers/browse_thread/thread/b705bbd72d28d000 - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Fragments Map Support in Honeycomb
Hey Guys, I saw many blogs and forums for this. Their are no updates after mid April on this. Have we reached any conclusion ? Are there any upgrades provided by Android Native itself ? My app's minSdkVersion is 11, having List Frag in Left Panel and Details Frag in Right Panel which contains Maps. Is it possible to achieve with current Fragment Support ? Thanks Reg, Varun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] List onItemSelectedListener not working
Hey Guys, While working with fragments i am trying to have one list in left panel and detail fragment in right side of it. I have my first item item already selected as soon as i launch app. And SHOULD HOLD ITS SELECTED STATE I tried using onItemSelectedListener with setSelection(0), but it didn't get called. Any one knows the reason? Reg, Varun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Fwd: List onItemSelectedListener not working
Yes you are right that's what i did. You can refer following snippet: ListView mainCategoryList; mainCatrgoryList.setAdapter(mainCategoryAdapter); mainCategoryList.setOnItemSelectedListener(new OnItemSelectedListener() { @Override public void onItemSelected(AdapterView? arg0, View view, int arg2, long arg3) { view.setBackgroundResource(R.drawable.category_list_item_focus_bg); } @Override public void onNothingSelected(AdapterView? arg0) { // TODO Auto-generated method stub } }); mainCategoryList.setSelection(0); Let me know, if you need anything more. I even tried to put these few line of code in ApiDemo but it didn't even work there. Reg, Varun On Tue, Apr 26, 2011 at 12:15 PM, cool rss feed coolrssfe...@gmail.comwrote: Why dont you use the setSelection(0) inside onCreate()? onItemSelectedListener() will not be triggered by itself. Terence On Apr 26, 2:41 pm, Varun Tewari varuntewari2...@gmail.com wrote: Hey Guys, While working with fragments i am trying to have one list in left panel and detail fragment in right side of it. I have my first item item already selected as soon as i launch app. And SHOULD HOLD ITS SELECTED STATE I tried using onItemSelectedListener with setSelection(0), but it didn't get called. Any one knows the reason? Reg, Varun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Fwd: List onItemSelectedListener not working
setItemChecked() actually did'nt work with in case of onItemSelectedListener. Do we have some cleaner way, means through xml selector or using setActivated() for Android 3.0, with screwing getView of List Adapter. Reg, Varun On Tue, Apr 26, 2011 at 1:09 PM, cool rss feed coolrssfe...@gmail.comwrote: So I assume your activity is in Touch mode. If you use setSelection() in Touch mode, there will be no visual effect. if you really think you want to get the first item highlighted, I might try using setItemChecked() see if it works. Terence On Apr 26, 3:18 pm, Varun Tewari varuntewari2...@gmail.com wrote: Yes you are right that's what i did. You can refer following snippet: ListView mainCategoryList; mainCatrgoryList.setAdapter(mainCategoryAdapter); mainCategoryList.setOnItemSelectedListener(new OnItemSelectedListener() { @Override public void onItemSelected(AdapterView? arg0, View view, int arg2, long arg3) { view.setBackgroundResource(R.drawable.category_list_item_focus_bg); } @Override public void onNothingSelected(AdapterView? arg0) { // TODO Auto-generated method stub } }); mainCategoryList.setSelection(0); Let me know, if you need anything more. I even tried to put these few line of code in ApiDemo but it didn't even work there. Reg, Varun On Tue, Apr 26, 2011 at 12:15 PM, cool rss feed coolrssfe...@gmail.com wrote: Why dont you use the setSelection(0) inside onCreate()? onItemSelectedListener() will not be triggered by itself. Terence On Apr 26, 2:41 pm, Varun Tewari varuntewari2...@gmail.com wrote: Hey Guys, While working with fragments i am trying to have one list in left panel and detail fragment in right side of it. I have my first item item already selected as soon as i launch app. And SHOULD HOLD ITS SELECTED STATE I tried using onItemSelectedListener with setSelection(0), but it didn't get called. Any one knows the reason? Reg, Varun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Fwd: List onItemSelectedListener not working
Thanks alot. It worked like a charm :) Reg, Varun On Tue, Apr 26, 2011 at 4:49 PM, Mark Murphy mmur...@commonsware.comwrote: On Tue, Apr 26, 2011 at 5:12 AM, Varun Tewari varuntewari2...@gmail.com wrote: setItemChecked() actually did'nt work with in case of onItemSelectedListener. Do we have some cleaner way, means through xml selector or using setActivated() for Android 3.0, with screwing getView of List Adapter. Here are some sample projects showing the activated feature in use: https://github.com/commonsguy/cw-android/tree/master/Fragments/EU4You_6 https://github.com/commonsguy/cw-advandroid/tree/master/Honeycomb/FeedFragments -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Fwd: List onItemSelectedListener not working
Thanks alot. It worked like a charm :) Reg, Varun On Tue, Apr 26, 2011 at 4:49 PM, Mark Murphy mmur...@commonsware.comwrote: On Tue, Apr 26, 2011 at 5:12 AM, Varun Tewari varuntewari2...@gmail.com wrote: setItemChecked() actually did'nt work with in case of onItemSelectedListener. Do we have some cleaner way, means through xml selector or using setActivated() for Android 3.0, with screwing getView of List Adapter. Here are some sample projects showing the activated feature in use: https://github.com/commonsguy/cw-android/tree/master/Fragments/EU4You_6 https://github.com/commonsguy/cw-advandroid/tree/master/Honeycomb/FeedFragments -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to publish Motorolo Xoom Build to market
Hey Guys, We have some applications already in android market. We have managed to support *Motorola Xoom and Galaxy Tab2* for some of them. I was just wondering how i can publish my applciation as our existing application have 1.6 nd onwards support. So my application is already visible for XOOM and Tab2. *What should i do to have one build for all Phone Devices and one for Tablet Devices? But for Tablet i just want to see the Tablet Build*. As two builds can be confusing to User. How can i achieve this with out changing Application Name? I can not find any Threads associate with this problem. Am i the first one to ask this or i am doing something wrong in Manifest? HELP Thanks in Advance Reg, Varun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 publish Motorolo Xoom Build to market
Thanks for your precious time. Your first option is what i was going forward with. This makes more sense now :) . Thanks Reg, Varun -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Getting the Android Java source?
Can anybody tell me how this works. I use Ganymede. Updated eclipse with above mentioned URL. While debugging my code still says Source Not Found. Do i need to specify any path after updating my eclipse for this. Thanks in advance. VARUN On Dec 28 2010, 9:42 pm, John Lussmyer johnlussm...@gmail.com wrote: Installed and works just fine! It's been REALLY helpful, as I think it just let me find a bug in the Animation class. On Tue, Dec 28, 2010 at 7:54 AM, snpe snp...@gmail.com wrote: John, Could you please tell me if you are install Android sources plugin successfully ? I have tested them, but I'm not sure if somebody use it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Getting the Android Java source?
I found the downloaded source code under eclipse/plugins. Thanks anyways. VARUN On Mon, Feb 7, 2011 at 6:07 PM, varun tewari varuntewari2...@gmail.comwrote: Can anybody tell me how this works. I use Ganymede. Updated eclipse with above mentioned URL. While debugging my code still says Source Not Found. Do i need to specify any path after updating my eclipse for this. Thanks in advance. VARUN On Dec 28 2010, 9:42 pm, John Lussmyer johnlussm...@gmail.com wrote: Installed and works just fine! It's been REALLY helpful, as I think it just let me find a bug in the Animation class. On Tue, Dec 28, 2010 at 7:54 AM, snpe snp...@gmail.com wrote: John, Could you please tell me if you are install Android sources plugin successfully ? I have tested them, but I'm not sure if somebody use it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Emulator loses network connection issue
Guys i was suffering from the same issue. What i figured out in my case is, when i was connected to Wired Connection i wasn't able to see this problem and everything used to work fine. But when i connects sometime to Wireless Network i used to see this problem. What i noticed is, i used to make my laptop Hot Spot very offen and sometimes i used to forget to Stop Hot Spot. And Emulator used to get confused with incoming and outgoing network ports. So make sure u don't have multiple network issues. Reg, Varun On Sun, Jan 30, 2011 at 5:53 PM, H m...@howardb.com wrote: I've been suffering the same, but for a while now on previous emulator versions as well as the current. I had put it down to my PC simply being lacking on cpu and memory and assumed the emulator only worked up-to a point and I had to close and restart it. But if other people are now reporting the problem as 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.comandroid-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
Re: [android-developers] Re: disable the search key android alertdialog
Try using onSearchRequestedhttp://developer.android.com/reference/android/view/Window.Callback.html#onSearchRequested() (). Varun On Sat, Dec 11, 2010 at 11:30 PM, Mark Murphy mmur...@commonsware.comwrote: Put that in your Dialog subclass, then. On Sat, Dec 11, 2010 at 12:57 PM, acr acr...@gmail.com wrote: To add to my original post.. I do have the following (which DOES prevent the search key from being pressed) in the activity it just doesn't work when the dialog is open. if (keyCode == KeyEvent.KEYCODE_SEARCH) { System.out.println(search pressed); return true; } On Dec 11, 12:49 pm, acr acr...@gmail.com wrote: Hi, Anyone know of a way to prevent the search key from canceling an alert dialog? I have alert.setCancelable(false); and it works fine for the back button, but when i hit the search key it goes to search.. and when I close the search my NON-Cancelable dialog is gone. any way to fix this. 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.comandroid-developers%2bunsubscr...@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 London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en