[android-developers] Re: Canvas.drawText and Multiple Resolutions

2011-09-02 Thread skink
On Sep 1, 7:20 pm, Caleb Gray photonre...@gmail.com wrote: First post, go easy on me. :P I searched around and haven't found anyone else even remotely talking about this problem: I have three virtual devices running: HDPI (854x480, Density: 240) MDPI (480x320, Density: 160) and LDPI

[android-developers] Re: Should i resize the bitmap before adding to a ImageView or let the ImageView resize the Bitmap?

2011-09-02 Thread skink
Benjamin wrote: Hello friends, i have a simple question: Should i resize a bigger bitmap before adding to a ImageView or let the ImageView resize the Bitmap? What's the right way, regarding performance? Thanks AFAIK ImageView doesnt resize your Bitmap - it can only scale its Canvas

[android-developers] Please see this example when i am taking small file then it works but when taking large video size with 1gb approx then outofmemory error

2011-09-02 Thread Naveen
Please see this example when i am taking small file then it works but when taking large video size with 1gb approx then outofmemory error import java.io.*; public class ReadFileByteArray { public static void main(String[] args) { //create file object File file = new

Re: [android-developers] Please see this example when i am taking small file then it works but when taking large video size with 1gb approx then outofmemory error

2011-09-02 Thread NaveenShrivastva
here i am taking video file for read byte the error byte arry outofmemory On Fri, Sep 2, 2011 at 12:13 PM, Naveen kumarnaveen.si...@gmail.com wrote: Please see this example when i am taking small file then it works but when taking large video size with 1gb approx then outofmemory error

[android-developers] Re: Android autogenerated R file

2011-09-02 Thread LiTTle
As I have read xml parsers load all the content to the memory. Our purpose is to put all Patra's shops in this application. Patra has approximately 1 shops! Each shop has street,telephone,fax etc (have 8 parts of data) so whole data will be 8! It is really big xml to load to memory and

Re: [android-developers] Please see this example when i am taking small file then it works but when taking large video size with 1gb approx then outofmemory error

2011-09-02 Thread Miguel Morales
Look up examples on stream reading a file for java. The problem is you are allocating an extremely large byte array. On Thu, Sep 1, 2011 at 11:51 PM, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: here i am taking video file for read byte the error byte arry outofmemory On Fri, Sep 2,

Re: [android-developers] Please see this example when i am taking small file then it works but when taking large video size with 1gb approx then outofmemory error

2011-09-02 Thread NaveenShrivastva
Yes i understanding this issue large byte array size overflow how handle here.give me way please or perfect url On Fri, Sep 2, 2011 at 12:24 PM, Miguel Morales therevolti...@gmail.com wrote: Look up examples on stream reading a file for java. The problem is you are allocating an extremely

[android-developers] Re: Please see this example when i am taking small file then it works but when taking large video size with 1gb approx then outofmemory error

2011-09-02 Thread skink
On Sep 2, 8:58 am, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: Yes i understanding this issue large byte array size overflow how handle here.give me way please or perfect url You *cannot* allocate one gigabyte of memory in small mobile devices. Period. pskink -- You received

Re: [android-developers] Re: Please see this example when i am taking small file then it works but when taking large video size with 1gb approx then outofmemory error

2011-09-02 Thread Miguel Morales
I don't know what a perfect url is, just look up examples on streaming a file using java. There's hundreds of examples. On Fri, Sep 2, 2011 at 12:17 AM, skink psk...@gmail.com wrote: On Sep 2, 8:58 am, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: Yes i understanding this issue large

[android-developers] Re: Graphical layoutt

2011-09-02 Thread ikki_fenix
Oh thanks Now, It works fine!!! thanks!!! But I have two problems more, in the log file appears the next two messages: First: Failed to load properties file for project Exception Stach There: An exception stack trace is not available. plugin -- com.android.ide.eclipse.adt Second:

[android-developers] Code Gen the 45 boring minutes after writing a layout.

2011-09-02 Thread Ryan Mattison
I wrote a eclipse plugin that recursively parses a selected XML file and keeps track of all the nodes with IDs, then adds variable declarations to your clipboard, so you can paste them into your class. I've type findViewById too many times and I'm sure others have as well, so I'm looking for

[android-developers] A user of pirated? version seeking support

2011-09-02 Thread DraganA
I got an email from a user of my app, complaining about labels being to long to fit in some windows. I was surprised seeing the screen shots of my app, all in Russian, knowing that I never translated my app to Russian. The only thing that I could think of apart from piracy, was that maybe some

[android-developers] Bug in Renderscript API of the pown()???

2011-09-02 Thread Macotonalds
Hi, the function pown() in Renderscript may have bugs. //rs_cl.rsh _RS_RUNTIME float __attribute__((overloadable)) pown(float v, int p); _RS_RUNTIME float2 __attribute__((overloadable)) pown(float2 v, int2 p); _RS_RUNTIME float3 __attribute__((overloadable)) pown(float3 v, int3 p); _RS_RUNTIME

[android-developers] Webview with flash video in Android

2011-09-02 Thread deepak
I am calling a webview which contains a flash video and its playing without issues on Android 2.2 onwards. Its not playing in Android 2.1. Wanted to know whether it will play in Android 2.1 Update ? -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] app2sd restrictions - sharing a workaround to allow moving your app to SD card

2011-09-02 Thread mot12
Android recommends that certain apps should not be moved to SD card, e.g. alarm clocks, etc. See http://developer.android.com/guide/appendix/install-location.html The reason for that is, among other things, that when the sd card is unmounted, registrations with the alarm service are canceled, and

[android-developers] Re: Alert input must show the keyboard.

2011-09-02 Thread sblantipodi
this is not the way. if you search on internet this is a commond problem but I can't find a solution. On Sep 2, 1:21 am, TreKing treking...@gmail.com wrote: On Thu, Sep 1, 2011 at 5:50 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: how to remove it? Request focus on something else

[android-developers] Re: how to develop android app to send gps location to the website..

2011-09-02 Thread prageeth
got it. cheers :) On Sep 1, 9:22 pm, TreKing treking...@gmail.com wrote: On Thu, Sep 1, 2011 at 3:02 PM, prageeth prageeth...@gmail.com wrote: i need to know how to develop application to send current gps location(every 2mins) to the website (for php file) using android app. How? Read the

