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

2011-09-02 Thread mot12
In my case App B is a widget available on the market. When App A starts, it checks if it is installed on SD card. If the widget is not installed, it alerts the user that the widget is obligatory and directs the user to the market page. -- You received this message because you are subscribed to th

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

2011-09-02 Thread B.Arunkumar
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?

Re: [android-developers] how to manage different themes(having different images) with same resorce folder?

2011-09-02 Thread Appaholics
I don't think so. I am not saying that you can't create sub folders but I have never done that so I don't know. On Sat, Sep 3, 2011 at 12:21 PM, Hitendrasinh Gohil < hitendrasin...@gmail.com> wrote: > is there any better way that i can manage it through single method? > > On Sat, Sep 3, 2011 at 1

Re: [android-developers] how to manage different themes(having different images) with same resorce folder?

2011-09-02 Thread Hitendrasinh Gohil
is there any better way that i can manage it through single method? On Sat, Sep 3, 2011 at 12:17 PM, Appaholics wrote: > You don't need so many if else statements. For five themes you will need > five conditions. > > if (theme == 1) > { > applyTheme1(); > } > else if (theme == 2) > { > applyTheme

Re: [android-developers] Problems installing SDK

2011-09-02 Thread Appaholics
Did you add the JDK to your PATH variables? On Sat, Sep 3, 2011 at 11:06 AM, sebastian nielsen < nielsen.sebast...@gmail.com> wrote: > The picture says more than a tousands of words. > http://data.fuskbugg.se/skalman02/4e61bcb5b3f41_jdk.PNG > > -- > You received this message because you are subsc

Re: [android-developers] how to manage different themes(having different images) with same resorce folder?

2011-09-02 Thread Appaholics
You don't need so many if else statements. For five themes you will need five conditions. if (theme == 1) { applyTheme1(); } else if (theme == 2) { applyTheme2(); } and so on. Simply call a method that will set the imageviews to the required images. Thanks On Sat, Sep 3, 2011 at 11:59 AM, Hiten

[android-developers] how to manage different themes(having different images) with same resorce folder?

2011-09-02 Thread Hitendrasinh Gohil
Hi, I am having 5 different themes(5 set of images).If user selects particular particular theme images related to that theme should come. is there anyway that i can make 5 different folders in res folder and from there i can manage it? because if i put all the images under drawable folder then

[android-developers] Re: Recodring a video using the front Camera on Honeycomb 3.1 not working for me on Acer A500

2011-09-02 Thread eli
Wrong link, here is the correct one: http://androidwarzone.blogspot.com/2011/09/recodring-video-on-android-device.html Eli -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups

[android-developers] Re: Recodring a video using the front Camera on Honeycomb 3.1 not working for me on Acer A500

2011-09-02 Thread Eli Hasson
Here is the correct link: http://androidwarzone.blogspot.com/2011/09/recodring-video-on-android-device.html On Sat, Sep 3, 2011 at 8:59 AM, eli wrote: > I found a solution to my problem, I switch to h264 codec, here is my full > blog post on this: > > http://www.blogger.com/blogger.g?blogID=7033

[android-developers] Re: Recodring a video using the front Camera on Honeycomb 3.1 not working for me on Acer A500

2011-09-02 Thread eli
I found a solution to my problem, I switch to h264 codec, here is my full blog post on this: http://www.blogger.com/blogger.g?blogID=7033865418360132052#editor/target=post;postID=5827118118645974596 Eli -- You received this message because you are subscribed to the Google Groups "Android Develo

[android-developers] Problems installing SDK

2011-09-02 Thread sebastian nielsen
The picture says more than a tousands of words. http://data.fuskbugg.se/skalman02/4e61bcb5b3f41_jdk.PNG -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

Re: [android-developers] Re: OutOfMemoryError

2011-09-02 Thread TreKing
On Fri, Sep 2, 2011 at 9:57 PM, bob wrote: > I'm trying to load a 3.6MB XML file like this: > >URL url = new URL(play_url); >DocumentBuilderFactory dbf = > DocumentBuilderFactory.newInstance(); >DocumentBuilder db = dbf.newDo

[android-developers] Re: OutOfMemoryError

2011-09-02 Thread bob
I'm trying to load a 3.6MB XML file like this: URL url = new URL(play_url); DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document do

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

2011-09-02 Thread Indicator Veritatis
A quick Google search did not turn it up, but I seem to recall some rather heated discussion in this very group about the promise and problems of using AsyncTask with a Service instead of an Activity. The consensus I remember from it (my memory might not be too accurate) is that it creates more pro

