[android-developers] Android screen capture delay due to writing data in the file..

2013-09-18 Thread ashish
Hi, I have a rooted device and i successfully capture the screenshot of current screen.and use the below code. Process process = Runtime.getRuntime().exec(su); DataOutputStream os = new DataOutputStream(process.getOutputStream()); os.writeBytes(/system/bin/screencap -p +

[android-developers] java.lang.StringIndexOutOfBoundsException while playing video in videoView : Android v 4.2.1

2013-09-18 Thread Matt
I am getting this crash when I play video on videoView in Android version 4.2.1. I found this out specifically on Micromax Canvas A210 device. It is not showing any message where the error is occurring. Is this a bug or something wrong in application? The crash log is as below: 09-18

Re: [android-developers] Android screen capture delay due to writing data in the file..

2013-09-18 Thread Cg
Use toast. ashish ashish.a...@gmail.com wrote: Hi, I have a rooted device and i successfully capture the screenshot of current screen.and use the below code. Process process = Runtime.getRuntime().exec(su); DataOutputStream os = new DataOutputStream(process.getOutputStream());

Re: [android-developers] java.lang.StringIndexOutOfBoundsException while playing video in videoView : Android v 4.2.1

2013-09-18 Thread Cg
Make runtime strings and do not use array -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] java.lang.StringIndexOutOfBoundsException while playing video in videoView : Android v 4.2.1

2013-09-18 Thread Harsh Vardhan
Could be a bug in Micromax's version of android.. On Wed, Sep 18, 2013 at 3:27 PM, Cg cgtprash...@gmail.com wrote: Make runtime strings and do not use array -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] onPreviewFrame() not being called the same number of times as the frame rate

2013-09-18 Thread TimeManx
I've created a subclass of SurfaceView which also implements Camera.PreviewCallback SurfaceHolder.Callback. The time difference between onPreviewFrame() calls is about 0.25 seconds which is 4/sec but the actual preview frame rate is definitely more than 25. I can't figure out why this is

[android-developers] Re: rrule not working

2013-09-18 Thread drjunior
This is the piece of code that I'm using: Calendar beginTime = Calendar.getInstance(); #increment one day to the actual time (just for precaution) beginTime.add(Calendar.HOUR, 1); beginTime.add(Calendar.DAY_OF_YEAR, 1); startMillis =

[android-developers] Re: FragmentManager.popBackStack not working when used with child fragment manager

2013-09-18 Thread Atlan
I had the same problem. The solution for me was simple: in onCreateView I had: // Create the adapter that will return a fragment for each of the three// primary sections of the app. mSectionsPagerAdapter = new SectionsPagerAdapter(getActivity() .getSupportFragmentManager()); where

[android-developers] how to write a button action in my activity of a class

2013-09-18 Thread Amit Mangal
Hi there, i have written a class of popupwindow which i call to display popup. this popupwindow is having spinner and and a button . i call the class and display popup. how to write done button action of that class in my activity from where i am calling the class so that i will get value

[android-developers] Re: rrule not working

2013-09-18 Thread drjunior
In order to test and debug just this piece of code I've created another app only with that part of the code that creates the event and it works surprisingly! So, the same code running on different apps has different effects(one creates the events and the repetitions correctly and the

[android-developers] Re: java.lang.StringIndexOutOfBoundsException while playing video in videoView : Android v 4.2.1

2013-09-18 Thread Nobu Games
I could not find any reference to String.substring in the original Android source code of VideoView. It looks like a broken device-specific customization to me. On Wednesday, September 18, 2013 4:34:02 AM UTC-5, Matt wrote: I am getting this crash when I play video on videoView in Android

[android-developers] Aligning column data in a listview

2013-09-18 Thread Phil Gibbs
I have a listview populated via a SimpleCursorAdapter backed by a ContentProvider. My final view contains a non-scrollable header (col hdgs), the ListView and a footer with totals for some of the columns. How can I ensure that (1) the data columns are all lined-up, preferably left-justified,