[android-developers] Re: how to develop android app to send gps location to the website..

2011-09-02 Thread prageeth
thanks stefan s On Sep 2, 6:51 am, Stefan S shogu...@gmail.com wrote: May be you can use JSON for sending from your mobile and retrieving in php. You have to create a service which pools every 2 minutes the location from the user. On 1 Sep., 22:22, TreKing treking...@gmail.com wrote:

[android-developers] Re: Question around Bitmap loading

2011-09-02 Thread blew
So this is telling me all the extra memory that's being used up. Any idea why it's labeled as Bitmap Size= in the error message? Doesn't seem to me to be very relevant. Thanks for the answer, I'll keep that in mind. On Aug 27, 9:38 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Because

Re: [android-developers] Re: Android autogenerated R file

2011-09-02 Thread TreKing
On Fri, Sep 2, 2011 at 1:53 AM, LiTTle littlep...@gmail.com wrote: It is really big xml to load to memory and also it is harder to maintain the data! Use pull parser to skip to the parts you need or probably better, use a database if your set is so large and you need to randomly look stuff

Re: [android-developers] Re: Android autogenerated R file

2011-09-02 Thread Mark Murphy
On Fri, Sep 2, 2011 at 7:25 AM, TreKing treking...@gmail.com wrote: On Fri, Sep 2, 2011 at 1:53 AM, LiTTle littlep...@gmail.com wrote: It is really big xml to load to memory and also it is harder to maintain the data! Use pull parser to skip to the parts you need or probably better, use a

Re: [android-developers] Re: Alert input must show the keyboard.

2011-09-02 Thread TreKing
On Fri, Sep 2, 2011 at 5:15 AM, sblantipodi perini.dav...@dpsoftware.orgwrote: this is not the way. if you search on internet this is a commond problem but I can't find a solution Create an Activity themed like a dialog instead of an AlertDialog? I'm just going to keep throwing suggestions

Re: [android-developers] A user of pirated? version seeking support

2011-09-02 Thread Mark Murphy
On Fri, Sep 2, 2011 at 4:24 AM, DraganA dand...@gmail.com wrote: The only thing that I could think of apart from piracy, was that maybe some Android firmware does automatic text label translation. Is this posible? Conceivably, though it'd surprise me, and I'm not aware of it. -- Mark Murphy

Re: [android-developers] Re: Updating toggle button state.

2011-09-02 Thread TreKing
On Thu, Sep 1, 2011 at 11:10 PM, lb lakshman.b...@gmail.com wrote: But I was thinking that if I call mToggleButton.setChecked(true) after setContentView() it might show flickering. Your activity won't get drawn that fast. You will only see the last state of whatever setup you did in

