[android-developers] Re: drawing too much power
It can't be plugged into the wall and computer at the same time. It recharges thru the micro-USB port. On Sep 15, 11:57 pm, Christopher Van Kirk christopher.vank...@gmail.com wrote: Plug it into the wall? On 9/16/2011 11:26 AM, bob wrote: I bought a Vizio Tablet. When I plug it into my PC, the PC says it's disabling the USB connection because it was drawing too much power. Any ideas how to get by this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] AutoCompleteTextView data binding problem
Hi, I have following two arrays and I want to bind them to a AutoCompleteTextView. My problem is when type on the textview it filters the nameArr and I lost the correct index in the idArr. How do I bind idArr to the view? String idArr[] = new String[]{1,2,3}; String nameArr[] = new String[]{a,b,c}; autoCompleteAdapter = new ArrayAdapterString(this, android.R.layout.simple_dropdown_item_1line); autoCompleteAdapter.setNotifyOnChange(true); autoComplete = (AutoCompleteTextView)findViewById(R.id.practice_search_text_edit); autoComplete.setAdapter(autoCompleteAdapter); for (int i = 0; i nameArr.length; i++) { autoCompleteAdapter.add(nameArr[i]); } Thanks. -Shamim -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] BitmapFactory 's decodeByteArray and decodeStream returns null
Hello Oscar, Thanks for the reply. But I already tried this approach. ByteArrayInputStream imageStream = new ByteArrayInputStream(data); Bitmap theImage = BitmapFactory.decodeStream(imageStream); *theImage* returned by *decodeStream* is null. Regards Siji -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How is RockPlayer doing hardware decoding?
If authentication over rtsp is a documented standard, then you could file a bug with details and hope that it gets resolved in a future version. Doug On Sep 15, 12:17 am, B.Arunkumar awsnetworkrecor...@gmail.com wrote: Hi, Regarding your question, MediaPlayer supports RTSP streaming but does not take all RTSP URLs, (with authentication, for instance). Atleast that is the experience we have had. The built in C++ RTSP Stack that comes with mediaplayer seems to have limited capabilities. Arunkumar On Sep 11, 4:19 am, Doug beafd...@gmail.com wrote: On Sep 9, 1:30 am, B.Arunkumar awsnetworkrecor...@gmail.com wrote: Would somebody have some idea what exactly has RockPlayer done in the Hardware Decoding mode on a high level basis? I mean have they used the mediaplayer as it is or they have changed something at the source code level of MediaPlayer to get more improvements than the MediaPlayer (support more RTSP Url formats) and things like that? Why do you say that MediaPlayer does not support rtsp? I ask this because it does support rtsp. It's documented. The audio/video format of the stream still has to be supported by the device, though. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 and JSON or Java object serialization
I wrote and published small library for JSON data binding: https://github.com/ko5tik/jsonserializer I uses GSON pull parsing , based on convetions, has small footprint and is good to marshal / unmarshal simple java beans to files. Release 0.6 is available from maven central. regartds, On Sep 15, 10:04 pm, John Goche johngoch...@googlemail.com wrote: Hello, I have some Java objects which need to be written to a database while the user interacts with the application. Such an object has nested objects and I was considering implementing a proper SQLite representation of the object. However in another application I just convert to JSON and write the whole object to the database as a single record. Is there an analogous serialization mechanism in android so that I may serialize the object and store a single sqlite record in the database (the serialized objects)? Any problems with this approach? What classes do I need to use? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: drawing too much power
maybe you should buy an adapter then.. On Fri, Sep 16, 2011 at 2:58 PM, bob b...@coolgroups.com wrote: It can't be plugged into the wall and computer at the same time. It recharges thru the micro-USB port. On Sep 15, 11:57 pm, Christopher Van Kirk christopher.vank...@gmail.com wrote: Plug it into the wall? On 9/16/2011 11:26 AM, bob wrote: I bought a Vizio Tablet. When I plug it into my PC, the PC says it's disabling the USB connection because it was drawing too much power. Any ideas how to get by this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] drawing text or gesture on image saved on sd card
Hello, Till now in my application i am scaling image and drawing it on screen according to screen size. after that user can draw text or any thing on it using his finger. and after that i convert view to Bitmap and i resize that bitmap and make it to the same height and width as real image. now the problem is in resizing to the quality of image become worse so i need to change in real image. So now can some one tell me how can i draw two canvas which overlay each other or i can draw image on ImageView and in canvas i only draw that Path which user draw using his fingure ? and the biggest challenge is how i can combine two images one is which has user inputed lines or curves and one is real image ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] phone gap
what is the difference between android phone gap and blackberry phonegap -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android native browser can't access https sites
Hi, I have noticed that for certain https websites, the native browser could not load them and just displays a blank white page. However, this is not an issue with Firefox Android application. Is it a known issue? Is there any workarounds? I tried in an Android 2.3.3 device. 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
[android-developers] Re: BitmapFactory 's decodeByteArray and decodeStream returns null
Where is it documented as to the format of your data stream? From what I can gather from the docs is that if the data cannot be decoded, you get NULL back. On Sep 16, 2:02 pm, Siji T G s...@techgentsia.com wrote: Hello Oscar, Thanks for the reply. But I already tried this approach. ByteArrayInputStream imageStream = new ByteArrayInputStream(data); Bitmap theImage = BitmapFactory.decodeStream(imageStream); *theImage* returned by *decodeStream* is null. Regards Siji -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Increase the App Size in Android
Hi, Release the memory used by each bitmap so you have fewer 'pages' in memory at the same time, see the bitmap recycle() method. Regards On Sep 15, 11:06 pm, TreKing treking...@gmail.com wrote: On Thu, Sep 15, 2011 at 4:17 AM, parasnath gudia@gmail.com wrote: is it possible You cannot arbitrarily increase the memory available on a given device. There are limits on resources, especially on mobile devices. Your job is to find clever ways to work around those limits. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: fling deceleration
bob wrote: What are the best formulas to use for fling deceleration? android. widget. Scroller pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Getting IBinder of a Remote object
Is it possible to get the IBinder for a remote object (which extends some stub, but it is not a service). Generally we get the Binder through the onBind() method. But as my object does not extend service, then how is it possible to get the Binder? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: BitmapFactory 's decodeByteArray and decodeStream returns null
Thanks for the reply Zsolt. My data stream comes from h264 video decoder , which is native. Format of this data stream is ARGB. Please note that I could display this image correctly using Bitmap. createBitmap() and setPixels () . Regards Siji -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Where does the get put?
Hi All, I am new to Android. I am writing an application for work. When I run the application on my HTC Inspire, where does the application get stored? I am trying to open an xml file stored as an asset, but I get a IO exception of FileNotFound. I tried looking through the phone but could not find it. Any help would be greatly appreciated. Thanks, Greg -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to capture Xon and Xoff of BluetoothPrinter
Hi, It is probably related to flow control messages http://en.wikipedia.org/wiki/Software_flow_control Regards On Sep 15, 11:11 pm, Sebs basimallasebas...@gmail.com wrote: Hi, I am trying to print a text file by my android phone but it seems my bluetooth printer is having just 16k memory . Can any one suggest me how to sence or understand the XON AND XOF status of BluetoothPrinter. regards, Sebs -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] regarding progress dialog
Hi, I want to send data to web service through soap. I want this method implementation in progress dialog box any one please help me . with regards, Nagu. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] native typeface cannot be made
Can someone tell me what is wrong with this font? https://sites.google.com/site/coolfonne/HelveticaNeue-Bold.ttf It worked on two phones, but not on two tablets. Android just says: native typeface cannot be made -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ImageView.setImageResource() causes GC every time
In addition to these informations, here are the properties of my ImageButtons LayoutParams lpImage = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); ImageButton ib = new ImageButton(this); ib.setLayoutParams(lpImage); ib.setAdjustViewBounds(true); ib.setBackgroundColor(Color.argb(0, 0, 0, 0)); ib.setScaleType(ScaleType.CENTER_INSIDE); ib.setOnClickListener(this); ib.setTag(ll); ib.setMaxHeight(screenheight / nombreLignesEtColonnes); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] regarding progress dialog
Hi Nagu, Make use of async task which acts as multi threading concept in android. Look at this link you get some idea: http://android-developers.blogspot.com/2010/07/multithreading-for-performance.html Regards, Yogi On 9/16/11, nageswara rao rajana nagu.raj...@gmail.com wrote: Hi, I want to send data to web service through soap. I want this method implementation in progress dialog box any one please help me . with regards, Nagu. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Bluetooth printer skipping lines of print
Hi, We have tried slowing the rate but its not helping and regarding the data being sent back i have gone through most of Blurtooth APi but cant find any help with it, i am struggling to know the printers state i.e XON and XOFF .PLZ can u suggest any. Regards, Sebs On Fri, Sep 16, 2011 at 12:45 PM, gjs garyjamessi...@gmail.com wrote: Hi, Try slowing the rate you are sending the data to the printer, or perhaps examine the data being sent back from the printer it might give you hints about buffer flow control. Regards On Sep 16, 2:48 pm, Sebastin Basimalla basimallasebas...@gmail.com wrote: I couldnt get u?? can u elaborate!! On Fri, Sep 16, 2011 at 9:56 AM, Zsolt Vasvari zvasv...@gmail.com wrote: Doesn't ensureAllPrintedViaBluetooth() work? On Sep 16, 12:03 pm, Sebs basimallasebas...@gmail.com wrote: We are pairing a blue tooth printer with an android phone and trying to print a file. The printer has 16K memory. It is ignoring a few lines of the file randomly. Is there a method to ensure that the printer always prints the complete content of the file. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
[android-developers] Framebuffers and the Galaxy S2
Open question: has anyone found a way to render to a texture with a framebuffer that works on the Galaxy S 2? Cheers... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 USE ROCK PLAYER IN OUR OWN application.
i am asking how to use , rock player in application not asking about contact. On Fri, Sep 16, 2011 at 12:41 PM, gjs garyjamessi...@gmail.com wrote: Contact rock player On Sep 16, 3:34 pm, NAVI NEW navi44...@gmail.com wrote: HOW TO USE ROCK PLAYER IN OUR OWN application. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: HOW TO USE ROCK PLAYER IN OUR OWN application.
Contact rock player On Sep 16, 3:34 pm, NAVI NEW navi44...@gmail.com wrote: HOW TO USE ROCK PLAYER IN OUR OWN application. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Quick Android App Dev Question from a Systems Engineering Viewpoint...
Hi, In general Android java app's work on any Android phone - given the api levels (etc etc etc) Regards On Sep 15, 7:36 am, yantman99 yan.ts...@gmail.com wrote: Hi I am new to Android App Development. My question is from a systems engineering standpoint, instead of writing individual apps that work specific to one phone, what are the down sides of writing a more universal app that does the same thing on many phones in terms of bloated and inefficient code and power/battery consumption increase? Please also recommend references for me to read for more info. Are there other down sides? 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] Hi
I am having trouble this ndk things. i try to run it and when i push the button which calls C source then exit rightaway with theses commands in Logcat. 09-16 02:39:15.886: INFO/DEBUG(31): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 09-16 02:39:15.886: INFO/DEBUG(31): Build fingerprint: 'generic/sdk/ generic/:2.2/FRF91/43546:eng/test-keys' 09-16 02:39:15.886: INFO/DEBUG(31): pid: 277, tid: 277 com.logicplant.ndkProject 09-16 02:39:15.886: INFO/DEBUG(31): signal 11 (SIGSEGV), fault addr 000c 09-16 02:39:15.886: INFO/DEBUG(31): r0 r1 0001 r2 0001 r3 000a 09-16 02:39:15.886: INFO/DEBUG(31): r4 80903688 r5 0004 r6 r7 0048 09-16 02:39:15.886: INFO/DEBUG(31): r8 bea648e8 r9 4186bd88 10 4186bd70 fp 09-16 02:39:15.886: INFO/DEBUG(31): ip 809036c0 sp bea64860 lr 80900f6f pc afd143e6 cpsr 4030 09-16 02:39:15.964: INFO/DEBUG(31): #00 pc 000143e6 /system/ lib/libc.so 09-16 02:39:15.964: INFO/DEBUG(31): #01 pc 0f6c /data/ data/com.logicplant.ndkProject/lib/libHelloLibrary.so 09-16 02:39:15.964: INFO/DEBUG(31): #02 pc 00013974 /system/ lib/libdvm.so 09-16 02:39:15.964: INFO/DEBUG(31): #03 pc 0003de3c /system/ lib/libdvm.so 09-16 02:39:15.964: INFO/DEBUG(31): #04 pc 00037216 /system/ lib/libdvm.so 09-16 02:39:15.964: INFO/DEBUG(31): #05 pc 000432ec /system/ lib/libdvm.so 09-16 02:39:15.964: INFO/DEBUG(31): #06 pc 00018714 /system/ lib/libdvm.so 09-16 02:39:15.973: INFO/DEBUG(31): #07 pc 0001e8c4 /system/ lib/libdvm.so 09-16 02:39:15.973: INFO/DEBUG(31): #08 pc 0001d790 /system/ lib/libdvm.so 09-16 02:39:15.973: INFO/DEBUG(31): #09 pc 0005408e /system/ lib/libdvm.so 09-16 02:39:15.973: INFO/DEBUG(31): #10 pc 0005bde2 /system/ lib/libdvm.so 09-16 02:39:15.973: INFO/DEBUG(31): #11 pc 00018714 /system/ lib/libdvm.so 09-16 02:39:15.973: INFO/DEBUG(31): #12 pc 0001e8c4 /system/ lib/libdvm.so 09-16 02:39:15.973: INFO/DEBUG(31): #13 pc 0001d790 /system/ lib/libdvm.so 09-16 02:39:15.983: INFO/DEBUG(31): #14 pc 00053eec /system/ lib/libdvm.so 09-16 02:39:15.983: INFO/DEBUG(31): #15 pc 0004072c /system/ lib/libdvm.so 09-16 02:39:15.983: INFO/DEBUG(31): #16 pc 00034454 /system/ lib/libdvm.so 09-16 02:39:15.983: INFO/DEBUG(31): #17 pc 0002c930 /system/ lib/libandroid_runtime.so 09-16 02:39:15.983: INFO/DEBUG(31): #18 pc 0002d85c /system/ lib/libandroid_runtime.so 09-16 02:39:15.983: INFO/DEBUG(31): #19 pc 8c86 /system/ bin/app_process 09-16 02:39:15.983: INFO/DEBUG(31): #20 pc d362 /system/ lib/libc.so 09-16 02:39:15.983: INFO/DEBUG(31): code around pc: 09-16 02:39:15.983: INFO/DEBUG(31): afd143c4 46c04718 4208 1c04b510 fb16f000 09-16 02:39:15.983: INFO/DEBUG(31): afd143d4 226089a3 43931c20 f00081a3 bd10fad5 09-16 02:39:15.983: INFO/DEBUG(31): afd143e4 8983b570 2b001c04 f00bd106 2501fefd 09-16 02:39:15.983: INFO/DEBUG(31): afd143f4 60032309 e02f426d 071a2500 f000d502 09-16 02:39:15.983: INFO/DEBUG(31): afd14404 1c05f883 2b006a23 69e0d005 28004798 09-16 02:39:15.983: INFO/DEBUG(31): code around lr: 09-16 02:39:15.983: INFO/DEBUG(31): 80900f4c 1c281c32 ef62f7ff f7ff1c28 2300ef9c 09-16 02:39:15.983: INFO/DEBUG(31): 80900f5c 480f542b 18201c29 ef46f7ff f7ff1c30 09-16 02:39:15.983: INFO/DEBUG(31): 80900f6c 59e3ef86 681b9a17 d106429a bdf0b019 09-16 02:39:15.983: INFO/DEBUG(31): 80900f7c 18204808 ef56f7ff f7ffe7f0 46c0ef66 09-16 02:39:15.983: INFO/DEBUG(31): 80900f8c 2764 0048 edc0 edcc 09-16 02:39:15.983: INFO/DEBUG(31): stack: 09-16 02:39:15.983: INFO/DEBUG(31): bea64820 4200 09-16 02:39:15.983: INFO/DEBUG(31): bea64824 0200 09-16 02:39:15.995: INFO/DEBUG(31): bea64828 afd41b6c /system/ lib/libc.so 09-16 02:39:15.995: INFO/DEBUG(31): bea6482c afd40328 /system/ lib/libc.so 09-16 02:39:15.995: INFO/DEBUG(31): bea64830 afd39b2a /system/ lib/libc.so 09-16 02:39:15.995: INFO/DEBUG(31): bea64834 09-16 02:39:15.995: INFO/DEBUG(31): bea64838 0048 09-16 02:39:15.995: INFO/DEBUG(31): bea6483c afd15a51 /system/ lib/libc.so 09-16 02:39:15.995: INFO/DEBUG(31): bea64840 afd14a9f /system/ lib/libc.so 09-16 02:39:15.995: INFO/DEBUG(31): bea64844 80902478 /data/data/ com.logicplant.ndkProject/lib/libHelloLibrary.so 09-16 02:39:15.995: INFO/DEBUG(31): bea64848 0014 09-16 02:39:15.995: INFO/DEBUG(31): bea6484c afd39b2a /system/ lib/libc.so 09-16 02:39:15.995: INFO/DEBUG(31): bea64850 0001 09-16 02:39:15.995: INFO/DEBUG(31): bea64854 bea64844 [stack] 09-16 02:39:15.995: INFO/DEBUG(31): bea64858 df002777 09-16 02:39:15.995: INFO/DEBUG(31): bea6485c e3a070ad 09-16 02:39:15.995: INFO/DEBUG(31): #00 bea64860 80903688 /data/data/ com.logicplant.ndkProject/lib/libHelloLibrary.so 09-16
[android-developers] Re: Bluetooth printer skipping lines of print
Hi, Try slowing the rate you are sending the data to the printer, or perhaps examine the data being sent back from the printer it might give you hints about buffer flow control. Regards On Sep 16, 2:48 pm, Sebastin Basimalla basimallasebas...@gmail.com wrote: I couldnt get u?? can u elaborate!! On Fri, Sep 16, 2011 at 9:56 AM, Zsolt Vasvari zvasv...@gmail.com wrote: Doesn't ensureAllPrintedViaBluetooth() work? On Sep 16, 12:03 pm, Sebs basimallasebas...@gmail.com wrote: We are pairing a blue tooth printer with an android phone and trying to print a file. The printer has 16K memory. It is ignoring a few lines of the file randomly. Is there a method to ensure that the printer always prints the complete content of the file. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Source not found
Hello, I am newbie to Android. I am working on Android and Eclipse on the linux ubuntu platform. I am trying to write a program for Server-Client socket communication. Below is the code snippet: try{ Log.d(LOG_TAG, OK); providerSocket = new ServerSocket(8000, 10); connection = providerSocket.accept(); boolean a = connection.isConnected(); Toast.makeText(this, Connection established!, Toast.LENGTH_LONG).show(); return; } catch(IOException e) { Log.v(LOG_TAG, NOK); e.printStackTrace(); } When i debug the code, it reaches at connection = providerSocket.accept(); and stops debugger by showing below message Source Not found The source attachment does not contain the source file ServerSocket.class You can change the source attachment by clicking Change Attached Source below: When i try to click on button i dont find any source file src.zip in the directory of Android. Eclipse does have src.zip but in many folders so i am confused to choose which file to be selected. Any other clues?? Prasad -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get the real-time memory of an Android system by emulator?
Hello everyone, I am a newbie of Android. Actually I am not a developer but a student. I need to conduct an experiment on Android emulator. In the experiment, I have to get the real-time system parameters e.g. free memory, buffers and etc., to investigate the variation of system parametes. I know in Linux, I can get the information for /proc of the OS. But I have no idea about the Android emulator. By the way, I am using Android emulator on Ununtu. Could you please kindly give me any hint of such tools? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Application hardware acceleration using Android Open Acessory API
Hi, It depends of the USB bandwidth and what you think you need for your application. Perhaps you could simulate your comms load using a PC with USB connected to an android device before creating your custom hardware ? Regards On Sep 16, 9:22 am, Ahmed Abdelfattah ahmed.abdelfattah.elshem...@gmail.com wrote: Hello , I am thinking of making an application on image processing that requires heavy computations and I want to accelerate it using FPGA and I read about Android Open Accessory API . Is it possible practically to design my custom hardware that actually accelerates the application knowing that the communication interface is USB ? Will it be slow for this kind of application ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Application hardware acceleration using Android Open Acessory API
I don't know how much bandwidth I need it depends on the application , I just want to know if an idea like this would be useful and effective or not ? On Sep 16, 9:32 am, gjs garyjamessi...@gmail.com wrote: Hi, It depends of the USB bandwidth and what you think you need for your application. Perhaps you could simulate your comms load using a PC with USB connected to an android device before creating your custom hardware ? Regards On Sep 16, 9:22 am, Ahmed Abdelfattah ahmed.abdelfattah.elshem...@gmail.com wrote: Hello , I am thinking of making an application on image processing that requires heavy computations and I want to accelerate it using FPGA and I read about Android Open Accessory API . Is it possible practically to design my custom hardware that actually accelerates the application knowing that the communication interface is USB ? Will it be slow for this kind of application ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] maven-android-plugin, ActionBar - Symbol not found
Hello, I use maven to build android project. it was running alright until one of my class make reference to ActionBar class. In the pom file, I change the maven android plugin build version to 11. The problem is maven doesn't recognize the ActionBar class. It shows Symbol not found. error message. Any idea of this error. Dara kok -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 implement peer 2 peer application in android 2.3.3
I am planning to write a full duplex peer 2 peer application in 2.3.3. Can any one please tell me how it can be possible. I read that we can implement this using org.opennfc, integrate with 2.3.3. But this can be done by only device manufacturers. Please let me know is there any way that a user can integrate the open nfc with 2.3.3. Regards, Reddy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: same app one tablet and phone with differnt gui
Hi boys! Thx for the replies, I had find a solution, called Multiple APK Support http://developer.android.com/guide/market/publishing/multiple-apks.html Thx:Karoly On szept. 12, 16:41, jjoe64 g.jjo...@googlemail.com wrote: this is possible with a few tricks. have a look at my blog post: http://www.jjoe64.com/2011/07/universal-app-for-smartphones-and.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
Re: [android-developers] Re: same app one tablet and phone with differnt gui
oh, that's a really bad solution! Read the android documentaion: Note: You should generally use multiple APKs to support different device configurations only when your APK is too large (greater than 50MB). Using a single APK to support different configurations is always the best practice, because it makes the path for application updates simple and clear for users (and also makes your life simpler by avoiding development and publishing complexity). Read the section below about Using a Single APK Instead to consider your options before publishing multiple APKs. 2011/9/16 Károly Holczhauser holczhau...@gmail.com: Hi boys! Thx for the replies, I had find a solution, called Multiple APK Support http://developer.android.com/guide/market/publishing/multiple-apks.html Thx:Karoly On szept. 12, 16:41, jjoe64 g.jjo...@googlemail.com wrote: this is possible with a few tricks. have a look at my blog post: http://www.jjoe64.com/2011/07/universal-app-for-smartphones-and.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
[android-developers] Re: same app one tablet and phone with differnt gui
Please don't use multiple APKs for tablet support. Just implement some xlarge layouts. You'll be glad you did. For the menu buttons, just populate the Activity Bar with Options Menu items. Any buttons that don't fit on screen can automatically go into the Options (or overflow) menu. See this article: http://developer.android.com/guide/practices/optimizing-for-3.0.html -- although it says 3.0, it's mostly about adding support for tablets. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AbsoluteLayout blues
Ok, so I used AbsoluteLayout for an Android app that I thought would only be used on phones. But now they want it to work on tablets. Anyhow, the app only uses the upper left 320x480 portion of the screen. Is there any easy way to tell Android to just zoom the 320x480 portion to occupy the whole screen? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Copying a file from assets or raw to /system/bin folder (rsync)
Hi, If I use the code below, I get java.io.FileNotFoundException : /system/bin/rsync (Read-Only File system). I have one more question following this for the Samsung Tablet. The emulator has a /dev/block/mtdblock0 file. But the samsung tablet does not. It instead has a mmcblk0. I need to know how I identify which is the right /dev/block/file to be used for remounting ? May be forgetting my basics here. Please guide me. public class DeployRSync extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); runCommand(mount -o remount,rw /dev/block/mtdblock0 /system, false); try { copy(getAssets().open(rsync), new File(/system/bin/rsync)); } catch (IOException e) { e.printStackTrace(); } runCommand(chmod 755 /system/bin/rsync, false); runCommand(mount -o remount, ro /dev/block/mtdblock0 /system, false); } void copy(InputStream in, File dst) throws IOException { OutputStream out = new FileOutputStream(dst); // Transfer bytes from in to out byte[] buf = new byte[1024]; int len; while ((len = in.read(buf)) 0) { out.write(buf, 0, len); } in.close(); out.close(); } private String runCommand(String command, boolean check) { try { String env[] = new String[1] ; env[0] = Environment.getRootDirectory().getAbsolutePath() ; Process process ; if (check) process = Runtime.getRuntime().exec(command, env, new File(/system/bin)); else process = Runtime.getRuntime().exec(command); BufferedReader reader = new BufferedReader( new InputStreamReader(process.getInputStream()),4096); process.getOutputStream(); int read; char[] buffer = new char[4096]; StringBuffer output = new StringBuffer(); while ((read = reader.read(buffer)) 0) { output.append(buffer, 0, read); } reader.close(); // Waits for the command to finish. process.waitFor(); return output.toString(); } catch (IOException e) { e.printStackTrace(); throw new RuntimeException(e); } catch (InterruptedException e) { e.printStackTrace(); throw new RuntimeException(e); } } } Regards Siddharth -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Copying a file from assets or raw to /system/bin folder (rsync)
I get the exception at OutputStream out = new FileOutputStream(dst); On Fri, Sep 16, 2011 at 2:32 PM, MCON Dev mcon...@gmail.com wrote: Hi, If I use the code below, I get java.io.FileNotFoundException : /system/bin/rsync (Read-Only File system). I have one more question following this for the Samsung Tablet. The emulator has a /dev/block/mtdblock0 file. But the samsung tablet does not. It instead has a mmcblk0. I need to know how I identify which is the right /dev/block/file to be used for remounting ? May be forgetting my basics here. Please guide me. public class DeployRSync extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); runCommand(mount -o remount,rw /dev/block/mtdblock0 /system, false); try { copy(getAssets().open(rsync), new File(/system/bin/rsync)); } catch (IOException e) { e.printStackTrace(); } runCommand(chmod 755 /system/bin/rsync, false); runCommand(mount -o remount, ro /dev/block/mtdblock0 /system, false); } void copy(InputStream in, File dst) throws IOException { OutputStream out = new FileOutputStream(dst); // Transfer bytes from in to out byte[] buf = new byte[1024]; int len; while ((len = in.read(buf)) 0) { out.write(buf, 0, len); } in.close(); out.close(); } private String runCommand(String command, boolean check) { try { String env[] = new String[1] ; env[0] = Environment.getRootDirectory().getAbsolutePath() ; Process process ; if (check) process = Runtime.getRuntime().exec(command, env, new File(/system/bin)); else process = Runtime.getRuntime().exec(command); BufferedReader reader = new BufferedReader( new InputStreamReader(process.getInputStream()),4096); process.getOutputStream(); int read; char[] buffer = new char[4096]; StringBuffer output = new StringBuffer(); while ((read = reader.read(buffer)) 0) { output.append(buffer, 0, read); } reader.close(); // Waits for the command to finish. process.waitFor(); return output.toString(); } catch (IOException e) { e.printStackTrace(); throw new RuntimeException(e); } catch (InterruptedException e) { e.printStackTrace(); throw new RuntimeException(e); } } } Regards Siddharth -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Increase the App Size in Android
I think calling recycle() became a lot less necessary in Gingerbread. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Copying a file from assets or raw to /system/bin folder (rsync)
I tried adding dst.createNewFile(); Got a 09-16 14:35:39.569: WARN/System.err(1137): java.io.IOException: Read-only file system 09-16 14:35:39.579: WARN/System.err(1137): at java.io.File.createNewFileImpl(Native Method) 09-16 14:35:39.579: WARN/System.err(1137): at java.io.File.createNewFile(File.java:1160) 09-16 14:35:39.588: WARN/System.err(1137): at com.sears.rsync.DeployRSync.copy(DeployRSync.java:33) 09-16 14:35:39.601: WARN/System.err(1137): at com.sears.rsync.DeployRSync.onCreate(DeployRSync.java:24) My android manifest has manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.sears.rsync android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=8 / uses-permission android:name=android.permission.MOUNT_FORMAT_FILESYSTEMS/uses-permission uses-permission android:name=android.permission.MOUNT_UNMOUNT_FILESYSTEMS/uses-permission uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / application android:icon=@drawable/icon android:debuggable=true android:label=@string/app_name activity android:name=.DeployRSync 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 On Fri, Sep 16, 2011 at 2:34 PM, MCON Dev mcon...@gmail.com wrote: I get the exception at OutputStream out = new FileOutputStream(dst); On Fri, Sep 16, 2011 at 2:32 PM, MCON Dev mcon...@gmail.com wrote: Hi, If I use the code below, I get java.io.FileNotFoundException : /system/bin/rsync (Read-Only File system). I have one more question following this for the Samsung Tablet. The emulator has a /dev/block/mtdblock0 file. But the samsung tablet does not. It instead has a mmcblk0. I need to know how I identify which is the right /dev/block/file to be used for remounting ? May be forgetting my basics here. Please guide me. public class DeployRSync extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); runCommand(mount -o remount,rw /dev/block/mtdblock0 /system, false); try { copy(getAssets().open(rsync), new File(/system/bin/rsync)); } catch (IOException e) { e.printStackTrace(); } runCommand(chmod 755 /system/bin/rsync, false); runCommand(mount -o remount, ro /dev/block/mtdblock0 /system, false); } void copy(InputStream in, File dst) throws IOException { OutputStream out = new FileOutputStream(dst); // Transfer bytes from in to out byte[] buf = new byte[1024]; int len; while ((len = in.read(buf)) 0) { out.write(buf, 0, len); } in.close(); out.close(); } private String runCommand(String command, boolean check) { try { String env[] = new String[1] ; env[0] = Environment.getRootDirectory().getAbsolutePath() ; Process process ; if (check) process = Runtime.getRuntime().exec(command, env, new File(/system/bin)); else process = Runtime.getRuntime().exec(command); BufferedReader reader = new BufferedReader( new InputStreamReader(process.getInputStream()),4096); process.getOutputStream(); int read; char[] buffer = new char[4096]; StringBuffer output = new StringBuffer(); while ((read = reader.read(buffer)) 0) { output.append(buffer, 0, read); } reader.close(); // Waits for the command to finish. process.waitFor(); return output.toString(); } catch (IOException e) { e.printStackTrace(); throw new RuntimeException(e); } catch (InterruptedException e) { e.printStackTrace(); throw new RuntimeException(e); } } } Regards Siddharth -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to
[android-developers] Re: Intent to install packages from market
Sorry, it's part of the Android security design that the user has to explicitly approve installs. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Copying a file from assets or raw to /system/bin folder (rsync)
You seriosily think that any old app just copy stuff to the system/bin folder?? On Sep 16, 5:06 pm, MCON Dev mcon...@gmail.com wrote: I tried adding dst.createNewFile(); Got a 09-16 14:35:39.569: WARN/System.err(1137): java.io.IOException: Read-only file system 09-16 14:35:39.579: WARN/System.err(1137): at java.io.File.createNewFileImpl(Native Method) 09-16 14:35:39.579: WARN/System.err(1137): at java.io.File.createNewFile(File.java:1160) 09-16 14:35:39.588: WARN/System.err(1137): at com.sears.rsync.DeployRSync.copy(DeployRSync.java:33) 09-16 14:35:39.601: WARN/System.err(1137): at com.sears.rsync.DeployRSync.onCreate(DeployRSync.java:24) My android manifest has manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.sears.rsync android:versionCode=1 android:versionName=1.0 uses-sdk android:minSdkVersion=8 / uses-permission android:name=android.permission.MOUNT_FORMAT_FILESYSTEMS/uses-permission uses-permission android:name=android.permission.MOUNT_UNMOUNT_FILESYSTEMS/uses-permission uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE / application android:icon=@drawable/icon android:debuggable=true android:label=@string/app_name activity android:name=.DeployRSync 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 On Fri, Sep 16, 2011 at 2:34 PM, MCON Dev mcon...@gmail.com wrote: I get the exception at OutputStream out = new FileOutputStream(dst); On Fri, Sep 16, 2011 at 2:32 PM, MCON Dev mcon...@gmail.com wrote: Hi, If I use the code below, I get java.io.FileNotFoundException : /system/bin/rsync (Read-Only File system). I have one more question following this for the Samsung Tablet. The emulator has a /dev/block/mtdblock0 file. But the samsung tablet does not. It instead has a mmcblk0. I need to know how I identify which is the right /dev/block/file to be used for remounting ? May be forgetting my basics here. Please guide me. public class DeployRSync extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); runCommand(mount -o remount,rw /dev/block/mtdblock0 /system, false); try { copy(getAssets().open(rsync), new File(/system/bin/rsync)); } catch (IOException e) { e.printStackTrace(); } runCommand(chmod 755 /system/bin/rsync, false); runCommand(mount -o remount, ro /dev/block/mtdblock0 /system, false); } void copy(InputStream in, File dst) throws IOException { OutputStream out = new FileOutputStream(dst); // Transfer bytes from in to out byte[] buf = new byte[1024]; int len; while ((len = in.read(buf)) 0) { out.write(buf, 0, len); } in.close(); out.close(); } private String runCommand(String command, boolean check) { try { String env[] = new String[1] ; env[0] = Environment.getRootDirectory().getAbsolutePath() ; Process process ; if (check) process = Runtime.getRuntime().exec(command, env, new File(/system/bin)); else process = Runtime.getRuntime().exec(command); BufferedReader reader = new BufferedReader( new InputStreamReader(process.getInputStream()),4096); process.getOutputStream(); int read; char[] buffer = new char[4096]; StringBuffer output = new StringBuffer(); while ((read = reader.read(buffer)) 0) { output.append(buffer, 0, read); } reader.close(); // Waits for the command to finish. process.waitFor(); return output.toString(); } catch (IOException e) { e.printStackTrace(); throw new RuntimeException(e); } catch (InterruptedException e) { e.printStackTrace(); throw new RuntimeException(e); } } } Regards Siddharth-
[android-developers] how to play video file using ffmpeg library android
how to play video file using ffmpeg library 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] How to rename the file which is in sdcard...
String[] command = { mv, sun moon.jpg, sun_moon,jpg}; try { Process process = Runtime.getRuntime().exec(command); } catch (IOException e) { Toast.makeText(this, +e, Toast.LENGTH_LONG).show(); } ~~RAJU~~ ~~www.itdoall.co.cc~~ On Fri, Sep 16, 2011 at 3:02 PM, GopalaKrishnan D gopall...@gmail.comwrote: How to rename the file which is in sdcard... -- ~* Regards* *GopalaKrishnan D* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How to rename the file which is in sdcard...
GopalaKrishnan D wrote: How to rename the file which is in sdcard... -- ~* Regards* *GopalaKrishnan D* http://developer.android.com/reference/java/io/File.html pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] [Fragments/supportv4] How do I make ViewPager/TabHost attatch all tabs and not just the current and the one next to it?
Am 15.09.11 12:59, schrieb leson: How can I make the ViewPager/TabHost attach all tabs immediately? I think you can't. You have to choose another holder for your tabs views. I recommend the ViewAnimator. see also: http://code.google.com/p/openintents/source/browse/trunk/compatibility/AndroidSupportV2/src/android/support/v2/view/ViewPager.java http://developer.android.com/reference/android/widget/ViewAnimator.html -- Ralph Bergmann iOS and Android app developer www http://www.the4thFloor.eu | http://www.dasralph.de mail ra...@the4thfloor.eu skypedasralph xing http://www.xing.com/profile/Ralph_Bergmann3 gulp http://www.gulp.de/Profil/RalphBergmann.html linkedin http://www.linkedin.com/in/ralphbergmann java user group http://www.jug-bb.de | http://www.xing.com/net/jugbb ios dev grouphttp://www.xing.com/net/iosberlin pgp key id BED003DD883B9A80 pgp fingerprint 7865 EAD3 5834 705B D8B7 AD7C BED0 03DD 883B 9A80 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 accelerate video any resolution video on surface view +android code
How to accelerate video any resolution video on surface view +android code -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: soap webservice(xml pull parser exception )
while debugging the problem occured at the namespace and soapaction.can any one tell me how to solve this private static final String SOAP_ACTION = urn:sap-com:document:sap:soap:functions:mc-style/zemptrack_overview; private static final String METHOD_NAME = zemptrack_overview; private static final String NAMESPACE = urn:sap-com:document:sap:soap:functions:mc-style; Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to accelerate video any resolution video on surface view +android code
Some one give me actual figure for do that thing On Sep 16, 3:09 pm, NAVI NEW navi44...@gmail.com wrote: How to accelerate video any resolution video on surface view +android code -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Using USB display adapters with Android
I would like to use USB display devices (USB to VGA cards) with android devices. My idea is to connect keyboard, mouse, monitor to mobile and use it like a notebook. The USB display devices available from displaylink has a driver available for linux and android (framebuffer driver). I am searching for a way to use the display device and mobile as a notebook. http://sven.killig.de/android/N1/2.2/usb_host/; shows a way to run debian inside android and output the display to a monitor using displaylink device. This makes it work like I wanted but there is no hardware acceleration available for the debian running. The USB display devices are not capable of 3D (OpenGL or OpenGL ES). It would be good if it is possible to use the GPU available in the android devices in debian also. As debian the displaylink device supports higher resolutions only processing power is the constraint. If there is some way to use the GPU then apps can be run in full screen, video playback will also be smooth (currently rendering issues are there for apps in full screen with 1024 x 768 resolution). I have some experience in device programming so I guess I will be able to help in coding but I am very new to android. I am just in need of accelerating debian apps. I don't intend to run android apps in big screen. Thanks for any help 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] Newbie to Android!1
Hi, I'm Harry from India. Im a newbie to Android. Could you pls refer me the best Android Tutorial!! It would be too good if its a video tutorial. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Progressive Rendering, when loading the content at runtime in Android Webview
Hi, I am developing an application with Webview to display some parsed content at runtime I need a help to display the content in Webview immediately as I get the data progressively. *For Ex.* Initially I am loading the data by calling like this, webViewer.loadDataWithBaseURL(URI_PREFIX, *html.toString()*, text/html, utf-8, ); And I am appending some data in *html.append() *again I want to display it without disturbing the webview screen, which is already displaying some content. (Not the Progress bar) Can anybody give some suggestion or some sample code to do it? Thanks in Advance Regards, Jebarlin Robertson.R -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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]
Ana Carol. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to porting Android applications
Hi, I'm a Msc Brazilian student, and this is my first message. With J2ME, the high diversity devices requires correspondingly customized versions of a single application. The main challenges, according to some reference, are as follows: • Different features of the devices regarding user interface, such as screen size, number of colors, pixel size, sounds, and keyboard layout; • Different execution memory availability and maximum application size; • Different profiles (MIDP 1.0 and MIDP 2.0); • Different implementations of a same profile in J2ME (different JSRs); • Proprietary APIs and optional packages; • Device-specific bugs; • Internationalization. I'm interested to discover how Android platform solves this. And after, how a SPL (software product line) can help to automatize some manual process. So, which issues still exists on Android platform? Someone can indicate me publications about that? Or any type documentation. For now, I want to know the state for art about. Thank you for any help. -- Adorilson Bezerra http://twitter.com/ensl_oficial Atenção: Este e-mail pode conter anexos no formato ODF (Open Document Format)/ABNT (extensões odt, ods, odp, odb, odg). Antes de pedir os anexos em outro formato, você pode instalar gratuita e livremente o BrOffice ( http://www.broffice.org) ou o seguinte Plugin para Microsoft Office ( http://www.sun.com/software/star/odf_plugin/get.jsp). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to accelerate video any resolution video on surface view +android code
http://developer.android.com/guide/practices/optimizing-for-3.0.html You can enable hardware-accelerated rendering in your application by setting android:hardwareAccelerated=true in your manifest's applicationhttp://developer.android.com/guide/topics/manifest/application-element.html element or for individual activityhttp://developer.android.com/guide/topics/manifest/activity-element.html elements. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: AbsoluteLayout blues
See Compatibility Zoom. Only since Android 3.2, though. But I think you're better off fixing your fundamental problem, which is an inflexible layout. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 accelerate video any resolution video on surface view +android code
This default feature works with 3.0 but i want use with all android sdk . i want play video on surface On Fri, Sep 16, 2011 at 4:41 PM, sparky spar...@google.com wrote: http://developer.android.com/guide/practices/optimizing-for-3.0.html You can enable hardware-accelerated rendering in your application by setting android:hardwareAccelerated=true in your manifest's applicationhttp://developer.android.com/guide/topics/manifest/application-element.html element or for individual activityhttp://developer.android.com/guide/topics/manifest/activity-element.html elements. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Using USB display adapters with Android
This list is for developing ordinary applications using the Android SDK. For questions on Debian-on-Android, contact whoever writes that. On Fri, Sep 16, 2011 at 4:18 AM, PrasannaKumar T S M prasannatsmku...@gmail.com wrote: I would like to use USB display devices (USB to VGA cards) with android devices. My idea is to connect keyboard, mouse, monitor to mobile and use it like a notebook. The USB display devices available from displaylink has a driver available for linux and android (framebuffer driver). I am searching for a way to use the display device and mobile as a notebook. http://sven.killig.de/android/N1/2.2/usb_host/; shows a way to run debian inside android and output the display to a monitor using displaylink device. This makes it work like I wanted but there is no hardware acceleration available for the debian running. The USB display devices are not capable of 3D (OpenGL or OpenGL ES). It would be good if it is possible to use the GPU available in the android devices in debian also. As debian the displaylink device supports higher resolutions only processing power is the constraint. If there is some way to use the GPU then apps can be run in full screen, video playback will also be smooth (currently rendering issues are there for apps in full screen with 1024 x 768 resolution). I have some experience in device programming so I guess I will be able to help in coding but I am very new to android. I am just in need of accelerating debian apps. I don't intend to run android apps in big screen. Thanks for any help 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Copying a file from assets or raw to /system/bin folder (rsync)
On Fri, Sep 16, 2011 at 5:02 AM, MCON Dev mcon...@gmail.com wrote: Hi, If I use the code below, I get java.io.FileNotFoundException : /system/bin/rsync (Read-Only File system). That is because the filesystem is read-only. You cannot write to /system. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] native typeface cannot be made
On Fri, Sep 16, 2011 at 3:49 AM, bob b...@coolgroups.com wrote: Can someone tell me what is wrong with this font? https://sites.google.com/site/coolfonne/HelveticaNeue-Bold.ttf Besides being a presumably unlicensed copy of a proprietary font? http://www.linotype.com/1266/neuehelvetica-family.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] phone gap
One runs on Android devices. The other runs on Blackberry devices. For questions about PhoneGap, you might consider asking PhoneGap, since this list is not really about PhoneGap. On Fri, Sep 16, 2011 at 2:46 AM, mohana priya gpriyara...@gmail.com wrote: what is the difference between android phone gap and blackberry phonegap -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Android native browser can't access https sites
On Fri, Sep 16, 2011 at 2:53 AM, perumal316 perumal...@gmail.com wrote: I have noticed that for certain https websites, the native browser could not load them and just displays a blank white page. However, this is not an issue with Firefox Android application. Is it a known issue? If I had to guess, the standard browser lacks the necessary root certificate. Is there any workarounds? Use Firefox, apparently. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Running ui thread from another thread
On Fri, Sep 16, 2011 at 12:26 AM, Logesh rajendren loges...@gmail.com wrote: Is there any way to run a UI thread from another class ? You don't run a UI thread. If you mean run some code on the UI thread, use runOnUiThread(), or post(), or postDelayed(), or a Handler, or AsyncTask. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: USB - IR drivers
Hello ! IMHO to add a new usb mode, you need to change nearly all parts of the platform .. change the kernel ( new usb gadget) add some kernel to framework communication stuff and so on .. Without full platform access something like this is not possible. Good luck ! Frank On 16 Sep., 04:00, warriorinjapan chandanpratih...@gmail.com wrote: Dear All, Does any one of you have experience of writing the USB drivers on Android SDK for InfraRed transmitters. Thank you. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: After Signing Pressing App Icon Restarts App Every Time
It happens after I sign it cuz I didn't zip align it once to see which was causing. I updated my jaraligner to the latest version and it's still doing it. On Sep 15, 10:23 pm, GregAZ ggur...@gmail.com wrote: It's not just my phone, it's happening for others as well. And yes, I put the signed version on a 2.2 emulator and it had the same problem. On Sep 15, 10:06 pm, Zsolt Vasvari zvasv...@gmail.com wrote: I assume you narrowed the problem to zipalign by trying the release apk on the emulator, right? On Sep 16, 10:40 am, GregAZ ggur...@gmail.com wrote: It happens if I sign it and not zip align it. Maybe my jarsigner was updated? I guess I'll see what I have and if there's a newer one. On Sep 15, 9:10 pm, GregAZ ggur...@gmail.com wrote: As the title says, but I'll try to make it easier to understand. I copied a project using Windows explorer, imported it, and then used the Android menu to rename the application package. Then I ran it, worked great (just as I would expect). I signed it, uninstalled the dev version from my phone, installed the signed and noticed every time I hit the apps icon it reloads the app as if it was never opened. If I hold home and switch to it it doesn't reload. So I uninstalled it and ran the app on my phone using Eclipse and the problem wasn't there. So I signed it/zip aligned it again, put it back on the phone and once again same issue. It seems that signing and zip aligning is causing this problem. The project that copied does not have this problem. Any ideas why this would be happening? I'm targeting Android 2.1 if that helps. Steps to cause problem: 1. Export app 2. Sign it, zip align it 3. Put on phone 4. Launch app 5. Hit home to leave app 6. Press app button again (shows splash screen as if it was never opened) Doesn't happen using these steps: 1. Start app from Eclipse (install app on my phone) 2. Hit home to leave app 3. Press app button (puts me where I left it in the app) What would cause it to reload? It doesn't do it if I hold home down and switch to the app, only when pressing the apps icon.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Ideas for displaying vu meter (help with gradients)
Hi All, Wondering if you all can input your 2 cents. I am trying to learn more about Android graphics. I am trying to put a VU meter on my application. Don't worry about how the level readings are created and other backend aspects. I am more interested in learning how to present the the levels (using gradient colors) on the application. What I have created so far is a vertical line using: View android:id=@+id/vuView adroid:layout_width=10px android:layout_height=180px android:background=@drawable/vu_meter1 android:layout_alignParentTop=true android:layout_centerHorizontal=true /View And I have created a drawable file which specifies the gradient color for the vertical line. Basically red at the top, yellow in the center and green at bottom. Here is the vu_meter1.xml file shape xmlns:android=http://schemas.android.com/apk/res/android; android:shape=rectangle gradient android:startColor=#d70344 android:centerColor=#eef114 android:endColor=#0ce10c android:angle=270 /gradient /shape So far so good. What I am trying to achieve is: 1. When I receive some reading from external source I need to accordingly show the relevant colors on this vertical line. How can I do this? How can I dim/hide the rest of the vertical line? I would prefer to dim the non-relevant levels rather than hiding it. 2. Is there a better approach to achieving what I am trying to do? 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] Using USB display adapters with Android
Can you direct me to place where I can discuss about this? On Fri, Sep 16, 2011 at 5:20 PM, Mark Murphy mmur...@commonsware.comwrote: This list is for developing ordinary applications using the Android SDK. For questions on Debian-on-Android, contact whoever writes that. On Fri, Sep 16, 2011 at 4:18 AM, PrasannaKumar T S M prasannatsmku...@gmail.com wrote: I would like to use USB display devices (USB to VGA cards) with android devices. My idea is to connect keyboard, mouse, monitor to mobile and use it like a notebook. The USB display devices available from displaylink has a driver available for linux and android (framebuffer driver). I am searching for a way to use the display device and mobile as a notebook. http://sven.killig.de/android/N1/2.2/usb_host/; shows a way to run debian inside android and output the display to a monitor using displaylink device. This makes it work like I wanted but there is no hardware acceleration available for the debian running. The USB display devices are not capable of 3D (OpenGL or OpenGL ES). It would be good if it is possible to use the GPU available in the android devices in debian also. As debian the displaylink device supports higher resolutions only processing power is the constraint. If there is some way to use the GPU then apps can be run in full screen, video playback will also be smooth (currently rendering issues are there for apps in full screen with 1024 x 768 resolution). I have some experience in device programming so I guess I will be able to help in coding but I am very new to android. I am just in need of accelerating debian apps. I don't intend to run android apps in big screen. Thanks for any help 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Using USB display adapters with Android
On Fri, Sep 16, 2011 at 8:09 AM, PrasannaKumar T.S.M prasannatsmku...@gmail.com wrote: Can you direct me to place where I can discuss about this? No, because I have no idea where the Debian-on-Android people hang out online. Perhaps you can find them via a search engine. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Progressive Rendering, when loading the content at runtime in Android Webview
Hi, I am developing an application with Webview to display some parsed content at runtime I need a help to display the content in Webview immediately as I get the data progressively. *For Ex.* Initially I am loading the data by calling like this, webViewer.loadDataWithBaseURL(URI_PREFIX, *html.toString()*, text/html, utf-8, ); And I am appending some data in *html.append() *again I want to display it without disturbing the webview screen, which is already displaying some content. (Not the Progress bar) Can anybody give some suggestion or some sample code to do it? Thanks in Advance Regards, Jebarlin Robertson.R -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: drawing too much power
You might try using a USB hub that has its own external power supply - The root port connected to the PC will keep the PC USB port happy, and the power to charge the tablet will be supplied by the USB hub On Sep 15, 11:26 pm, bob b...@coolgroups.com wrote: I bought a Vizio Tablet. When I plug it into my PC, the PC says it's disabling the USB connection because it was drawing too much power. Any ideas how to get by this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: drawing too much power
I would take it back and get it replaced. Sounds like a defect to me. On 9/16/2011 9:08 PM, drpickett wrote: You might try using a USB hub that has its own external power supply - The root port connected to the PC will keep the PC USB port happy, and the power to charge the tablet will be supplied by the USB hub On Sep 15, 11:26 pm, bobb...@coolgroups.com wrote: I bought a Vizio Tablet. When I plug it into my PC, the PC says it's disabling the USB connection because it was drawing too much power. Any ideas how to get by this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Prevent activity pause
Hi! I have an unusual problem: I've made an app that will be shown at an exposition booth. What I need is a way to prevent the screen from going off, i.e., the activity will be run forever (no battery problem, it will always be powered). I've tried to shortcut OnPause() to return instantly and not call super.onPause() but that doesn't work. Is there any way to accomplish this? Thanks in advance! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Newbie to Android!1
u can find in youtubetype android tutorials On Fri, Sep 16, 2011 at 2:33 AM, HarryKrish sriharish.kris...@gmail.comwrote: Hi, I'm Harry from India. Im a newbie to Android. Could you pls refer me the best Android Tutorial!! It would be too good if its a video tutorial. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Prevent activity pause
On Fri, Sep 16, 2011 at 9:18 AM, Pinheiro rui.c.pinhe...@gmail.com wrote: I have an unusual problem: I've made an app that will be shown at an exposition booth. What I need is a way to prevent the screen from going off, i.e., the activity will be run forever (no battery problem, it will always be powered). Add android:keepScreenOn=true to some widget in the activity's layout XML resource. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How I can add an int to an array if the user clicks a button?
Thanks, I tried it now. I have a problem, with this: I need to have two arraylists. I declared them. I declared a mine arraylist and an user arraylist with this code: ArrayList mine = new ArrayList(); ArrayList user = new ArrayList(); I want to store in these values, what are will be important to contact with the user: I added values to my mine arraylist: mine.add(0); mine.add(1); mine.add(0); I want to add a values to the user named arraylist if the user press a button. So I added this code: user.add(0); and user.add(1); to an another button. I added two Log.i(user, user.toString()); line to the buttons so I can follow how the arraylist looks like in the appropriate moments. Then if the user clicks an another button, I want to compare these lists, so I implemented the following code: for (int j = 0; j user.size(); j++) { for (int k = 0; k mine.size(); k++) { if (user.get(j) == mine.get(k)) { //start a new activity } If the two arraylists are the same in the order and in values, I want to show a new screen (its name is for example good), and if not I want to show an another( its name is for example lose). But I have a problem. My program is only show my lose screen if the user only clicked the button which add 1 to the arraylists, or if he/she only clicked the button which add 0 to the arraylist. How can I make my program to run as I want? Thanks in advance On szept. 4, 19:56, Zwiebel hunzwie...@gmail.com wrote: OK thanks for the very fast reply. So If I use ArrayListint array; array = new ArrayList(20); button.setOnClickListener(new View.OnClickOnListener) { @Override public void onClick (View v) { //something to add the button's specified number to the array } } And I use the add method for add a number to the ArrayList will be good? And here is the question, that How I can compare them, too? Thanks On szept. 4, 19:46, Mark Murphy mmur...@commonsware.com wrote: On Sun, Sep 4, 2011 at 1:44 PM, Zwiebel hunzwie...@gmail.com wrote: I want to make a program, which will has a lot of buttons. If the user clicks one button, I want to add a specified number (int) to an array. int[] array; array = new int[20]; button.setOnClickListener(new View.OnClickOnListener) { @Override public void onClick (View v) { //something to add the button's specified number to the array } } What I need to write to the method to add the number to the array? Is there a method for this? You cannot add to a standard Java array (int[]), as the length of those is fixed. You will need to use something like ArrayList. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Newbie to Android!1
you can also type markana videos in google...you can get primary information about androidor drop me a word to my mail rambabu.mare...@gmail.com ...i vl give u online training On Fri, Sep 16, 2011 at 6:18 AM, rambabu mareedu rambabu.mare...@gmail.comwrote: u can find in youtubetype android tutorials On Fri, Sep 16, 2011 at 2:33 AM, HarryKrish sriharish.kris...@gmail.comwrote: Hi, I'm Harry from India. Im a newbie to Android. Could you pls refer me the best Android Tutorial!! It would be too good if its a video tutorial. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Prevent activity pause
Isn't that what the wakelock does? On 9/16/2011 9:18 PM, Pinheiro wrote: Hi! I have an unusual problem: I've made an app that will be shown at an exposition booth. What I need is a way to prevent the screen from going off, i.e., the activity will be run forever (no battery problem, it will always be powered). I've tried to shortcut OnPause() to return instantly and not call super.onPause() but that doesn't work. Is there any way to accomplish this? Thanks in advance! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Prevent activity pause
Many thanks for the fast reply, it works :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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/supportv4] How do I make ViewPager/TabHost attatch all tabs and not just the current and the one next to it?
If you just need your tabs *instantiated *(as a Java Object), you can do this in your activity. Pre-instantiate all 4 of them (new MyFragment() 4 times), add them to a list and use this list in the FragmentPagerAdapter's * 'getItem(int)*' method. If you need your MyFragments to be *attached* all at once, then i can't help you... :) There probably some way to do (some of) the FragmentPagerAdapter's work beforehand (adding your fragments to a transaction and committing it), but that would be quite complex. I would not advise this. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Progressive Rendering, when loading the content at runtime in Android Webview
The only way i can come up with is to do this in JavaScript. Render the page with your initial HTML. This HTML contains JavaScript code/functions that 'append' html after the last child of the body. Then when 'new' html is ready, send it to the JavaScript. The JavaScript then will make sure to turn this into real HTML (.e.g append the new html to the innerHTML of the body). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 and JSON or Java object serialization
Here's some code I'm using in my apps: public static byte[] getSerializedObject(Serializable s) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream oos = null; try { oos = new ObjectOutputStream(baos); oos.writeObject(s); } catch (IOException e) { Logger.e(loggerTag, e.getMessage(), e); return null; } finally { try { oos.close(); } catch (IOException e) {} } byte[] result = baos.toByteArray(); Logger.d(loggerTag, Object + s.getClass().getSimpleName() + written to byte[]: + result.length); return result; } public static Object readSerializedObject(byte[] in) { Object result = null; ByteArrayInputStream bais = new ByteArrayInputStream(in); ObjectInputStream ois = null; try { ois = new ObjectInputStream(bais); result = ois.readObject(); } catch (Exception e) { result = null; } finally { try { ois.close(); } catch (Throwable e) { } } return result; } The code is basically doing the same as the one in your link except that the error handling is a bit more elaborate. To store the object into a db use something like that: public long insertRecord(SQLiteDatabase db, Serializable myObject) { try { db.beginTransaction(); ContentValues values = new ContentValues(); values.put(MyColumn, Helper.getSerializedObject(myObject)); long id = db.insert(MyTable, null, values); if (id=0) db.setTransactionSuccessful(); return id; } catch (Exception e) { Logger.e(loggerTag, e.getMessage(), e); // ignore this and roll back the transaction } finally { try { db.endTransaction(); } catch (Exception e) { return -1; } } return -1; } You mention nested objects. This is a serious issue with Java serialization especially on platforms with small stack sizes (like Android). If your objects are deeply nested you might run into StackOverflowExceptions. To prevent this you might want to implement your own writeObject/ readObject methods and read/write Objects in an iterative way instead of using recursion. If you do this there are two additional issues: - don't expect onSaveInstanceState(Bundle outState), outState.putSerializable to use your custom serialization code because the objects are only serialized if they are sent across processes (which happens almost never). In any other case (like orientation change) Android uses its internal Parcel mechanism which will run into the same stack issues if the objects are deeply nested. - if you use ProGuard don't forget to add something like: -keepclassmembers class * implements java.io.Serializable { static final long serialVersionUID; private static final java.io.ObjectStreamField[] serialPersistentFields; private void writeObject(java.io.ObjectOutputStream); private void readObject(java.io.ObjectInputStream); java.lang.Object writeReplace(); java.lang.Object readResolve(); } Cheers Emanuel Moecklin 1gravity LLC -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Abrir URL desde android y no mostrar barra de direcciones o fuente del sitio
Mmm sigo sin encontrarlo , las opciones que encontre son referente a las ventanas de una aplicacion estandar en android, que sin bordes, que sin titulo , pero sin suerte al abrir el navegador sin barra de direccion... bueno no doy mas la lata ya que veo que con el tema del ingles se ponen nerviosos los chicos al que sepa algo que avise...yo seguire buscando y si encuentro les aviso...tambien. saludos y muchas gracias a todos -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get an interval of bytes from a file?
Hello, please help me, I have to upload different media files, some of them a big, and i have the possibility to upload a file in few pieces of encoded string of bytes. I need to read a particular interval of bytes from a file. I can't create an array of bytes from the whole file, because the application crashes, heap memory is too low, OutOfMemoryError happens. As i see the following is not what i need: byte[] output = new byte[(int) bytesToRead]; InputStream is = new FileInputStream(file); is.read(output, offset, bytesToRead); Thanks in advance Lidia -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] help for countdowntimer ?
Hi, I am using countdowntimer for 20sec.I need to display each second in textview. private void startCountDownTimer() { countDownTimer = new CountDownTimer(2, 1000) { public void onTick(long leftmiliseconds) { int zero = 0; this.leftmiliseconds = leftmiliseconds; int leftsecond = (int) leftmiliseconds / 1000; leftsecs = leftsecond; String secs = Integer.toString(leftsecond); if ((leftsecond) 9) editremainingtime.setText( + secs.substring(0, 1) + + secs.substring(1, 2)); else editremainingtime.setText( + zero + + secs.substring(0, 1)); } public void onFinish() { stopCoutdown(); } }.start(); } My problem is that i have another button in my activity.when user clicks on that button i need to capture the left miliseconds.Rightnow i m getting the miliseconds from onTick method.which is not perfect because it gives the miliseconds at the time of tick. can anybody tell me what are the possible and best way to achieve this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Have problem with compare arraylists in Android
I need to have two arraylists. I declared them. I declared a mine arraylist and an user arraylist with this code: ArrayList mine = new ArrayList(); ArrayList user = new ArrayList(); I want to store in these values, what are will be important to contact with the user: I added values to my mine arraylist: mine.add(0); mine.add(1); mine.add(0); I want to add a values to the user named arraylist if the user press a button. So I added this code: user.add(0); and user.add(1); to an another button. I added two Log.i(user, user.toString()); line to the buttons so I can follow how the arraylist looks like in the appropriate moments. Then if the user clicks an another button, I want to compare these lists, so I implemented the following code: for (int j = 0; j user.size(); j++) { for (int k = 0; k mine.size(); k++) { if (user.get(j) == mine.get(k)) { //start a new activity } If the two arraylists are the same in the order and in values, I want to show a new screen (its name is for example good), and if not I want to show an another( its name is for example lose). But I have a problem. My program is only show my lose screen if the user only clicked the button which add 1 to the arraylists, or if he/she only clicked the button which add 0 to the arraylist. How can I make my program to run as I want? Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] change between screens - best practise
hallo, in my app i have a listview and if i click on item so i start new activity by intent to show details of an item. i would like to do it that it will be possible scrolling in detail activity. there i implement GestureDetectr.OnGestureListener and when i scroll from right to left i would like to see detail window of next item from list activity. And my question is what is the best practise? should I start new activity by intent? or when i start detail activity fo the first time should i create somethink like view flipper of eg 18 items from listview and in the detail activity flipping the views? what is the trick how can i code my app to interact with user by scrolling from side to side. not from top to botton. and how is the best way how to implement it because count of item could be 20 and more and every detail view for each item should contains probably 20 textviews. thank you very much for each advice -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Have problem with compare arraylists in Android
You typically do not do String comparison using ==, try using the equals(..) method instead - in your case directly on your ArrayLists. if (user.equals(mine)) { // Start a new activity. } Btw, you should consider using generics for your lists, e.g. ArrayListString mine = new ArrayListString(); On Sep 16, 4:27 pm, Zwiebel hunzwie...@gmail.com wrote: I need to have two arraylists. I declared them. I declared a mine arraylist and an user arraylist with this code: ArrayList mine = new ArrayList(); ArrayList user = new ArrayList(); I want to store in these values, what are will be important to contact with the user: I added values to my mine arraylist: mine.add(0); mine.add(1); mine.add(0); I want to add a values to the user named arraylist if the user press a button. So I added this code: user.add(0); and user.add(1); to an another button. I added two Log.i(user, user.toString()); line to the buttons so I can follow how the arraylist looks like in the appropriate moments. Then if the user clicks an another button, I want to compare these lists, so I implemented the following code: for (int j = 0; j user.size(); j++) { for (int k = 0; k mine.size(); k++) { if (user.get(j) == mine.get(k)) { //start a new activity } If the two arraylists are the same in the order and in values, I want to show a new screen (its name is for example good), and if not I want to show an another( its name is for example lose). But I have a problem. My program is only show my lose screen if the user only clicked the button which add 1 to the arraylists, or if he/she only clicked the button which add 0 to the arraylist. How can I make my program to run as I want? Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android native browser can't access https sites
Hi Murphy, Yes, the page can be loaded in Firefox. Just wondering, is there any way to include root certs in the Native browser? Thanks In Advance, Perumal On Sep 16, 7:56 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 16, 2011 at 2:53 AM, perumal316 perumal...@gmail.com wrote: I have noticed that for certain https websites, the native browser could not load them and just displays a blank white page. However, this is not an issue with Firefox Android application. Is it a known issue? If I had to guess, the standard browser lacks the necessary root certificate. Is there any workarounds? Use Firefox, apparently. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android 3.1 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How is RockPlayer doing hardware decoding?
They probably use FFmpeg to take care of getting the encoded media data than pushing that untouched data using some type of proxy server to the MediaPlayer to do the hardware decoding. That's probably all... :-) On Sep 16, 2:22 am, Doug beafd...@gmail.com wrote: If authentication over rtsp is a documented standard, then you could file a bug with details and hope that it gets resolved in a future version. Doug On Sep 15, 12:17 am, B.Arunkumar awsnetworkrecor...@gmail.com wrote: Hi, Regarding your question, MediaPlayer supports RTSP streaming but does not take all RTSP URLs, (with authentication, for instance). Atleast that is the experience we have had. The built in C++ RTSP Stack that comes with mediaplayer seems to have limited capabilities. Arunkumar On Sep 11, 4:19 am, Doug beafd...@gmail.com wrote: On Sep 9, 1:30 am, B.Arunkumar awsnetworkrecor...@gmail.com wrote: Would somebody have some idea what exactly has RockPlayer done in the Hardware Decoding mode on a high level basis? I mean have they used the mediaplayer as it is or they have changed something at the source code level of MediaPlayer to get more improvements than the MediaPlayer (support more RTSP Url formats) and things like that? Why do you say that MediaPlayer does not support rtsp? I ask this because it does support rtsp. It's documented. The audio/video format of the stream still has to be supported by the device, though. Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Android native browser can't access https sites
On Fri, Sep 16, 2011 at 10:47 AM, perumal316 perumal...@gmail.com wrote: Just wondering, is there any way to include root certs in the Native browser? With a rooted phone, perhaps. With modded firmware, perhaps. Not on a standard production device AFAIK. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to get an interval of bytes from a file?
Try java.io.RandomAccessFile. Call RandomAccessFile#seek() to position the file pointer correctly and then call one or more of the read(..) methods available in the RandomAccessFile class. Or you could go balls deep and use a FileChannel, but that is about as fun as pleasuring yourself with a cheese-grater. Oh, and RandomAccessFile#close it afterwards whydoncha. On Sep 16, 4:04 pm, Lidia lidyp...@yahoo.com wrote: Hello, please help me, I have to upload different media files, some of them a big, and i have the possibility to upload a file in few pieces of encoded string of bytes. I need to read a particular interval of bytes from a file. I can't create an array of bytes from the whole file, because the application crashes, heap memory is too low, OutOfMemoryError happens. As i see the following is not what i need: byte[] output = new byte[(int) bytesToRead]; InputStream is = new FileInputStream(file); is.read(output, offset, bytesToRead); Thanks in advance Lidia -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How is RockPlayer doing hardware decoding?
Or, crack open their app and check the build of the ffmpeg library. If they forgot to do the mandatory sanity checks on their build (i.e. forgot to read http://ffmpeg.org/legal.html that has useful build instructions) you could always request a copy of the now GPL- licensed source code to their entire application or file a takedown of their app. On Sep 10, 10:37 am, gjs garyjamessi...@gmail.com wrote: Hi, You should ask 'RockPlayer' Regards On Sep 9, 6:30 pm, B.Arunkumar awsnetworkrecor...@gmail.com wrote: Hi, Would somebody have some idea what exactly has RockPlayer done in the Hardware Decoding mode on a high level basis? I mean have they used the mediaplayer as it is or they have changed something at the source code level of MediaPlayer to get more improvements than the MediaPlayer (support more RTSP Url formats) and things like that? Thank you, B.Arunkumar On Sep 4, 6:42 am, Felix long felixl...@gmail.com wrote: Yes, You're right. The hardware decoding mode only means using inbuilt MediaPlayer in these players. 2011/9/3 B.Arunkumar awsnetworkrecor...@gmail.com Thank you for your reply. The RockPlayer gives you the option of choosing either the Hardware or Software Decoding mode. The Software Decoding mode I am pretty sure does what you are saying, uses the FFMPEG package to decode the frames. Does the hardware decoding mode of RockPlayer also use FFMPEG? The question I have is the inbuilt MediaPlayer and VideoView classes of Android use the inbuilt hardware decoder of the device. Is the Hardware Decoding mode of RockPlayer doing something similar? A thought process along the same lines is if it possible to use the hardware decoder of the device programmatically through some means? Thank you, B.Arunkumar On Sep 2, 8:33 pm, Drezden mmjohns...@gmail.com wrote: I believe they're using a customized build of FFMpeg that gets accessed through the NDK. FFMpeg has the ability to do a lot of manipulation with video, audio, and images. On Sep 2, 9:15 am, B.Arunkumar awsnetworkrecor...@gmail.com wrote: Hi, Would somebody be able to guide me on howRockPlayer/MoboPlayer does the hardware decoding of image frames? Thank you, B.Arunkumar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Best Regards Felix Long -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] In Android How to Save the images in OnDraw While Adding Many pictures?
Hai i used onDraw() in My Application,i can view the images ins working fine.My problem is to save the images. here my code to draw the images,My problem is Mentioned below. protected void onDraw(Canvas canvas) { // TODO Auto-generated method stub Paint paint = new Paint(); Bitmap myBitmap = BitmapFactory.decodeResource(getResources(),R.drawable.ban_background); Bitmap resizeImage1=Bitmap.createScaledBitmap(myBitmap,590,350,false); canvas.drawColor(Color.BLACK); canvas.drawBitmap(resizeImage1,10,5, null); Bitmap icon; try { // Get reference to AssetManager AssetManager mngr = getAssets(); // Create an input stream to read from the asset folder InputStream ins = mngr.open(imageName +.png); icon = BitmapFactory.decodeStream(ins); Bitmap icon9=Bitmap.createScaledBitmap(icon,590,250,false); canvas.drawBitmap(icon9,1,60, null); } catch (IOException e) { e.printStackTrace(); } if(isCamera) { icon1 = BitmapFactory.decodeByteArray(pictureByte, 0,pictureByte.length); Bitmap resizeImage=Bitmap.createScaledBitmap(icon1,150,170,false); canvas.drawBitmap(resizeImage,400,100, null); } Bitmap toDisk = Bitmap.createBitmap(resizeImage1); canvas.setBitmap(toDisk); try { toDisk.compress(Bitmap.CompressFormat.JPEG, 100, new FileOutputStream(new File(/mnt/sdcard/arun.jpg))); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } Bitmap toDisk = Bitmap.createBitmap(resizeImage1); Here i can Save the image (resizeImage1),i can passed the Single value only.i cannot access all pictures.i add many pictures in onDraw();how can i access all pictures in Canvas? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] accessing media player declared in a service from my main activity
On Thu, Sep 15, 2011 at 10:36 PM, ruchira ruchira...@gmail.com wrote: Do I have to bind the service to the activity or what should I do?? Probably. See the LocalService example in the Service documentation. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: HOW TO USE ROCK PLAYER IN OUR OWN application.
On Fri, Sep 16, 2011 at 2:16 AM, NAVI NEW navi44...@gmail.com wrote: i am asking how to use , rock player in application not asking about contact. Is this rock player something in the SDK? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to get an interval of bytes from a file?
Thanks Jens, I already found a simple solution, to use skip() method: InputStream is = new FileInputStream(file); byte[] output = new byte[(int) bytesToRead]; is.skip(startPosition); is.read(output, 0, bytesToRead); and it seems to work good. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] bluetooth spp protocal
hi all, I was wondering if anyone knows the data frame protocol that android uses by default. Or if anyone knows of a technical document with this information I'd be more than happy to read it for myself. I need to know what exactly the data frame looks like, for example... 8-data bits | 1 Odd Parity bit | 2 stop bits etc... Im transmitting data to a microcontroller from my phone but I'm getting different values from what I am sending and I suspect it may be because the data frame the microcontroller is set to receive is different than what the bluetooth is sending. Any help would be greatly appreciated. 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] Using USB display adapters with Android
Thanks for your suggestions and quick response :) On Fri, Sep 16, 2011 at 5:53 PM, Mark Murphy mmur...@commonsware.comwrote: On Fri, Sep 16, 2011 at 8:09 AM, PrasannaKumar T.S.M prasannatsmku...@gmail.com wrote: Can you direct me to place where I can discuss about this? No, because I have no idea where the Debian-on-Android people hang out online. Perhaps you can find them via a search engine. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.1 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Equivalent to !kbhit() in c method in Android
can any one help me ?? On Sep 1, 11:33 am, ursNARESH naresh.ap...@gmail.com wrote: I am new to Android. I am planing to write code for typing tutor game application. In that i need to scroll down letters from top to bottom until user enters a key. I can write the same in c like while(!kbhit()) { print(c); } but i don't know how to convert the same into Android. I tried something like this but its not working while(TRUE){ canvas.drawText(naresh, 30, i, p);++i; try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); }i++; } can u help me Thanks in advance... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en