[android-developers] Re: Parent View intercepts events on Child View

2010-04-03 Thread skink
On Mar 31, 7:22 pm, Marwan marwa...@gmail.com wrote: The problem is that, I have my action done even If I click somewhere else than pc1 rectangle in my main view... Do you have an idea please? use hierarchyviewer tool to see actual bounds of your Rect view - it probably fills the parent's

[android-developers] Re: Layout with ScrollView and TextView

2010-04-03 Thread ABhi
Hi, If i understood your requirement correctly then your problem can be resolved by 'AndroidsFortune' application's source code. The guys has done wonderful job by having both horizontal and vertical scrolling for the TextView. Hope it helps you. Regards, Abhishek On Apr 2, 2:13 am, andrej

[android-developers] Re: Fastest and most reliable Location provider

2010-04-03 Thread patbenatar
Hey all who are interested in this topic- I have taken John's above advice and modified it into what I believe is a more efficient way to be doing this [although the efficiency of my method is only evident if you're going to to ensure updates from either provider throughout the life of your app].

[android-developers] Re: Creating Multiple Instances of a Class

2010-04-03 Thread patbenatar
You don't destroy an instance of a class in Java. You let go of all references to it, and it gets garbage collected. You sound like a beginner, so just to clear this up: letting go of all references means nullifying it. Like: laser1 = null; and if that's your only reference to the resource

[android-developers] Re: 2-D Graphics Performance after Motorola Droid 2.1 Update

2010-04-03 Thread Robert Green
I have the official 2.1 update on my Droid. It came OTA and installed normally. I observed that my 3 GL games run great on it but my 2D canvas one does not. It feels like it lurches a bit now and it was totally smooth on 2.0.1. Strange. I would think it would run locked at 30 but still

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-03 Thread ratson
this is pretty good news, if Fedex is shipping to th EU it can take up to 2 weeks for them to arrive, so only 1-2 weeks we have to wait... nice. On Apr 3, 12:42 am, David Horn pga...@gmail.com wrote: Reply from Google: All of the phones have been shipped already. Please be patient; if your

[android-developers] Re: 2-D Graphics Performance after Motorola Droid 2.1 Update

2010-04-03 Thread Vladimir
Same here. Just updated manually, played my previous 3d 2d OGL games - 80-100 fps in native res, same as before. Then tried the 2D canvas game and it's much worse. Average fps isn't too bad at ~45 but it's jumping between 35 and 60 all the time. Used to be smooth 50-60 on 2.0.1, and now it's

[android-developers] How to properly detect rooted phone?

2010-04-03 Thread ratson
I would like to find a way to detect if the device my application is running on is rooted or not. my best idea was to check if su binary exist, but which do you think is the best way? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Complete list of shell commands supported by android

2010-04-03 Thread ratson
is there a complete list, or there is no guarantee the list won't change with every release? -- 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

[android-developers] how to find out memory usage by pid?

2010-04-03 Thread ratson
is there an SDK way to find out the exact amount of memory consumed by a process identified by its pid? -- 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

[android-developers] EXTRA_STREAM: Attachment URI size 0