Re: [android-developers] HorizontalScrollView Question

2011-09-02 Thread TreKing
On Thu, Sep 1, 2011 at 11:43 PM, Ash anan...@gmail.com wrote: How do we detect that the horizontalscrollview has reached the end? I have 2 buttons on either side of the horizontal scroll view which I would like to hide if not required. If the two button are IN the scroll view, then they'll

[android-developers] i want to read last 12 bytes of this file

2011-09-02 Thread Naveen
i have large mp4 file i want to read last 12 bytes of this file, long position=filesize.length-12; plz help me now what to do for read 12 bytes from position -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] i want to read last 12 bytes of this file

2011-09-02 Thread Nikolay Elenkov
On Fri, Sep 2, 2011 at 8:46 PM, Naveen kumarnaveen.si...@gmail.com wrote: i have large mp4  file  i want to read last 12 bytes of this file, long position=filesize.length-12;  plz help me now what to do for read 12 bytes from position Use capital letters and punctuation, it helps. Have a

Re: [android-developers] i want to read last 12 bytes of this file

2011-09-02 Thread NaveenShrivastva
RandomAccessFile raf = new RandomAccessFile(file, r); long networkByte=raf.length()-12; System.out.print(networkByte+networkByte) ; raf.seek(networkByte); System.out.print(raf.getFilePointer()); Here how to print last 12 bytes .Please help

Re: [android-developers] HorizontalScrollView Question

2011-09-02 Thread Ash
Hi, I have a imagebutton (left arrow), a horizontal scrollview and another image button (right arrow). These are placed next to each other. When user clicks on the left/right arrow, I scroll the horizontal scroll view using code. What I want to do is detect that the scrollview has reached

[android-developers] Re: Android autogenerated R file