[android-developers] Re: Encryption

2011-09-02 Thread Indicator Veritatis
But Google's 'take' on it does not say that there already IS such a thing: it says you can make an approximation to it, an approximation that is probably what you really want in the first place. It also warns against confusing a "unique ID for each Android device" with the number returned by Teleph

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

2011-09-02 Thread Macoto nalds
A reply to myself. When the second parameter of pown() is negative integers, returns are the NaN as follows. How does the pown() work??? //code snippet float4 f4 = {2.0f, 6.0f, 2.0f, 2.0f}; int4 i4 = {-1,1,-5,1}; float4 r4 = pown(f4,i4); rsDebug("r4 = ", r4

[android-developers] Re: Threads

2011-09-02 Thread blake
Steven, There is absolutely no restriction against starting new threads from other new threads. If you are willing to share some code, I might be able to say something more useful... -blake Programming Android, FTW! http://oreilly.com/catalog/0636920010364 On Sep 2, 5:28 am, Steven Bruce wro

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 8:12 PM, Shri Borde wrote: > Actually, I am using a GridView in a ListView, not a LinearLayout. You cannot reliably put scrollable things in other scrollable things. > I am using the GridView as a table, and it seems > reasonable to want to display the table in a ListView.

[android-developers] Re: Android autogenerated R file

2011-09-02 Thread Indicator Veritatis
Ναί, ναί, μιλώ Ελληνικά, αλλά γράφω πολύ καλύτερα. Καί καλά καταλαβαίνω όταν ο Παπάς διαβάζει τον Ευαγγέλιον στην Εκκλεσία, που είναι πολύ εύκολα για μένα η όταν ομιλεί ο ομιλητής. Μα δεν είμαι αυτός 'Ελληνας. Anyway, now that you are mentioning the need to handle SO many shops, I have to retract

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

2011-09-02 Thread Shri Borde
Actually, I am using a GridView in a ListView, not a LinearLayout. So the entire grid can actually be displayed by scrolling the list (with the Adapter architecture kicking in to display only those cells of the grid that are visible on screen). I am using the GridView as a table, and it seems reaso

Re: [android-developers] OutOfMemoryError

2011-09-02 Thread Mark Murphy
On Fri, Sep 2, 2011 at 7:43 PM, bob wrote: > I'm getting an OutOfMemoryError.  Is there any way to increase the > amount of memory my app can use? Not for pre-Honeycomb, and even on Honeycomb it's not the sort of thing you want to be doing, because it may irritate your users for you to be kicking