2010-04-03 Thread powder
Hi, Upon attaching an email via the following code: Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_SUBJECT, CSV file); sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(file:// + Environment.getExternalStorageDirectory() + /mydir/file.csv));

[android-developers] Re: Max resolution for a game always?

2010-04-03 Thread Vladimir
0. Read this: http://developer.android.com/guide/practices/screens_support.html Also, there are a few great blog posts on the topic in... Google As I understand you're using Canvas. If so, you need to solve at least two problems: 1. Multiple screen resolutions (320x240 - 854x480) 2. Different

[android-developers] Re: advice + onclick help

2010-04-03 Thread Vladimir
new OnClickListener() { ... Intent i = new Intent(this, info.class); this here points to your OnClickListener instance, while you need Context. Try new Intent(getApplicationContext(), ...) instead On Apr 2, 12:22 am, Pedetre pede...@gmail.com wrote: Hello there, I'm new to android

[android-developers] Sqlite delete row problem

2010-04-03 Thread Mr. Kakakuva Bird
Hi I'm using sqlite for my app. I'm using extensive cursors in my app and i have taken care to close all of them after use. I'm enumerating cursor with clause order by. then i'm trying to delete a row from the resp. table. Whenever I'm trying to delete a row in a database, I'm observing 2 rows are

[android-developers] Google Maps API: How to detect when the user has stopped panning the map

2010-04-03 Thread Nick Giancola
Hey all- I need to know when the user is panning the map so I can check if they've panned outside of the initial radius that I fetch data from the API with when the app launches. If the user pans outside this radius, when they stop panning I will get the new center point of the map and fetch

[android-developers] HeapWorker is wedged problem

2010-04-03 Thread Mr. Kakakuva Bird
Hi I am using edtftpj-pro3.1 trial copy in my android app to make SFTP connection with the server. After few connections with the server with 5-6 file transfers, my app is crashing with following exception HeapWorker is wedged. I'm using Sqlite dbms. Is it causing the problem or what could be the

[android-developers] Re: Google Maps API: How to detect when the user has stopped panning the map

2010-04-03 Thread patbenatar
Alright just had a revelation on my drive home from the office... If there is no built-in functionality to handle this, here's what I plan on doing: After a finger up event, start polling the map for it's centerpoint every 50ms or so and store the point in an instance variable. Check the stored

Re: [android-developers] Complete list of shell commands supported by android

2010-04-03 Thread Mark Murphy
ratson wrote: is there a complete list No, sorry, other than by doing directory listings. or there is no guarantee the list won't change with every release? There is no guarantee that the list will stay stable. Those binaries are not a documented part of the SDK, and so OEMs or the core

Re: [android-developers] Complete list of shell commands supported by android

2010-04-03 Thread Rémiás Máté
in this case i can only rely on commands i personally assure with like keeping a custom busybox installed in data folder... a similar question: in /proc folder values (files) rely on kernel version, is there a chance they will change? On Sat, Apr 3, 2010 at 1:20 PM, Mark Murphy

[android-developers] how to define scrollbar's thumb Drawables from java code?

2010-04-03 Thread skink
hi, i'm creating custom View that shows when necessary scrollbars. already figured out that i need to call initializeScrollbars(TypedArray) method but have no idea how to specify thumb Drawables when my custom View is created at runtime (not from xml layout) any thoughts? thanks pskink --

[android-developers] Network performance tools

2010-04-03 Thread Hemant
Hi, Which are the most commonly used Android Networking tools available? I am basically interested in performance measurement tools for 3G network connection on Android. Thanks, Hvr -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

Re: [android-developers] Complete list of shell commands supported by android

2010-04-03 Thread Mark Murphy
Rémiás Máté wrote: in /proc folder values (files) rely on kernel version, is there a chance they will change? Yes. For example, Android might adopt a new kernel version someday. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in NYC:

[android-developers] Re: Displays on emulator, not on phone

2010-04-03 Thread RMD
Thanks for all the responses. I'm embarrassed to admit, but I had the GPS turned off in the phone. Since, locm.requestLocationUpdates(gps, 0, 0,onLocationChange); was specifically set to gps it wouldn't work. To address that I have it check if the gps is on and use network if the gps is

[android-developers] Re: 2-D Graphics Performance after Motorola Droid 2.1 Update

2010-04-03 Thread Emmanuel
Hi Phil, Actually, I saw this on a post on the replica island blog here : http://replicaisland.blogspot.com/ In one of the comment, the author explained that his aimed to be played at 50 Fps on a G1, but that he can achieve such a fps on a Droid or a Nexus one. I think the 3D graphic cards are

Re: [android-developers] Re: Displays on emulator, not on phone

2010-04-03 Thread Mark Murphy
RMD wrote: Thanks for all the responses. I'm embarrassed to admit, but I had the GPS turned off in the phone. Since, locm.requestLocationUpdates(gps, 0, 0,onLocationChange); was specifically set to gps it wouldn't work. To address that I have it check if the gps is on and use network

[android-developers] How to Launch Contact application displaying multiple phone numbers?

2010-04-03 Thread AJ
Hi Group, I am able to launch contact application from the following way. I am also able to show Name and only one Phone number. My problem is :- 1- How can I show multiple phone number [like Home, Mobile, Work etc] when I am launching contact application. How can I do that? 2- In Contact

[android-developers] Re: 2-D Graphics Performance after Motorola Droid 2.1 Update

2010-04-03 Thread Michele Scorcia
Hi, did you check the cpu frequency on both phones while the test was running? You can from the shell on the phone run the following command that check the frequency every second: while true; do cat /sys/devices/system/cpu/cpu0/cpufreq/ scaling_cur_freq; sleep 1; done Maybe they have done some

[android-developers] Re: Search, Result and Detail workflow inside a tab

2010-04-03 Thread Kumar Bibek
Well, here is a method that I can think of. 1. Create multiple View classes which prepare the layout and handle all the actions on that view. One for each, SearchView, ResultView and DetailView. 2. In the activity, get the first view and set it as content to the activity. 3. When the user

[android-developers] Re: Android GData (Calendar)

2010-04-03 Thread Kumar Bibek
You can use the official gdata libraries from google. Whats stopping you? This works quite well. There are some minor problem, but it works on android. Thanks and Regards, Kumar Bibek On Apr 2, 12:25 am, Johan johan.k...@gmail.com wrote: Hi I'm working on a program whose job is to parse a

[android-developers] Re: Button inside a TextView???

2010-04-03 Thread Kumar Bibek
You will have to customize yourAutoCompleteTextView. Change it's layout and add methods to handle the button clicks. Thanks and Regards, Kumar Bibek On Apr 1, 9:07 pm, Gustavo gumat...@gmail.com wrote: Hi all, I was wondering how can I place a small button inside my EditText view

[android-developers] Re: View is not loading

2010-04-03 Thread Kumar Bibek
Perhaps, you need to press the menu key to unlock the phone. Thanks and Regards, Kumar Bibek On Apr 1, 6:33 pm, [Lean] mateama...@gmail.com wrote: I've done the Hello World tutorial which it worked fine the first time I tried it. Now every time I run it I get the emulator's main screen

[android-developers] Re: Javascript Extension

2010-04-03 Thread Kumar Bibek
I think you should be able to do it. But you can only be sure if you try it for yourself. But, I am not sure as to how important this would be. Thanks and Regards, Kumar Bibek On Apr 1, 6:23 am, Deepak dpak2...@gmail.com wrote: Hello All, For a recent assignment, I need to make some Web

[android-developers] Re: Unable to reject the incoming call

2010-04-03 Thread Kumar Bibek
Not possible. Please do a search before posting any question. This has already been asked and answered so many times. Thanks and Regards, Kumar Bibek On Mar 31, 1:25 pm, Abdul Qavi Paracha aqav...@gmail.com wrote: Hi  I am creating an android application, and i want this app to handle all

[android-developers] Re: Reg: Does android support languages like Telugu and Tamil.

2010-04-03 Thread Kumar Bibek
Right now, no. You would also not find such fonts as well on the phone. You might be hopeful for the future. Thanks and Regards, Kumar Bibek On Mar 31, 11:58 am, Santha nsd1...@gmail.com wrote:  Hello,         I'am a beginner to the android.I'm just working on language localization in

[android-developers] Re: Build-in SMS service - how does it work

2010-04-03 Thread Kumar Bibek
I have tried to create a service which works fine until android decides to kill it. I have tried to create an alarm manager to trigger the service, but can not get it to work. A log from your app can be a bit more helpful. I don't understand why your Alarm Manager is failing. Thanks and

[android-developers] Re: Storing book-like content

2010-04-03 Thread Kumar Bibek
HTML is the way to go. Of-course, if you have formatted texts, html is good enough. But I don't really know about performance problems. Thanks and Regards, Kumar Bibek On Mar 30, 6:19 pm, fluxtah flux...@googlemail.com wrote: Hi, New android developer here, I was wondering if anyone could

[android-developers] Re: Splash Screen Appears only once

2010-04-03 Thread Kumar Bibek
Make sure that your onCreate method is called, and it is not resumed. You can put some Log statements to check this in your onCreate method. Thanks and Regards, Kumar Bibek On Mar 30, 3:45 am, Dror520 dror...@gmail.com wrote: Hey, i made a splash screen: public class SplashScreen extends

[android-developers] Re: How to inform an app(A) that an icon was just clicked to start another app(B)

2010-04-03 Thread Kumar Bibek
Ummm, I am not sure if your application can receive such intents. In the intent filter, try catching Main action, and check the package, if available. Again I am not sure if this will work. Thanks and Regards, Kumar Bibek On Mar 30, 10:47 am, IWorker zouyu9...@gmail.com wrote: Hi all, I just

[android-developers] Re: In process communication

2010-04-03 Thread Kumar Bibek
A shortcut method will be, have a static member in your service class. Keep checking that value, which would be updated or changed from inside the service. Thanks and Regards, Kumar Bibek. On Mar 30, 1:26 pm, T-Droid dev.r...@googlemail.com wrote: Hi @all, I have a design problem with my

[android-developers] Re: Is this a joke or a spam or another April 1st prank?

2010-04-03 Thread Kumar Bibek
MARKED IT SPAM On Apr 2, 5:45 pm, ~ TreKing treking...@gmail.com wrote: I just set up a GMail filter that marks them as read and deletes them. Problem solved. - TreKing - Chicago transit

[android-developers] Re: new service: link to android market from device and computer

2010-04-03 Thread ko5tik
Just send an external redirect with something like : market://search?q=pname:de.pribluda.games.android.colors (this link will install my game) You can also wrap it by URL shortener, and then you will get funny statistics regards, On Apr 3, 12:23 am, patbenatar patbena...@gmail.com wrote:

[android-developers] Re: How to Launch Contact application displaying multiple phone numbers?

2010-04-03 Thread AJ
Any clues from experts. - AJ On Apr 3, 3:51 pm, AJ ajeet.invinci...@gmail.com wrote: Hi Group, I am able to launch contact application from the following way. I am also able to show Name and only one Phone number. My problem is :- 1- How can I show multiple phone number [like Home, Mobile,

[android-developers] Re: How to Launch Contact application displaying multiple phone numbers?

2010-04-03 Thread AJ
Hi group Now I am able to insert 3 phone numbers. But There does not looks a way that How can I enter other phone numbers like :- Work Fax, Home Fax, Pager etc. Any clue please. Here is the code what I have done:- 1- How can I show multiple phone number [like Home, Mobile, Work etc] when

[android-developers] Re: JetPlayer keeps logging quot;write blocked for X msecsquot; - is this normal?

2010-04-03 Thread Alan
Hey,friend: I'm an Chinese dev,and I'm working on an app for android.The same problem happend to me,when I was palying mp3 file on emulator,the logcat keeps print AudioFlinger write blocked for xxx msecs,3-4 /s,have you resolved this problem?or this is not a problem,just ignore it? If

[android-developers] Changing AlertDialog font size

2010-04-03 Thread Yahel
Hi all, I've used an AlertDialog builder to display 6 items my user can choose from. Unfortunately for just a few pixels missing, it displays only half of the last item and adds a scrollbar. Beside, centering of the dialog is awkward, there is a 20px padding at the top but only 2px at the

Re: [android-developers] Changing AlertDialog font size

2010-04-03 Thread Mark Murphy
Yahel wrote: Hi all, I've used an AlertDialog builder to display 6 items my user can choose from. Unfortunately for just a few pixels missing, it displays only half of the last item and adds a scrollbar. Beside, centering of the dialog is awkward, there is a 20px padding at the top but

[android-developers] Re: In process communication

2010-04-03 Thread spachner
Hi, why not using Intents, that the natural way to communicate within Android, isn't it? With Intents you can let the service even communicate with activities in other processes without any code change then. spachner On 3 Apr., 16:38, Kumar Bibek coomar@gmail.com wrote: A shortcut method

[android-developers] intensive writing to internal memory

2010-04-03 Thread Nadav
Hi All, I'm wondering how worried should I be about writing an app that does a lot of writing (logs + db files) to the phone's main memory. In the past I was involved in a project that had to do a lot of writing to SD card, and the SD cards started malfunctioning after 2-3 months due to this,

Re: [android-developers] Re: advice + onclick help

2010-04-03 Thread ~ TreKing
On Sat, Apr 3, 2010 at 4:01 AM, Vladimir vladimir.funti...@gmail.comwrote: this here points to your OnClickListener instance, while you need Context. Try new Intent(getApplicationContext(), ...) instead No, DO NOT use getApplicationContext() ... EVER. It causes nothing but problems. Use

[android-developers] Please help me with permission problems

2010-04-03 Thread Brion Emde
I'm just trying to make happen what is described here, with the custom permission: http://developer.android.com/guide/topics/manifest/manifest-intro.html#perms i.e. I want my activities (I'm only showing one below) and ContentProvider to not be accessible from other applications, because they

Re: [android-developers] Creating Multiple Instances of a Class

2010-04-03 Thread ~ TreKing
On Fri, Apr 2, 2010 at 5:58 PM, Matthew Patience matthewj.patie...@gmail.com wrote: What I want to do is while the user is holding down the fire button to have it keep creating instances of the Laser class like a rapid fire and then when they hit the edge of the screen have them be

Re: [android-developers] Please help me with permission problems

2010-04-03 Thread Mark Murphy
Brion Emde wrote: I'm just trying to make happen what is described here, with the custom permission: http://developer.android.com/guide/topics/manifest/manifest-intro.html#perms i.e. I want my activities (I'm only showing one below) and ContentProvider to not be accessible from other

[android-developers] Re: scrollview dropshadow attributes available?

2010-04-03 Thread havexz
But where can we set the color? On Feb 5, 6:20 pm, Romain Guy romain...@android.com wrote: It's called the fadingedge or the fade Look in the View class. On Fri, Feb 5, 2010 at 3:09 PM, Jason Proctor jason.android.li...@gmail.com wrote: can i affect the look of the dropshadow that the

Re: [android-developers] how to DEBUG build an APK?

2010-04-03 Thread ~ TreKing
On Fri, Apr 2, 2010 at 6:55 PM, HeHe cnm...@gmail.com wrote: does anyone know how to DEBUG build an APK and launch it directly with Eclipse? Is the debuggable flag in your manifest set to true? -

Re: [android-developers] Re: Displays on emulator, not on phone

2010-04-03 Thread ~ TreKing
On Fri, Apr 2, 2010 at 5:16 PM, HeHe cnm...@gmail.com wrote: is there any way that an apk can know whether it is running in 'debug' or 'production' mode? If you always set debuggable=true for debug builds and debuggable=false for release, then you can check if the debuggable attribute is set

[android-developers] Re: advice + onclick help

2010-04-03 Thread Vladimir
You're right, that was bad advice on my part, although I never had any problems with getApplicationContext() myself. On Apr 3, 9:57 pm, ~ TreKing treking...@gmail.com wrote: On Sat, Apr 3, 2010 at 4:01 AM, Vladimir vladimir.funti...@gmail.comwrote: this here points to your OnClickListener

Re: [android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-03 Thread SoftwareForMe.com SoftwareForMe.com
We received a Droid yesterday. This morning it received the 2.1 update. Interestingly, a personal Droid purchased on November 6th has not yet received a 2.1 update. On Sat, Apr 3, 2010 at 12:39 AM, ratson materem...@gmail.com wrote: this is pretty good news, if Fedex is shipping to th EU it

[android-developers] Re: Please help me with permission problems

2010-04-03 Thread Brion Emde
Thanks Mark, that's helpful. What I was trying to do was to get that example to work that I posted a link to. Then I was going to try to figure out what I actually need. So far, I'm pretty stupid as far as Android permissions go. On Apr 3, 1:15 pm, Mark Murphy mmur...@commonsware.com wrote:

[android-developers] Re: Please help me with permission problems

2010-04-03 Thread Brion Emde
I discarded the permissions on the Activities, as I didn't know why they were there either, I was trying out that example. If I go with a permission entry on my ContentProvider, I cannot query the data. If I change the android:permission on my ContentProvider like so: provider

[android-developers] Re: Please help me with permission problems

2010-04-03 Thread Brion Emde
Ok, I was wrong. Apparently, changing the security on the ContentProvider resulted in a new database being created. I was thrown off by the empty screen of my ListView that I was getting a security failure. But there was no message. So, I can create, update, delete and read the data in the new

[android-developers] How to refer an attribute value to the other attribute in the same element of layout

2010-04-03 Thread adag
Hello, I have problem to solve. I have listview in which android:background=#7W value I would would like to put it in the android:cacheColorHint= the value of the android:background. If anybody put some light how to refer the other attribute value to another attribute of the same element would

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-03 Thread Thomas Riley
The few (and I really do me few!) people who have already had them in the UK had them shipped from Holland via FedEx, not from the US. On Apr 3, 8:39 am, ratson materem...@gmail.com wrote: this is pretty good news, if Fedex is shipping to th EU it can take up to 2 weeks for them to arrive, so

[android-developers] Re: Contacts from 1.5 and 1.6 ... filtering out trash

2010-04-03 Thread DulcetTone
I am using this in Android 1.x: final String[] proj = new String[] { Contacts.People._ID, Contacts.People.STARRED, Contacts.People.NAME }; final String selection = null; Uri uri = Uri.parse(content://contacts/groups/system_id/

[android-developers] Re: How to send AT command in android?

2010-04-03 Thread Bob Kerns
You know, I've always considered these responses to cross-posting to a relevant forum or two to be rude. And I've been doing this longer than there's been anything called Usenet or groups or forums, so this isn't some newbie comment. Traditionally, a cross-post to a small number (2, perhaps 3) of

Re: [android-developers] How to refer an attribute value to the other attribute in the same element of layout

2010-04-03 Thread Mark Murphy
adag wrote: Hello, I have problem to solve. I have listview in which android:background=#7W value I would would like to put it in the android:cacheColorHint= the value of the android:background. If anybody put some light how to refer the other attribute value to another attribute of the

[android-developers] Re: How to Launch Contact application displaying multiple phone numbers?

2010-04-03 Thread AJ
Any help Experts - AJ On Apr 3, 7:00 pm, AJ ajeet.invinci...@gmail.com wrote: Hi group Now I am able to insert 3 phone numbers. But There does not looks a way that How can I enter other phone numbers like :- Work Fax, Home Fax, Pager etc. Any clue please. Here is the code what I have

[android-developers] Hello,everybody,the good shoping place,the new year approaching, click in. Let's facelift bar! ===== http://www.madeshopping.net ====

2010-04-03 Thread vipshopper...@hotmail.com
Hello,everybody,the good shoping place,the new year approaching, click in. Let's facelift bar! = http://www.madeshopping.net Air jordan(1-24)shoes $33 UGG BOOT $50 Nike shox(R4,NZ,OZ,TL1,TL2,TL3) $35 Handbags(Coach lv fendi dg) $35 Tshirts (Polo ,ed hardy,lacoste) $16 Jean(True

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-03 Thread timedilation
Although my Droid auto-updated to 2.1 couple of days back, I don't see the scrolling icons view like the one on Nexus One. It is still showing the old style roll-out view. Any pointers to get the 3D scroll view on Droid? Thanks. On Apr 3, 3:29 pm, SoftwareForMe.com SoftwareForMe.com

[android-developers] Re: scrollview dropshadow attributes available?

2010-04-03 Thread havexz
I want to add one more thing i want to have background color and fade color to be different On Apr 3, 2:17 pm, havexz bali.param...@gmail.com wrote: But where can we set the color? On Feb 5, 6:20 pm, Romain Guy romain...@android.com wrote: It's called the fadingedge or the fade Look in the

[android-developers] Progress dialog question/problem (API Demos example)

2010-04-03 Thread EvgenyV
Hi all! I'm using the progress dialog example from Android API Demos AlertDialogSamples.java (case DIALOG_PROGRESS). After the orientation changed the dialog is freezing with no progress anymore. What should I change to make the example working properly after orientation change? The piece of

[android-developers] Re: conditional compilation

2010-04-03 Thread Bob Kerns
I'm a bit puzzled at your response, as you seem to be addressing C/C++ rather than Java? I've probably contributed to the confusion by talking a little bit about C++ vs C. Perhaps you intend your response to just refer to some aspect of those remarks? But let me try to sort it out by context.

Re: [android-developers] Re: user agent of the device ..

2010-04-03 Thread dan raaka
This is not for driving any logic - but for an app to check if the default standard structure of the UA string in android is still intact or has the OEM changed (for whatever reason) -Dan On Mon, Feb 22, 2010 at 12:23 AM, Bob Kerns r...@acm.org wrote: This is seriously easy to do, and nobody

Re: [android-developers] Re: user agent of the device ..

2010-04-03 Thread Mark Murphy
dan raaka wrote: This is not for driving any logic - but for an app to check if the default standard structure of the UA string in android is still intact or has the OEM changed (for whatever reason) I am not sure that will help you, unless you're going to force the user to visit your internal

[android-developers] Re: conditional compilation

2010-04-03 Thread Bob Kerns
One other observation -- Java, having a well-defined platform- independent output format for the compiler, makes practical another approach -- postprocessing. That, in fact, is what ProGuard does -- it takes the .class files, and postprocesses them. Likewise, the Android toolset does the same,

Re: [android-developers] Re: Contacts from 1.5 and 1.6 ... filtering out trash

2010-04-03 Thread Dmitri Plotnikov
Hi Tone, This was before my time, but I think you are doing it right. As far as I remember, Android 1.5/6 did not support any kind of integration with Outlook. Whatever mechanism was used to import the Outlook contacts must have messed them up. On Android 1.5/6, when you were adding a contact,

Re: [android-developers] Re: user agent of the device ..

2010-04-03 Thread dan raaka
yes that is correct, the restriction is mainly on the browser UA string to have any structure and that is the one that needs some validation for change. -Dan On Sat, Apr 3, 2010 at 2:36 PM, Mark Murphy mmur...@commonsware.com wrote: dan raaka wrote: This is not for driving any logic - but

[android-developers] Re: Your feedback on Samples/Tutorials/Articles

2010-04-03 Thread Robert Green
Missing Samples: GL Live Wallpaper. There's an example of a canvas- based live wallpaper but none of the ones that ship on the N1 or Droid 2.1 are canvas, they are all GL. Maybe one isn't, but that's not the point. Correctly handled GL init code (especially on orientation change) would be

[android-developers] md5sum on the file

2010-04-03 Thread Dan Raaka
Is there way to generate md5 checksum (like md5sum on linux) of a file in android ? the closest I found was this http://www.androidsnippets.org/snippets/52/ -Dan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: I have problem in package resolution

2010-04-03 Thread Bob Kerns
That's not the problem, he's reporting a compiler error. (He may yet have that problem downstream of this one). Darshan, what you've written is not valid Java syntax. You mean one of these two constructors ComponentName(string, string) or ComponentName(context, class). What you've supplied as

[android-developers] Droid 2.1-update1 EGL10.eglCreateWindowSurface() deadlocks intermittently

2010-04-03 Thread Robert Green
I've had this reported to me by a few people using the GLWallpaperService code I posted. I've been debugging this for hours and have so far tracked the problem down to egl.eglCreateWindowSurface(display, config, nativeWindow, null); It never returns and every notifyAll() after that results in:

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-03 Thread Robert Green
Also Received Droid in Fargo, ND a few days ago. So that's one for 3.5 star/5000 DL and one for ADC2 top 200. Thanks Google! One already has the 2.1 update. On Apr 3, 3:45 pm, timedilation udayan.k...@gmail.com wrote: Although my Droid auto-updated to 2.1 couple of days back, I don't see the

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-03 Thread Jeremy Logan
Where are you guys entering *228? I'm stuck on the activate screen. On Apr 1, 8:17 am, Wicked96SS 45gl...@gmail.com wrote: On Mar 31, 8:28 am, Justin Giles jtgi...@gmail.com wrote: On Tue, Mar 30, 2010 at 11:48 PM, Jason arm...@gmail.com wrote: I received a Droid and I did not see the

[android-developers] Re: Fastest and most reliable Location provider

2010-04-03 Thread Bob Kerns
I don't think you're saving anything significant. It takes only a tiny bit of energy -- VERY tiny -- to register a listener. The things that will make a difference are keeping the various components awake and powered up. For example, keeping the processor awake and running, or keeping the GPS

[android-developers] Re: Search, Result and Detail workflow inside a tab

2010-04-03 Thread Justin Grammens
Thanks Kumar. It looks like I will need to override the back button and track my own state. :( We have been having some discussions on StackOverFlow concerning this problem I'm having.

Re: [android-developers] Re: I have problem in package resolution

2010-04-03 Thread David Toledo
Hi All is possible can copy a xml file to the /data directory on the read-only partition and how to? Thanks David -- 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

[android-developers] Re: advice + onclick help

2010-04-03 Thread Bob Kerns
Often you won't. Then someday you will, and won't know what happened to you! Sometimes, the context you need has to be the current activity -- and it won't be. And even worse -- sometimes the context won't even be for your current application -- but rather, the first application that started in

[android-developers] Re: how to DEBUG build an APK?

2010-04-03 Thread HeHe
yes, the flag is set to true. but Config.DEBUG seems always false no matter what. On Apr 3, 12:13 pm, ~ TreKing treking...@gmail.com wrote: On Fri, Apr 2, 2010 at 6:55 PM, HeHe cnm...@gmail.com wrote: does anyone know how to DEBUG build an APK and launch it directly with Eclipse? Is the

[android-developers] Re: intensive writing to internal memory

2010-04-03 Thread Bob Kerns
I've wondered about this, and don't have any definitive answer to this. However, there are several factors involved. Flash memory involves rewriting entire chunks of data, often larger than a single block, when a single block is written. This can affect how often a given location is written.

[android-developers] Re: Fastest and most reliable Location provider

2010-04-03 Thread Ning
On Apr 3, 2:39 am, patbenatar patbena...@gmail.com wrote: Hey all who are interested in this topic- I have taken John's above advice and modified it into what I believe is a more efficient way to be doing this [although the efficiency of my method is only evident if you're going to to ensure

[android-developers] Service Object Availability between Activities

2010-04-03 Thread Tunneling
I currently have a service called ConnectionService. It instantiates a Connection object that gives me access to a controller of TCP. I start the service from a splash screen activity, which sends and intent and starts my main activity once a connection has been established. In the main activity,

[android-developers] Re: Progress dialog question/problem (API Demos example)

2010-04-03 Thread Kumar Bibek
Since the whole Activity is re-started, if you don't have a code which initialized the ProgressDialog again, after orientation change, you will not get the desired results. So, before orientation change and after orientation change, you need to save the state of your dialog and then recreate it.

[android-developers] Re: In process communication

2010-04-03 Thread JP
Kumar's method might work, but you should look up Context.bindService() and ServiceConnection.onServiceConnected() to find out how to do this within Android's framework. What I do: In MyApplication's @Override public void onStart() I call: bindService(new Intent(MyApplication.this,

[android-developers] Activating Bluetooth

2010-04-03 Thread Ken H
Is there a simple way to activate/deactivate bluetooth without having some dialog popup requesting the user's permission every time? I have an app that plays music (it's actually part of a scheduled alarm). I want to play music through some bluetooth speakers I have already paired the phone with,

[android-developers] Re: how to DEBUG build an APK?

2010-04-03 Thread JP
On Apr 3, 4:30 pm, HeHe cnm...@gmail.com wrote: yes, the flag is set to true. In the right location? In the manifest, it must be placed like this: application android:debuggable=true -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Working GL init/deinit on Droid 2.1 WallpaperService?

2010-04-03 Thread Robert Green
Hey guys, Looking for some WallpaperService EGL code that is stable when flipping orientations multiple times on a Droid. I've been debugging for a full day now and everything looks correct to me, yet my code is getting stuck sometimes in eglCreateWindowSurface. It usually works a few times

[android-developers] Re: How to refer an attribute value to the other attribute in the same element of layout

2010-04-03 Thread adag
Thanks Mark for your reply, But my requirement is little different. basically I am changing listview android:background Color dynamically. As you know that while list gets prepared every time, first it refers to the android:cacheColorHint from the cache to draw the list otherwise the scrolling of

[android-developers] Re: (TabActivity) How to switch tab from within a sub activity

2010-04-03 Thread Lance Nanek
I've changed tabs from the activity inside a tab by using a broadcast intent before. Example from a still very rough, unpublished app: Listening in the tab activity subclass for the broadcast:

[android-developers] Re: Droid 2.1-update1 EGL10.eglCreateWindowSurface() deadlocks intermittently

2010-04-03 Thread Lance Nanek
Reminds me of this previous issue a little, where people were working out ways to make GLSurfaceView wait for the rendering to stop before actually pausing: http://code.google.com/p/android/issues/detail?id=4283 On Apr 3, 5:56 pm, Robert Green rbgrn@gmail.com wrote: I've had this reported to

[android-developers] TextView onClick never being called (for a specific TextView)

2010-04-03 Thread Gabriel Simões
Hello all, Well, I´ve been trying to figure it out alone for quite some time, so I decided to ask for help. It seems to be something dumb indeed, simple, but I can´t find what´s going on. I have many TextViews and buttons over a RelativeLayout. For all the buttons and some textviews I´ve set

[android-developers] Re: Droid 2.1-update1 EGL10.eglCreateWindowSurface() deadlocks intermittently

2010-04-03 Thread Robert Green
Lance, It does remind me of it but one of the first things I did when I started working on this issue was put the render/swap buffers into a synchronized block so that it would be guaranteed to be finished before any other call could interrupt/destroy the surface/etc. I just double-checked and I

  1   2   >