2011-09-02 Thread LiTTle
There 2 reasons I didn't use database: 1. I cannot imagine a helpful scheme of tables to use! 2. I want my colleagues to have the ability to add new shops easily! It's easier to tell them to do some copy-paste work. In case I use db they have to download a db browser, execute any sql command (if

Re: [android-developers] i want to read last 12 bytes of this file

2011-09-02 Thread NaveenShrivastva
please help me how to read from network byte pointer On Fri, Sep 2, 2011 at 5:29 PM, NaveenShrivastva kumarnaveen.si...@gmail.com wrote:  RandomAccessFile raf = new RandomAccessFile(file, r);           long networkByte=raf.length()-12;           System.out.print(networkByte+networkByte) ;    

[android-developers] Re: i want to read last 12 bytes of this file

2011-09-02 Thread skink
On Sep 2, 1:59 pm, NaveenShrivastva kumarnaveen.si...@gmail.com wrote:   RandomAccessFile raf = new RandomAccessFile(file, r);            long networkByte=raf.length()-12;            System.out.print(networkByte+networkByte) ;            raf.seek(networkByte);            

Re: [android-developers] HorizontalScrollView Question

2011-09-02 Thread TreKing
On Fri, Sep 2, 2011 at 7:02 AM, Ash anan...@gmail.com wrote: I have a imagebutton (left arrow), a horizontal scrollview and another image button (right arrow). These are placed next to each other. When user clicks on the left/right arrow, I scroll the horizontal scroll view using code. What

Re: [android-developers] Re: Android autogenerated R file

2011-09-02 Thread Daniel Drozdzewski
On 2 September 2011 13:08, LiTTle littlep...@gmail.com wrote: There 2 reasons I didn't use database: There are 2 reasons why you should consider it: 1. I cannot imagine a helpful scheme of tables to use! ...that does not mean that such schema does not exist. Your data model will depend on

[android-developers] How to close a single tab in tablayout

2011-09-02 Thread sj
There is a method to add a tab in TabHost as well as clear all tabs, but there are no APIs to remove one single tab. Following the logic in clearAllTabs tried to tabwidget.removeViewAt(index); tabHost.getTabContentView().removeViewAt(index) After this the behaviour is strange. I assume that is

[android-developers] Threads

2011-09-02 Thread Steven Bruce
I have thee threads in my bluetooth program. Both my AcceptThread and ConnectThread create a newConnectThread from within their Thread class but my program seems to crash at this point. Are you not allowed to start a new thread from within a thread class? -- You received this message because you

Re: [android-developers] Re: i want to read last 12 bytes of this file

2011-09-02 Thread Daniel Drozdzewski
On 2 September 2011 13:09, skink psk...@gmail.com wrote: On Sep 2, 1:59 pm, NaveenShrivastva kumarnaveen.si...@gmail.com wrote:   RandomAccessFile raf = new RandomAccessFile(file, r);            long networkByte=raf.length()-12;            System.out.print(networkByte+networkByte) ;      

[android-developers] Re: Threads

2011-09-02 Thread Steven Bruce
I mean they both start a new thread called 'ConectedThread'. Is this ok or should I not be doing this? On Sep 2, 1:28 pm, Steven Bruce stevebruc...@gmail.com wrote: I have thee threads in my bluetooth program. Both my AcceptThread and ConnectThread create a newConnectThread from within their

Re: [android-developers] Re: Threads

2011-09-02 Thread Appaholics
I am not sure but if you have both of them start the same thread in a single run wouldn't you be starting the same thread twice? This may raise an exception. Thanks On Fri, Sep 2, 2011 at 6:07 PM, Steven Bruce stevebruc...@gmail.com wrote: I mean they both start a new thread called

Re: [android-developers] Re: Threads

2011-09-02 Thread Kristopher Micinski
On top of this I'd say you might read about threading in java in general. And yes, it is certainly possible to create new threads in a thread :-). There are plenty of reasons your program could crash: a security violation, perhaps? What's your motivation for multiple threads in your program?

[android-developers] Re: Threads

2011-09-02 Thread Steven Bruce
No they are designed to be run on two different devices. one device runs one thread and the other one runs the other thread but they both need to run a connected thread. On Sep 2, 1:40 pm, Appaholics raghavs...@appaholics.in wrote: I am not sure but if you have both of them start the same thread

[android-developers] Re: i want to read last 12 bytes of this file

2011-09-02 Thread skink
On Sep 2, 2:33 pm, Daniel Drozdzewski daniel.drozdzew...@gmail.com wrote: On 2 September 2011 13:09, skink psk...@gmail.com wrote: On Sep 2, 1:59 pm, NaveenShrivastva kumarnaveen.si...@gmail.com wrote:   RandomAccessFile raf = new RandomAccessFile(file, r);            long

[android-developers] Re: Threads

2011-09-02 Thread Steven Bruce
I think I recall seeing 'KeyChar' generation errors or something in the debug window On Sep 2, 1:43 pm, Kristopher Micinski krismicin...@gmail.com wrote: On top of this I'd say you might read about threading in java in general.  And yes, it is certainly possible to create new threads in a

[android-developers] Re: app2sd restrictions - sharing a workaround to allow moving your app to SD card

2011-09-02 Thread Peter Sinnott
Is your small app on the market? I uploaded a small app that does what your talking about a couple of days ago. https://market.android.com/details?id=sd.bootfeature=search_result On Sep 2, 10:47 am, mot12 martin.hu...@gmail.com wrote: Android recommends that certain apps should not be moved to

[android-developers] Re: Alert input must show the keyboard.

2011-09-02 Thread sblantipodi
try and retry is really expensive but thanks for the suggestions. can't understand why something as simple should became as difficult. On Sep 2, 1:33 pm, TreKing treking...@gmail.com wrote: On Fri, Sep 2, 2011 at 5:15 AM, sblantipodi perini.dav...@dpsoftware.orgwrote: this is not the way.

[android-developers] Re: A user of pirated? version seeking support

2011-09-02 Thread JP
My guess, based on what we have seen in the past: Somebody stripped your apk and extracted your original resource file(s), translated to Russian, then re-packaged and released. Did you leave your contact inside the app? (I suspect yes) Do you use source code obfuscation (e.g. Proguard)? (I

Re: [android-developers] Re: Android autogenerated R file

2011-09-02 Thread Nikolay Elenkov
On Fri, Sep 2, 2011 at 8:32 PM, Mark Murphy mmur...@commonsware.com wrote: On Fri, Sep 2, 2011 at 7:25 AM, TreKing treking...@gmail.com wrote: On Fri, Sep 2, 2011 at 1:53 AM, LiTTle littlep...@gmail.com wrote: It is really big xml to load to memory and also it is harder to maintain the data!

Re: [android-developers] Re: A user of pirated? version seeking support

2011-09-02 Thread Wenhua Li
So maybe it's hacked... On Fri, Sep 2, 2011 at 9:12 PM, JP joachim.pfeif...@gmail.com wrote: My guess, based on what we have seen in the past: Somebody stripped your apk and extracted your original resource file(s), translated to Russian, then re-packaged and released. Did you leave your

Re: [android-developers] Re: Alert input must show the keyboard.

2011-09-02 Thread TreKing
On Fri, Sep 2, 2011 at 8:01 AM, sblantipodi perini.dav...@dpsoftware.orgwrote: can't understand why something as simple should became as difficult. That is an unfortunate reality of software development =P

Re: [android-developers] how many threads does android browser generate?

2011-09-02 Thread Jack Harvard
Thanks a lot, unfortunately we use BusyBox as the filesystem, the 'top' command options are slightly different, 'top -b' got me something as follows, but would like to get something as you did (suppose you use ps command, i couldn't get exactly the same output as yours, would be nice to have

[android-developers] Re: app2sd restrictions - sharing a workaround to allow moving your app to SD card

2011-09-02 Thread mot12
No, my small app is a widget dedicated only to notifying Gentle Alarm via a private event and doubles as a alarm time display on the home screen. But yes, same idea. On Sep 2, 2:53 pm, Peter Sinnott psinn...@gmail.com wrote: Is your small app on the market? I uploaded a small app that does what

Re: [android-developers] Re: Threads

2011-09-02 Thread Kristopher Micinski
Doesn't make sense to me in the context of Bluetooth. If you can, attach a debugger to one of the devices (when I used to debug Bluetooth programs, I used to connect to 3+ devices :-) and step through your code until you hit a problematic point. You're not doing anything nasty in those threads

Re: [android-developers] how many threads does android browser generate?

2011-09-02 Thread Mark Murphy
Those are processes, not threads. On Fri, Sep 2, 2011 at 9:21 AM, Jack Harvard jack.harv...@gmail.com wrote: Thanks a lot, unfortunately we use BusyBox as the filesystem, the 'top' command options are slightly different,  'top -b' got me something as follows, but would like to get something

[android-developers] Re: Android autogenerated R file

2011-09-02 Thread LiTTle
Nikolay I cannot understand! Could you be more specific about pre-GB devices,512, IIRC? Or could you send me a link to read the whole article/document? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: connection to bluetooth earpiece

2011-09-02 Thread the_edge123
On Aug 31, 3:57 am, James 030440...@163.com wrote: You never need to do this. If you want to transfer music toearpiece, You just need to start a intent to let user enable BT and connect to theearpiece. This is the BT A2DP protocal which android already implemented. BTW, I think a normal

[android-developers] Re: application should not exists

2011-09-02 Thread mohana priya
Yes how to recover that On Sep 1, 6:44 am, James december...@gmail.com wrote: Then things will be clear if you run log cat, There must be some exceptions uncaught in your code :-)  On Aug 31, 2:12 pm, mohana priya gpriyara...@gmail.com wrote: Thanks for your reply but am getting error as

Re: [android-developers] Re: application should not exists

2011-09-02 Thread Appaholics
Here is a tutorial on the logcat. http://www.appaholics.in/using-the-logcat/ Thanks On Fri, Sep 2, 2011 at 7:19 PM, mohana priya gpriyara...@gmail.com wrote: Yes how to recover that On Sep 1, 6:44 am, James december...@gmail.com wrote: Then things will be clear if you run log cat, There

Re: [android-developers] Re: Android autogenerated R file

2011-09-02 Thread Nikolay Elenkov
On Fri, Sep 2, 2011 at 10:29 PM, LiTTle littlep...@gmail.com wrote: Nikolay I cannot understand! Could you be more specific about pre-GB devices,512, IIRC? Or could you send me a link to read the whole article/document? Don't have a document, you need to look at the source. Experiment to get

[android-developers] How is RockPlayer doing hardware decoding?

2011-09-02 Thread B.Arunkumar
Hi, Would somebody be able to guide me on how RockPlayer/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] Re: A user of pirated? version seeking support

2011-09-02 Thread DraganA
It is exactly as you describe. I've just found the app, the russian version, on one internet forum. I didn't bother with Proguard as the app is free on the market anyway, albeight with some Admob ads. On Sep 2, 2:12 pm, JP joachim.pfeif...@gmail.com wrote: My guess, based on what we have seen in

Re: [android-developers] Re: A user of pirated? version seeking support

2011-09-02 Thread Kostya Vasilyev
ProGuard doesn't obfuscate resources, anyway. -- Kostya Vasilyev 02.09.2011 18:23 пользователь DraganA dand...@gmail.com написал: It is exactly as you describe. I've just found the app, the russian version, on one internet forum. I didn't bother with Proguard as the app is free on the market

[android-developers] Re: A user of pirated? version seeking support

2011-09-02 Thread DraganA
Now thinking about it, they hacked the paid app version which is without ads. Would Proguard obfuscation work in this case at all, if the guy unpacked the apk and replaced string.xml. On Sep 2, 3:22 pm, DraganA dand...@gmail.com wrote: It is exactly as you describe. I've just found the app, the

Re: [android-developers] how many threads does android browser generate?

2011-09-02 Thread Jack Harvard
Yes, thanks for correcting. On 2 Sep 2011, at 14:26, Mark Murphy wrote: Those are processes, not threads. On Fri, Sep 2, 2011 at 9:21 AM, Jack Harvard jack.harv...@gmail.com wrote: Thanks a lot, unfortunately we use BusyBox as the filesystem, the 'top' command options are slightly

[android-developers] Re: Android autogenerated R file

2011-09-02 Thread blake
Like the rest of the people that have responded, here, I'm a bit dubious about this use case. It seems to me that these strings are either essentially part of the code, in which case you should use R... references to them, or part of the data, in which case they should be in a property file, DB,

[android-developers] Re: Alert input must show the keyboard.

2011-09-02 Thread sblantipodi
it doesn't works. can't understand how to do that. -_- On Sep 2, 3:20 pm, TreKing treking...@gmail.com wrote: On Fri, Sep 2, 2011 at 8:01 AM, sblantipodi perini.dav...@dpsoftware.orgwrote: can't understand why something as simple should became as difficult. That is an unfortunate reality

Re: [android-developers] Re: Encryption

2011-09-02 Thread Gabriel Marchant
Thank you Nikolay! I am trying to protect an apk form being copyed to other devices. It is not at the Android Market, because it's for a specific customer only. So, is it any way to secure it, without keeping the Key on the device? The idea is to read de IMEI on the device the the first time

Re: [android-developers] Re: Encryption

2011-09-02 Thread Nikolay Elenkov
On Sat, Sep 3, 2011 at 12:10 AM, Gabriel Marchant marchan...@gmail.com wrote: dea is to read de IMEI on the device the the first time (when the user buys the apk from our store), encrypt it and store it at the data base on the device. If you want to lock it to a specific device, you'll have to

[android-developers] convert image to text

2011-09-02 Thread Lwe
i need some think like take photo from camera and see it as 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] Re: How is RockPlayer doing hardware decoding?