[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 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

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 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 few hundred meters

[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 rows

[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 pr

[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 Vie

[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 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 the user decides to

[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 wrote: > Use the AudioManag

[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: convert image to text

2011-09-02 Thread Drezden
Get the SnapIt app from the market. On Sep 2, 10:19 am, Lwe 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@

[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 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 the Google Groups "Andr

[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] 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 o

[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 Andr

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] 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 ac

[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: Can we create two ThreadPoolExecutor running on android?

2011-09-02 Thread usher
Thanks a lot. On Aug 31, 9:10 am, Ed Harned 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 wrote: >

[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 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 threads are dormant/parked

[android-developers] Re: 9Patch multiple contents

2011-09-02 Thread hpadrao
Anyone? On 1 set, 15:49, hpadrao 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: > > > http://schemas.android.com/apk/res/ > android" android:orientation="vertical" > android:layout_width="wrap_conte

[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 wrote: > On Thu, Sep 1, 2011 at 1:46 PM, laminina 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? After all, > I doubt the Nook does, for ex

[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] 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 dis

[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 wrote: > Please help me.. > > > > > > > > On Fri, Sep 2, 2011 at 12:49 PM, Miguel Morales > wrote: > > I don't know what a perfect url is, just look up examples on streami

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 > wrote: > > I don't know what a perfect url is, just look up examples on streaming >

[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 em

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 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 wrote: >> >> >> On Sep 2, 8:58 am, NaveenShrivastva >>

[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 wrote: > Hi All, > > How do we detect that the horizontalscrollview has reached th

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

Re: [android-developers] Re: Encryption

2011-09-02 Thread Nikolay Elenkov
On Sat, Sep 3, 2011 at 12:39 AM, Gabriel Marchant 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: http://android-developers.blogspot.com/2011/03/identifying-app-installat

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 > On Sat, Sep 3, 2011 at 12:10 AM, Gabriel Marchant > wrote: > > dea is to read de IMEI on the device the the first time (when the user > buys > > the apk from our store)

[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" wrote: > Hi, > >      Would somebody be able to guide me on how RockPlayer/MoboPlayer > does

[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-

Re: [android-developers] Re: Encryption

2011-09-02 Thread Nikolay Elenkov
On Sat, Sep 3, 2011 at 12:10 AM, Gabriel Marchant 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 derive a key from

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 (when

[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 wrote: > On Fri, Sep 2, 2011 at 8:01 AM, sblantipodi > wrote: > > > can't understand why something as simple should became as difficult. > > That is an unfortunate reality of software development =P > > ---

[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, o

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 wrote: >> Thanks a lot, unfortunately we use BusyBox as the filesystem, the 'top' >> command options are slightly different, 'top -b' g

[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 wrote: > It is exactly as you describe. I've just found the app, the russian > version

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" написал: > 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, albeig

[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 wrote: > My guess, based on what we have seen in the past: Somebody stripp

[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-devel

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

2011-09-02 Thread Nikolay Elenkov
On Fri, Sep 2, 2011 at 10:29 PM, LiTTle 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 details, but I th

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 wrote: > Yes how to recover that > > On Sep 1, 6:44 am, James wrote: > > Then things will be clear if you run log cat, There must be some > > exceptions uncaught in

[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 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 wrote: > > > Thanks for your reply but am getting error as force close. > > > On Aug 30, 12:49 p

[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 norm

[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 a

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 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 as you did (suppose

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 ri

[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 wrote: > Is your small app on the market? > I uploaded a small app that does what your talking abo

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 th

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 wrote: > can't understand why something as simple should became as difficult. That is an unfortunate reality of software development =P - TreKing

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 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 contact inside the app?

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 wrote: > On Fri, Sep 2, 2011 at 7:25 AM, TreKing wrote: >> On Fri, Sep 2, 2011 at 1:53 AM, LiTTle 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

[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 suspect

[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 wrote: > On Fri, Sep 2, 2011 at 5:15 AM, sblantipodi > wrote: > > > this is not the way. > > if you search on internet this is a comm

[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.boot&feature=search_result On Sep 2, 10:47 am, mot12 wrote: > Android recommends that certain apps should not be moved to SD card, > e.g. alar

[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 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 > thread :-).  There are p

[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 wrote: > On 2 September 2011 13:09, skink wrote: > > > > > > > > > On Sep 2, 1:59 pm, NaveenShrivastva > > wrote: > >>   RandomAccessFile raf = new RandomAccessFile(file, "r"); > > >>            long networkByte=raf.length()-12; > >>            System.out.

[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 wrote: > I am not sure but if you have both of them start the same thread in a single > run would

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? Sy

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 wrote: > I mean they both start a new thread called 'ConectedThread'. Is this > ok or

[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 wrote: > I have thee threads in my bluetooth program. Both my AcceptThread and > ConnectThread create a newConnectThread from within their Thread class > but my p

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 wrote: > > > On Sep 2, 1:59 pm, NaveenShrivastva > wrote: >>   RandomAccessFile raf = new RandomAccessFile(file, "r"); >> >>            long networkByte=raf.length()-12; >>            System.out.print("networkByte"+networkByte) ; >>            raf.seek(networkByte

[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

[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 be

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

2011-09-02 Thread Daniel Drozdzewski
On 2 September 2011 13:08, LiTTle 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 what data you store a

Re: [android-developers] HorizontalScrollView Question

2011-09-02 Thread TreKing
On Fri, Sep 2, 2011 at 7:02 AM, Ash 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 I want to d

[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 wrote: >   RandomAccessFile raf = new RandomAccessFile(file, "r"); > >            long networkByte=raf.length()-12; >            System.out.print("networkByte"+networkByte) ; >            raf.seek(networkByte); > >            System.out.print(raf.getFilePointe

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 wrote: >  RandomAccessFile raf = new RandomAccessFile(file, "r"); > >           long networkByte=raf.length()-12; >           System.out.print("networkByte"+networkByte) ; >           raf.seek(ne

[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] 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 either

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 hel

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 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 look at RandomAccessFile,

[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 e

Re: [android-developers] HorizontalScrollView Question

2011-09-02 Thread TreKing
On Thu, Sep 1, 2011 at 11:43 PM, Ash 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 be hidden automa

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

2011-09-02 Thread TreKing
On Thu, Sep 1, 2011 at 11:10 PM, lb 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 onCreate(). -

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 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 (a Commons Guy)

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 wrote: > 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 at you until something wor

  1   2   >