Re: [android-developers] how to write a button action in my activity of a class

2013-09-18 Thread TreKing
On Wed, Sep 18, 2013 at 10:10 AM, Amit Mangal forum.amit.man...@gmail.comwrote: how to write done button action of that class in my activity from where i am calling the class so that i will get value selected in the spinner in my activity. any idea ? Give your class a

[android-developers] Re: Aligning column data in a listview

2013-09-18 Thread Phil Gibbs
I finally got the first part right. Just need to line up the headings. On Wednesday, September 18, 2013 2:29:33 PM UTC-4, Phil Gibbs wrote: I have a listview populated via a SimpleCursorAdapter backed by a ContentProvider. My final view contains a non-scrollable header (col hdgs), the

Re: [android-developers] how to write a button action in my activity of a class

2013-09-18 Thread Amit Mangal
thanks for your reply do you have any example code or link ? On Thu, Sep 19, 2013 at 1:24 AM, TreKing treking...@gmail.com wrote: On Wed, Sep 18, 2013 at 10:10 AM, Amit Mangal forum.amit.man...@gmail.com wrote: how to write done button action of that class in my activity from where i am

[android-developers] List reach at start when i come back to activity

2013-09-18 Thread Amit Mangal
Hi developers I have a list view which is having 1000 entries i scroll to down and click on some item new activity opens. When i come back my scroll view points to start again . How can i make it on last position when i opened the activity? -- You received this message because you are

Re: [android-developers] List reach at start when i come back to activity

2013-09-18 Thread Baodong Chen
how about record scroll position and scroll to that position when onResume! 2013/09/19 5:21 Amit Mangal forum.amit.man...@gmail.com: Hi developers I have a list view which is having 1000 entries i scroll to down and click on some item new activity opens. When i come back my scroll view points

[android-developers] How to trigger USB plug-in events without physically touching plug

2013-09-18 Thread Tom
I have an app (Android version 4.0+) that communicates with a USB host device (IOIO OTG board). Communication requires that the adb daemon is running on the Android, but for unknown reasons the adb daemon sometimes terminates, and communication fails. A reboot of the Android device fixes

Re: [android-developers] onPreviewFrame() not being called the same number of times as the frame rate

2013-09-18 Thread Baodong Chen
Though not sure why this happened,this is not a good way to show preview! why not use setPreviewDisplay method? 2013/09/18 18:41 TimeManx shubhade...@gmail.com: I've created a subclass of SurfaceView which also implements Camera.PreviewCallback SurfaceHolder.Callback. The time difference

Re: [android-developers] Android screen capture delay due to writing data in the file..

2013-09-18 Thread Baodong Chen
Of course you can,but you should use native code to do that, SurfaceFlinger has interface for that! 2013/09/18 17:27 ashish ashish.a...@gmail.com: Hi, I have a rooted device and i successfully capture the screenshot of current screen.and use the below code. Process process =

Re: [android-developers] how to write a button action in my activity of a class

2013-09-18 Thread TreKing
On Wed, Sep 18, 2013 at 3:48 PM, Amit Mangal forum.amit.man...@gmail.comwrote: thanks for your reply do you have any example code or link ? No. The listener pattern is pretty standard in Java. Beyond that, I think what I described is pretty straight forward. If you're stuck on particulars, ask

[android-developers] Should SQLiteDatabases be limited to 2Gig?

2013-09-18 Thread Nathan
I am investigating the cause of some handled exceptions: SQLiteDiskIOException disk I/O error (code 1802) I ran across this thread which implies that, due to a bug in Android's version of SQLite, I should be limiting SQlite Databases to 2GB.

[android-developers] Expandable List-Check All

2013-09-18 Thread Abhilash baddam
Hi, I am trying to create a custom expandable list where there is a group view and child view will have a checkboxes. If i click on group view checkbox then all the child view checkboxes should checked and vice versa... Basically I want to implement check all and uncheck all functionality. I