2011-09-02 Thread Drezden
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 how

Re: [android-developers] Re: Encryption

2011-09-02 Thread Gabriel Marchant
Ok Nikolay... I heard about a unique ID for each Android device. Do you know something about it? 2011/9/2 Nikolay Elenkov nikolay.elen...@gmail.com On Sat, Sep 3, 2011 at 12:10 AM, Gabriel Marchant marchan...@gmail.com wrote: dea is to read de IMEI on the device the the first time (when

Re: [android-developers] Re: Encryption

2011-09-02 Thread Nikolay Elenkov
On Sat, Sep 3, 2011 at 12:39 AM, Gabriel Marchant marchan...@gmail.com wrote: Ok Nikolay... I heard about a unique ID for each Android device. Do you know something about it? Yes, there is such thing (universally) :) Google's take on this:

Re: [android-developers] Re: Graphical layoutt

2011-09-02 Thread Tor Norbye
It sounds like you're looking in the Error Log; there are some exceptions in there you can ignore. Failed to load properties file for project is one of them. That error happens briefly during project creation because some code which tries to look at the project is called while the directories are

[android-developers] Re: HorizontalScrollView Question

2011-09-02 Thread Drezden
Read this: http://blog.velir.com/index.php/2010/11/17/android-snapping-horizontal-scroll/ It should get you going in the right direction. Modify the code on your own to get when you need. On Sep 1, 11:43 pm, Ash anan...@gmail.com wrote: Hi All, How do we detect that the horizontalscrollview

Re: [android-developers] Re: Please see this example when i am taking small file then it works but when taking large video size with 1gb approx then outofmemory error

2011-09-02 Thread NaveenShrivastva
Please help me.. On Fri, Sep 2, 2011 at 12:49 PM, Miguel Morales therevolti...@gmail.com wrote: I don't know what a perfect url is, just look up examples on streaming a file using java. There's hundreds of examples. On Fri, Sep 2, 2011 at 12:17 AM, skink psk...@gmail.com wrote: On Sep 2,

[android-developers] Re: app2sd restrictions - sharing a workaround to allow moving your app to SD card

2011-09-02 Thread String
So, I'm not clear... How does App B get installed on the user's device? String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

Re: [android-developers] Re: Please see this example when i am taking small file then it works but when taking large video size with 1gb approx then outofmemory error

2011-09-02 Thread Appaholics
Read the file in small chunks of, say, an MB or two. On Fri, Sep 2, 2011 at 9:38 PM, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: Please help me.. On Fri, Sep 2, 2011 at 12:49 PM, Miguel Morales therevolti...@gmail.com wrote: I don't know what a perfect url is, just look up

[android-developers] Re: Please see this example when i am taking small file then it works but when taking large video size with 1gb approx then outofmemory error

2011-09-02 Thread Drezden
This is never going to work, you can't allocate that much memory. Push it server-side. On Sep 2, 11:08 am, NaveenShrivastva kumarnaveen.si...@gmail.com wrote: Please help me.. On Fri, Sep 2, 2011 at 12:49 PM, Miguel Morales therevolti...@gmail.com wrote: I don't know what a perfect

[android-developers] Bluetooth Dev Guide and BluetoothAdapter Javadoc have conflicting information

2011-09-02 Thread Dan
The Bluetooth Dev Guide http://developer.android.com/guide/topics/wireless/bluetooth.html#EnablingDiscoverability and BluetoothAdapter http://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html#ACTION_REQUEST_DISCOVERABLE Javadoc have conflicting information about Bluetooth

[android-developers] Re: Super Generic launch type to open Music Library in all devices

2011-09-02 Thread laminina
Well... I know that there are a lot of devices in the market, but so far I've used 38 devices that have pre-loaded a Music library as part of the manufacturer software. Either way if there is a generic way to do it and we find a rare device that doesn't have it, I will receive an exception and

[android-developers] Re: Super Generic launch type to open Music Library in all devices

2011-09-02 Thread laminina
On Sep 1, 10:54 am, Mark Murphy mmur...@commonsware.com wrote: On Thu, Sep 1, 2011 at 1:46 PM, laminina jennys.jen...@gmail.com wrote: Do you know of any way to launch in ALL devices from almost ALL manufacturers Music Library? What makes you think all Android devices have such an app?

[android-developers] Re: 9Patch multiple contents

2011-09-02 Thread hpadrao
Anyone? On 1 set, 15:49, hpadrao hpad...@gmail.com wrote: I'm gonna be crazy, I'm trying to have 1 9patch image with 2 contents (Different views). How can I do this? Please see below my code: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/

[android-developers] Re: Can we create two ThreadPoolExecutor running on android?

2011-09-02 Thread usher
Thanks a lot. On Aug 30, 2:47 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Create a ThreadPoolExecutor instance with a small sized thread-pool (maybe only 1 thread in the pool, maybe 2). Don't worry about  creating one or two more possible threads if you can't use AsyncTask. If

[android-developers] Re: Can we create two ThreadPoolExecutor running on android?

2011-09-02 Thread usher
Thanks a lot. On Aug 31, 9:10 am, Ed Harned edhar...@gmail.com wrote: Take a look at this article and the open source project it mentions. http://coopsoft.com/ar/AndroidArticle.html Youcancreatethe Tymeac service with thread pools and do anything you want Ed On Aug 30, 12:30 pm, usher

[android-developers] Re: Alert input must show the keyboard.

2011-09-02 Thread sblantipodi
Just solved, I post the solution, just for reference. myAlertDialog.show(); showVirturalKeyboard(); this is the showVirtualKeyboard() method: // Mostra la tastiera virtuale private void showVirturalKeyboard() { Timer timer = new Timer(); timer.schedule(new TimerTask() {

[android-developers] Re: Limiting installs of licensed app to number of devices

2011-09-02 Thread Kevin Tambascio
Hi Jim, I originally read this section when implementing licensing: Caution: Per-device licensing is not recommended for most applications because: - It requires that you provide a backend server to manage a users and devices mapping, and - It could inadvertently result in a user being denied

Re: [android-developers] Can we create two ThreadPoolExecutor running on android?

2011-09-02 Thread Dianne Hackborn
Personally I think there is no reason to do this. AsyncTask just has a facility to deliver results back to the main thread. This is nothing tied to UI. The main thread just happens to be where UI is running as well as many other things such as the callbacks to Service itself. If you don't want

[android-developers] EvalBot and Android Open Accessory Dev Kit (ADK)

2011-09-02 Thread Titan
I have just finished to develop an USB Host Driver for Android Open Accessory on EvalBot (it should work also with any other Stellaris ARM chipset supporting USB OTG). The video demo with link in my blog show how it's easy and fun to communicate with EvalBot with a modern Android Phone (with

[android-developers] startBluetoothSco() not interrupted by incoming call

2011-09-02 Thread Rob
I've managed to get text-to-speech audio streaming through my SCO headset using startBluetoothSco(), but it's not interrupted by incoming phone calls, as documented at http://developer.android.com/reference/android/media/AudioManager.html: Note that the phone application always has the priority

[android-developers] Re: Strange problem with toggleSoftInput() in Android 2.3.3

2011-09-02 Thread blindfold
As a workaround for Android 2.3.3, I can now use the 4 lines imm.hideSoftInputFromWindow(myView.getWindowToken(),0); imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0); imm.hideSoftInputFromWindow(myView.getWindowToken(),0); imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);

[android-developers] Re: volume control with videoview android

2011-09-02 Thread Drezden
Use the AudioManager. Google it. On Sep 1, 9:20 am, Naveen kumarnaveen.si...@gmail.com wrote: i am using videoview android.accessing videoview id from xml file. now i want  android volume control with android videoview . help me. -- You received this message because you are subscribed to

[android-developers] Re: convert image to text

2011-09-02 Thread Drezden
Get the SnapIt app from the market. On Sep 2, 10:19 am, Lwe luaisul...@gmail.com wrote: i need some think like take photo from camera and see it as 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] Re: NullPointer Exception creating MediaPlayer

2011-09-02 Thread Drezden
Try this: MediaPlayer mPlayer = new MediaPlayer(); mPlayer.setDataSource(this,mUri); mPlayer.setOnPreparedListener(this); mPlayer.setOnErrorListener(this); mPlayer.prepareAsync(); private void onPrepared(MediaPlayer mp) { mp.start(); } private void onError(MediaPlayer mp, int a, int b) {

[android-developers] Re: volume control with videoview android

2011-09-02 Thread Drezden
And while you're at it, Google the rest of your project too. Your constant posts on this video project are getting old. Read the docs, use Google, and experiment for more than five minutes before asking people to build your project for you. On Sep 2, 3:02 pm, Drezden mmjohns...@gmail.com wrote:

[android-developers] Re: Honeycomb webview is going partially blank upon tapping on password field of the html page

2011-09-02 Thread Michael
Man this is annoying... I wonder if I have to go into the onDraw method myself to prevent this behavior. On Aug 30, 2:11 pm, Michael michaeldh...@gmail.com wrote: Sorry, let me give a specific workflow for mine. It doesn't have to do with your scrolling issue, but I think its similar: 1) If

[android-developers] Current item from PageView

2011-09-02 Thread Grant Thomas
I'd like to be able to get the current visible view from my ViewPager, but the index reported to my OnPageChangeListener doesn't seem to always be correct. (i.e. sometimes I get a null View, or a view other than the one that's centered). Here's some code: public class ReaderViewPager extends

[android-developers] Re: Limiting installs of licensed app to number of devices

2011-09-02 Thread Jim
I see your point. I mis-read your concern. I implemented the policy to check licensing at intervals, to minimize sharing through temporary account setup for app download purposes. A service for this is an interesting concept. Is there any additional interest out there? We may be interested in

[android-developers] GridView shows only one row with layout_height=WRAP_CONTENT

2011-09-02 Thread Shri
I am using a GridView in a LinearLayout. I want the GridView to show up as tall as needed to show all the rows. However, I am seeing only one row when set (layout_width=MATCH_PARENT and) layout_height=WRAP_CONTENT. If I set layout_height to a size that equals mulitple rows, then I do see those

Re: [android-developers] GridView shows only one row with layout_height=WRAP_CONTENT

2011-09-02 Thread Mark Murphy
On Fri, Sep 2, 2011 at 7:33 PM, Shri shri.bo...@gmail.com wrote: I am using a GridView in a LinearLayout. I want the GridView to show up as tall as needed to show all the rows. That is not really possible. For example, if you have a million cells, the user's device is not going to stretch to a

[android-developers] OutOfMemoryError

2011-09-02 Thread bob
I'm getting an OutOfMemoryError. Is there any way to increase the amount of memory my app can use? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

[android-developers] Re: A user of pirated? version seeking support

2011-09-02 Thread H
No, proguard only touches the java stuff. The xml files are left exactly as they were. Most likely they didn't replace the strings.xml, they simply added another version with russian translation in a strings-ru folder. You can get the strings out with aapt tool from your sdk install, so that's

  1   2   >