Re: [android-developers] Extending multiple classes

2010-07-30 Thread Kostya Vasilyev
This is called multiple inheritance, and Java - the language - doesn't have this feature, regardless of the platform (Android or not). Break up your code logic into more fine-grained pieces. You can bind to the service from multiple activities, as many as necessary. Also, you don't need to

[android-developers] Re: My experience with LVL and the precedence it sets

2010-07-30 Thread andrew android
I just started using the LVL also. I had problems adding a reference to the LVL project (I kept getting manifest errors immediately upon adding the reference) so I just added it directly. Then, I tried to buile the sample code into my project but I find it all very clunky. I think it is absurd

Re: [android-developers] Sync Adapter and api level 3 4?

2010-07-30 Thread Dianne Hackborn
Yes permissions on older platforms will be ignored. Since older platforms don't know about sync adapters, they just won't do anything with them. Do be sure of course to test your code on an older platform to be sure all is well, though. On Fri, Jul 30, 2010 at 11:17 AM, Mark Wyszomierski

[android-developers] Adding headers to listview for cursor with grouped results

2010-07-30 Thread Connick
Requirement: Display query results in a list with a header view atop each group. (results grouped from database) Looking at Mark's MergeAdapter. Wondering if I might be able to use a single cursor and have each adapter filter on the group field? That a viable approach? Cheers, Stacy -- You

Re: [android-developers] Intent for following a user on Twitter?

2010-07-30 Thread Shane Isbell
I'm working on this feature for devs to embed code for twitter follows in their app. The client code will be open-source (ASL v2) and hook into my ZappMarket servers. If you can hold off a week or so, you will be able to use it. On Fri, Jul 30, 2010 at 9:19 AM, TreKing treking...@gmail.com wrote:

Re: [android-developers] Adding headers to listview for cursor with grouped results

2010-07-30 Thread Mark Murphy
On Fri, Jul 30, 2010 at 2:29 PM, Connick oconn...@gmail.com wrote: Requirement: Display query results in a list with a header view atop each group. (results grouped from database) Looking at Mark's MergeAdapter. Wondering if I might be able to use a single cursor and have each adapter filter

[android-developers] Re: Sync Adapter and api level 3 4?

2010-07-30 Thread Mark Wyszomierski
Hi Dianne, Thanks, I should have posted this fragment as well, what about these references: service android:name=.authenticator.AuthenticationService action android:name=android.accounts.AccountAuthenticator / action android:name=android.content.SyncAdapter /

Re: [android-developers] Adding headers to listview for cursor with grouped results

2010-07-30 Thread Connick
Knowing it's possible is enough for me to go on and start digging. :) Will post back if I figure it out! On Fri, Jul 30, 2010 at 2:32 PM, Mark Murphy mmur...@commonsware.comwrote: On Fri, Jul 30, 2010 at 2:29 PM, Connick oconn...@gmail.com wrote: Requirement: Display query results in a list

Re: [android-developers] Adding headers to listview for cursor with grouped results

2010-07-30 Thread Kostya Vasilyev
Stacy, You might want to look at the source for Android's built-in email client. It groups messages by date, i.e. today, yesterday, more recent. Don't know for sure if its source is available, but I think it is (K9 mail is based on it). -- Kostya 30.07.2010 22:32, Mark Murphy пишет: On

Re: [android-developers] Subclassing Animation

2010-07-30 Thread Romain Guy
Subclassing Animation won't help you unfortunately. It would be best for you to implement the animation yourself. On Fri, Jul 30, 2010 at 11:18 AM, jsera gall.blad...@gmail.com wrote: Hi, I'd like to subclass Animation in order to get an animation that changes the clipRect of the canvas passed

[android-developers] Re: Can't get LVL working.

2010-07-30 Thread sblantipodi
o_O now it works... -_- Don't develop for more than 12 hours a day... I should remember it :D On Jul 30, 7:40 pm, Xav x...@android.com wrote: The Google APIs add-on for 2.2 (in revision 2) supports testing LVL- enabled app. See instructions

Re: [android-developers] Adding headers to listview for cursor with grouped results

2010-07-30 Thread Connick
The grouping itself is no problem ...its tossing in the arbitrary view to act as a header to each group within that list. From the looks of the client it doesn't use any type of headers in its list ...but thanks for the suggestion! On Fri, Jul 30, 2010 at 2:38 PM, Kostya Vasilyev

Re: [android-developers] Picking up radio stations?

2010-07-30 Thread Mark Murphy
On Fri, Jul 30, 2010 at 2:17 PM, Tommy droi...@gmail.com wrote: Is there a way to let my app tune into a certain radio station(FM/AM?) Or is this something not yet possible with android? A handful of Android devices may have built-in radio tuners. I suspect none have built-in radio tuners and

[android-developers] Re: Subclassing Animation

2010-07-30 Thread jsera
Thanks for the quick reply! So then would the best approach be to call invalidate, and change the size of the View using setMeasuredDimension on every tick of a Timer object? On Jul 30, 11:39 am, Romain Guy romain...@android.com wrote: Subclassing Animation won't help you unfortunately. It

Re: [android-developers] Adding headers to listview for cursor with grouped results

2010-07-30 Thread Kostya Vasilyev
It does on my phone - Samsung Galaxy S with Android 2.1update1. This is the built-in Android email client, set up with an IMAP account. I just had an idea. It should be much easier to implement the header as part of data item view hierarchy. This way the number of items in the list view is

Re: [android-developers] Re: Subclassing Animation

2010-07-30 Thread Romain Guy
Something like that :) The way we usually do it is post a delayed invalidate instead of using a Timer. We'll have a better solution in a future release of Android though. On Fri, Jul 30, 2010 at 11:52 AM, jsera gall.blad...@gmail.com wrote: Thanks for the quick reply! So then would the best

[android-developers] Re: Can't get LVL working.

2010-07-30 Thread sblantipodi
Now I've got another problem now... I'm using the Default Policy implementation, the first time I setted my developer console to licensed, this makes my software authenitcate well on the emulator, after this, I setted the developer console to not licensed, removed the software from emulator and

[android-developers] Re: Compiling and obfuscating by command line...

2010-07-30 Thread sblantipodi
done, same problem... :( On Jul 30, 7:46 pm, Mark Murphy mmur...@commonsware.com wrote: If this is a normal Android project, run android update project -p ..., where ... is the path to your project, and it will create or repair your local.properties file. On Fri, Jul 30, 2010 at 1:31 PM,

Re: [android-developers] Re: Android Market Licensing: Now Available!

2010-07-30 Thread Dianne Hackborn
On Wed, Jul 28, 2010 at 9:24 AM, Joseph Earl joseph.w.e...@gmail.comwrote: Any chance you guys are working a solution for large applications that will work across Android 1.5-2.1? No those platforms are already exist; it would make no sense to modify them to support new features. Currently

Re: [android-developers] Adding headers to listview for cursor with grouped results

2010-07-30 Thread Connick
I'm with you on that ...re: header part of hierarchy, that's the direction I'm going but I was worried about position mapping ...you're suggestion to include the header view with a row item would solve that problem! Gracias, will give that a shot. Cheers S On Fri, Jul 30, 2010 at 2:53 PM, Kostya

Re: [android-developers] Re: Sync Adapter and api level 3 4?

2010-07-30 Thread Dianne Hackborn
If nothing tries to run them, they will never be instantiated and should be fine. On Fri, Jul 30, 2010 at 11:32 AM, Mark Wyszomierski mar...@gmail.comwrote: Hi Dianne, Thanks, I should have posted this fragment as well, what about these references: service

Re: [android-developers] Re: Android Market Licensing: Now Available!

2010-07-30 Thread Shane Isbell
On Fri, Jul 30, 2010 at 12:01 PM, Dianne Hackborn hack...@android.comwrote: On Wed, Jul 28, 2010 at 9:24 AM, Joseph Earl joseph.w.e...@gmail.comwrote: Any chance you guys are working a solution for large applications that will work across Android 1.5-2.1? No those platforms are already

[android-developers] Webview not fit to screen

2010-07-30 Thread Ken
Hi, When I load a URL in my webview, the page always appears with full size and I am unable to zoom out (I did call setBuiltInZoomControls(true)). The webview is wrapped in a LinearLayout with fill_parent for both dimensions. Is there a simple way to fit the content of the webview automatically

Re: [android-developers] Re: Android Market Licensing: Now Available!

2010-07-30 Thread Mark Murphy
On Fri, Jul 30, 2010 at 3:08 PM, Shane Isbell shane.isb...@gmail.com wrote: Does this mean that apps installed on SD card are not going to be able to store private data (Context.MODE_PRIVATE) on device? AFAIK, the app's local files (e.g., getFilesDir()) is still in the on-board flash, not on

Re: [android-developers] Re: Froyo -- How to detect that my application has been killed?

2010-07-30 Thread Dianne Hackborn
Um yeah the check for process priority does let it kill service processes (not visible or foreground service processes though). Whoops. I'll fix that. That said, the service *does* restart like it always did, and I have confirmed it does. That code path hasn't changed at all. So basically the

Re: [android-developers] Re: Android Market Licensing: Now Available!

2010-07-30 Thread Dianne Hackborn
On Fri, Jul 30, 2010 at 12:08 PM, Shane Isbell shane.isb...@gmail.comwrote: Does this mean that apps installed on SD card are not going to be able to store private data (Context.MODE_PRIVATE) on device? No that is a totally different thing. All installed apps have a private data directory,

Re: [android-developers] Re: Froyo -- How to detect that my application has been killed?

2010-07-30 Thread Dianne Hackborn
Oh wait I take that back... what has changed is that task killers no longer go through the full force stop path -- *ALL* they can do is kill processes, and further only processes that are good or moderate candidates for the out of memory killer (pure background processes up to services running in

[android-developers] Re: Subclassing Animation

2010-07-30 Thread jsera
Alright, invalidate seems to just call onDraw, which is exactly what the docs say it does, so my approach is to call setMeasuredDimension in the method called by the Runnable posted by the tick, (It seems like onMeasure only gets called if the dimensions are changed by setMeasuredDimension, so if

[android-developers] APIDemos Is sample SaveRestoreState incomplete?

2010-07-30 Thread Anil
It does not override onSaveInstanceState() and does not seem to work. (on both 2.1, 2.2). Perhaps I am missing something? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Extending multiple classes

2010-07-30 Thread Priyank Maiya
Hi, I am facing some when running the code. I am using the getApplicationContext() to save the instance. Kindly have a look at my code and let me know where I am going wrong. VVMService is the class whose instance is created and got from the onServiceConnected() callback public class

[android-developers] Re: Multiple Sliding Drawers

2010-07-30 Thread brucko
Disclaimer - I have no idea about what I am talking about. I have not tried this. Could you use one sliding drawer with three views on the handle - but change the drawer contents based on what part of the handle was touched to drag up. To make it a better user experience, you might make the

[android-developers] Re: Correct way to kill the application

2010-07-30 Thread Indicator Veritatis
A good article. A little harsh on the OP, but even so, a good article. After all: given that that IS the design of Android, that Applications should not quit, but leave termination up to the OS, the article makes its case well, even elegantly. But I cannot help but notice: after Android did all

[android-developers] Re: Binder is leaked by binding to a service

2010-07-30 Thread brucko
This appears to be a bug http://code.google.com/p/android/issues/detail?id=6426 watch out. If your LocalBinder is a non-static inner class, then you will leak your Service as well as non-static inner classes have a reference to the outer class. -- You received this message because you are

[android-developers] Re: Froyo -- How to detect that my application has been killed?

2010-07-30 Thread tomei.ninge...@gmail.com
Hi Dianne, Our main problem is that Intent.ACTION_PACKAGE_RESTARTED is no longer called in Froyo. (Sorry I digressed to Service ... I thought that I can implement something similar to Intent.ACTION_PACKAGE_RESTARTED by running a service from my app. If the app is killed, the Service can detect

Re: [android-developers] Re: Correct way to kill the application

2010-07-30 Thread Kostya Vasilyev
Technical details aside, I think it's just human nature. Some percentage of users just have a strong desire to have something magical that *supposedly* makes their device (Android phone or desktop OS) work much better. Remember - there used to be all kinds of memory optimizers for Windows?

[android-developers] Re: How to identify which client called into a Remote/AIDL service?

2010-07-30 Thread mah
I don't know if there's a more proper way to do what you need, but it makes sense that there should be. In the worst case though, you can solve this through your own protocol... you can require clients call an initialization to receive some random value you provide (and store, to associate with

[android-developers] Re: APIDemos Is sample SaveRestoreState incomplete?

2010-07-30 Thread Anil
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/SaveRestoreState.html On Jul 30, 3:00 pm, Anil anil.r...@gmail.com wrote: It does not override onSaveInstanceState() and does not seem to work. (on both 2.1, 2.2). Perhaps I am missing something? -- You

Re: [android-developers] Re: Correct way to kill the application

2010-07-30 Thread Greg Donald
On Fri, Jul 30, 2010 at 3:33 PM, Kostya Vasilyev kmans...@gmail.com wrote: Google is starting to limit what task killers can do. I believe interfering with the platform's core functionality is definitely a bad thing. Google should worry more about the crap-ware vendors are putting on my phone.

[android-developers] How to populate a ViewStub using different ImageButtons?

2010-07-30 Thread Victoria Busse
Hi there, I am trying to populate a ViewStub with a new view depending on which ImageButton is clicked, but as I just discovered ViewStubs I am not exactly sure how this would work... e.g. can I provide the ViewStub with different inflatedIds and within the onClick event of a Button inflate the

[android-developers] Re: Help Needed Getting JSON to Jersey Web Service and Consuming it

2010-07-30 Thread JimBadger
Thanks very much Mr Gies, I'll digest this later and expand upon my requirements if still required. Cheers. On 30 July, 17:25, Brad Gies rbg...@gmail.com wrote: To give you good advice, we probably need to know what your server end is expecting, and what kind of security you need. It could

[android-developers] Do any Andriod 2.+ phones record phone calls?

2010-07-30 Thread justSteve
I just like checking in every couple months to see if any movement on this fundamental functionality has occurred. Still interested in learning why this functionality is being blocked. thx -- You received this message because you are subscribed to the Google Groups Android Developers group. To

RE: [android-developers] Picking up radio stations?

2010-07-30 Thread Tommy
Ah okKind of a bummer -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Mark Murphy Sent: Friday, July 30, 2010 2:46 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Picking up radio

Re: [android-developers] Re: Froyo -- How to detect that my application has been killed?

2010-07-30 Thread Dianne Hackborn
It isn't being called because the app is NOT being restarted. As I said, the ONLY thing app killers can do now is the same thing that the OOM killer does when it needs memory, and this NEVER involved a broadcast. You have lost nothing here from previous versions of the platform. On Fri, Jul 30,

[android-developers] AlertDialog changes sequence of events

2010-07-30 Thread john brown
Hello, The following code runs as I expect it to.: (cntr is an int with the whole class as it's scope) System.out.println(before saveReading, cntr = + Integer.toString(cntr)); saveReading(Integer.parseInt(etRead.getText().toString())); System.out.println(after

Re: [android-developers] Re: Compiling and obfuscating by command line...

2010-07-30 Thread Miguel Morales
Make sure you have the included files such as: property file=local.properties/ Which should have: sdk.dir=/path/to/sdk_root property file=build.properties/ Which should have: sdk-location=/path/to/sdk_root and property file=default.properties/ Which should have: target=android-3 ##or whatever

Re: [android-developers] AlertDialog changes sequence of events

2010-07-30 Thread TreKing
On Fri, Jul 30, 2010 at 4:31 PM, john brown johnbrowngreybe...@gmail.comwrote: What can I do to make the code with the yes/no confirmation run in the sequence I am expecting, i.e. like the first LogCat output? Print after in response to clicking the dialog buttons.

[android-developers] Re: Unable to retrieve the GIVEN_NAME or FAMILY_NAME from database

2010-07-30 Thread j
Thanks for the reply. I agree the API doc is very ambiguous. On Jul 30, 12:39 am, William Ferguson william.ferguson...@gmail.com wrote: You appear to be using a combination of Android 1.5 and Android 2.0 mechanisms. Ie passing Android 2.0 constants to an Android 1.5 mechanism. Android 1.5

Re: [android-developers] AlertDialog changes sequence of events

2010-07-30 Thread Kostya Vasilyev
AlertDialog is not modal - the call to show() returns immediately, leaving the dialog on the screen and button callbacks active. This is the reason for the sequence change you're seeing. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 31.07.2010 1:37 пользователь TreKing

[android-developers] Re: Do any Andriod 2.+ phones record phone calls?

2010-07-30 Thread moneytoo
Unfortunately no, still blocked/crippled. On Jul 30, 11:03 pm, justSteve am.st...@gmail.com wrote: I just like checking in every couple months to see if any movement on this fundamental functionality has occurred. Still interested in learning why this functionality is being blocked. thx --

[android-developers] Static variables cleared in JUnit tests! (???)

2010-07-30 Thread Streets Of Boston
Hello, I have this test-code: = package somepackage; import android.test.ActivityInstrumentationTestCase2; import android.util.Log; import com.kronos.mobile.android.Constants; import com.kronos.mobile.android.ExceptionsSummaryActivity; import

[android-developers] LVL security, are you sure that is secure, I'm a doubt in...?

2010-07-30 Thread sblantipodi
Hi all, I'm implementing LVL... I noticed that google recommends to not use devicelimiter, but what are the meaning of licensing if you not use devicelimiter? Probably I missunderstood something but without device limiter piracy is easyer than before... Suppose that I bought XXX software using

[android-developers] Re: add uses-permission to application via Java code

2010-07-30 Thread Paul Turchenko
Behind the curtain, android uses permissions to asign you user groups he belongs to (linux user and linux groups). So basically you are asking if you can add user assigned to your application to certain groups. Guess that's not possible as your process (meaning your user) just doesn't have

[android-developers] Retrieving XML Document from web service

2010-07-30 Thread beacon
Hi , I am trying to retrieve a XML document from web service. I am passing a soap object with a token implementing the OAuth concept and retrieving the data. But the data does not turn out to be in XML format. It contains a curly braces in the place of start tag and semicolons when it ends. Is

[android-developers] Re: Correct way to kill the application

2010-07-30 Thread Eric F
Yeah this is exactly what I thought too. Just because non-technical people download task killers from the market doesn't mean that task killers are necessary. In my opinion it is way more likely that the explanation is that people are just very bad at shifting their way of thinking from paradigm

[android-developers] Multiple calls to SimpleCursorAdapater#bindView

2010-07-30 Thread William Ferguson
Hi all, I have a ListView populated using a SimpleCursorAdapter that has a ViewBinder, and I'm finding that when the ListView is displayed, ViewBinder#setViewValue is called 3 times for each row of the cursor. Once during onMeasure: at au.com.xandar.contactsmanager.DisplayContactsActivity

Re: [android-developers] Retrieving XML Document from web service

2010-07-30 Thread Carlos Silva
On Fri, Jul 30, 2010 at 23:35, beacon indiantalkiedhi...@gmail.com wrote: Hi , I am trying to retrieve a XML document from web service. I am passing a soap object with a token implementing the OAuth concept and retrieving the data. But the data does not turn out to be in XML format. It

[android-developers] Re: Retrieving XML Document from web service

2010-07-30 Thread beacon
Thanks for your reply. But it is not similar to JSON. My sample data looks something like this anyType{ProductName=anyType{Text=Nadolol; Code=anyType{Value=11755; CodingSystem=FDB_routed; }; Code=anyType{Value=20.55472; CodingSystem=Google; }; Code=anyType{Value=7870; CodingSystem=FDB; };

[android-developers] Re: How to get handle to ImageView in a ListItem

2010-07-30 Thread Hari
Hi Mark, Thanks for the Reply. I might have not stated my question properly. I have implemented another functionality for onListItemClick(). Each list item has a ImageView and i want the user to be able to change this image by selecting from phone's gallery or by taking a snap. So i have an

[android-developers] Re: Do any Andriod 2.+ phones record phone calls?

2010-07-30 Thread William Ferguson
I don't thnk its so much blocked/crippled. I think we are waiting for device drivers that enable it, from either the device manufacturers or some hearty souls. In particular see http://code.google.com/p/android/issues/detail?id=4075#c22 As well as :

Re: [android-developers] Re: Retrieving XML Document from web service

2010-07-30 Thread Frank Weiss
I don't recognize what data format that is, but I would guess that your code has an error or is not sending the right HTTP headers. What client side code are you using? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: adding audio to a game - triggerClip for SFX

2010-07-30 Thread kk
Dave, Thank you for your quick response. SoundPool is indeed the right way to go and I've got my SFX playing...pretty straight forward interface. A small problem I'm having is that during playback I get a lot of: W/AudioFlinger( 31): write blocked for 50 msecs Also, although my (relative

[android-developers] Re: How to get handle to ImageView in a ListItem

2010-07-30 Thread greg
I also use the EfficientAdapter BaseAdapter in my ListView. Is it not possible for you to use the onItemClick handler, which provides the list index (i.e., position), to implement your image change? (That's what I do.) On Jul 30, 6:45 pm, Hari mba.for.d...@gmail.com wrote: Hi Mark, Thanks

[android-developers] Re: Retrieving XML Document from web service

2010-07-30 Thread beacon
Hello Frank, This is what I am doing on the client side SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty(token,WebPage.token); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet = true;

[android-developers] Re: Text blinking effect TextView

2010-07-30 Thread Zsolt Vasvari
I can't give you code as I don't have any. I simply suggested how I would approach the problem. Modify the existing code to, instead of flipping to views, it hides and shows one. You will have to do the coding work, sorry. On Jul 30, 4:28 pm, Huynh Ngoc Vu Nguyen vunguye...@gmail.com wrote:

[android-developers] Re: How to get handle to ImageView in a ListItem

2010-07-30 Thread Hari
Hi Greg, I gave a thought to that approach as well. I want the image selection dialog to come up only when the user clicks on the image view. With onItemClick handler, the dialog pops up when user clicks any section of the list item. How do i make sure that the dialog pops up only when the user

[android-developers] Urgent Position For ::: Blackberry Mobile Developer | Kirkland, WA

2010-07-30 Thread Navneet Chalana
Partners, Hope you are doing great, I am currently looking for Blackberry Mobile Developer for an esteemed direct client in WA and I wanted to contact you to see, if you have someone available and comfortable with below mentioned role, if so, please send me a copy of resume and the best way

[android-developers] Contract Opportunity::::: iPhone Quality Assurance Tester | Kirkland, WA

2010-07-30 Thread Navneet Chalana
Partners, Hope you are doing great, I am currently looking for iPhone Quality Assurance Tester for an esteemed direct client in WA and I wanted to contact you to see, if you have someone available and comfortable with below mentioned role, if so, please send me a copy of resume and the best

[android-developers] Inner ListView not respecting layout gravity or width

2010-07-30 Thread William Ferguson
I have a ListView that contains several elements, one of which is another ListView. All elements of the outer ListView except for the inner ListView respect their layout params. The inner ListView respects margin left/right, but toally ignores layout_gravity and layout_width. Ie consumes the

Re: [android-developers] Inner ListView not respecting layout gravity or width

2010-07-30 Thread Mark Murphy
On Fri, Jul 30, 2010 at 8:36 PM, William Ferguson william.ferguson...@gmail.com wrote: I have a ListView that contains several elements, one of which is another ListView. I'll be stunned if that works. Why nest ListViews? If your issue is that you have multiple sources of data, stitch them

[android-developers] Re: LVL security, are you sure that is secure, I'm a doubt in...?

2010-07-30 Thread Eric F
Most people aren't going to share their google account with someone else just so they can get a $3 app for free. Who is realistically going to give out access to: A) Their email C) Their credit card or payment method for Android market. You lend your account to someone for a $3 app and suddenly

Re: [android-developers] Re: LVL security, are you sure that is secure, I'm a doubt in...?

2010-07-30 Thread Dianne Hackborn
On Fri, Jul 30, 2010 at 5:59 PM, Eric F ericfrie...@gmail.com wrote: an unprotected app. There's no stopping that. The point is with LVL that normal people (probably 95%+) of the market don't have a rooted phone. Actually it doesn't matter whether they have a rooted phone. This is one of

Re: [android-developers] How to identify which client called into a Remote/AIDL service?

2010-07-30 Thread Dianne Hackborn
Binder.getCallingUid() returns the uid of the calling who initiated the current incoming call. However more typically you'll use one of the flavors of these to just do a permission check on the incoming call:

Re: [android-developers] How to identify which client called into a Remote/AIDL service?

2010-07-30 Thread Dianne Hackborn
Oh yeah and actually this is the one most people use: http://developer.android.com/reference/android/content/Context.html#enforceCallingPermission(java.lang.String, java.lang.String) On Fri, Jul 30, 2010 at 7:07 PM, Dianne Hackborn hack...@android.comwrote: Binder.getCallingUid() returns the

[android-developers] Re: AlertDialog changes sequence of events

2010-07-30 Thread john brown
AlertDialog is not modal - the call to show() returns immediately, leaving the dialog on the screen and button callbacks active. Does this mean that: 1) It is not possible for the AlertDialog to be made modal . 2) My implementation of the AlertDialog is not modal. Solve problem with

[android-developers] Re: My Eclipse 3.5 always lag and have to force close - why?

2010-07-30 Thread Mystique
I see. I thought I'm the only one... Yes, I look at the log and so many memory leak error... On Jul 30, 8:55 pm, Kaj Bjurman kaj.bjur...@gmail.com wrote: It has unfortunately been like that for ages (if you are modifying e.g. layout files). It doesn't happen if you only write code. It looks

[android-developers] Re: Why can't I put a ProgressDialog in onClick() other than onCreate();

2010-07-30 Thread Mystique
Thanks TrekKing, I'm also doing more reading to do it correctly. I think it is because the UI don't got refresh immediately unless I use threads or AsyncTask. I will try doing AsyncTask method and feedback if I need help. On Jul 30, 10:43 pm, TreKing treking...@gmail.com wrote: On Fri, Jul 30,

[android-developers] Re: Correct way to kill the application

2010-07-30 Thread Mystique
One question, not sure whether it is related. Since Android manage task and application automatically and terminate if necessary why do we need application like Advance Task Killer? Isn't it redundant? I understand why Android was design this way, to help speed up application and extra memory if

[android-developers] Re: Android market link in SMS

2010-07-30 Thread Warren
No answers to his question? I also tried doing this with no success on a Droid. I tried market://details?id=com.my.package and a href='market://details?id=com.my.package'link/a Links with http:// need no special markup, they just work. For instance, including http://www.google.com in a text

Re: [android-developers] Re: Using barcode scanner as input method?

2010-07-30 Thread for android
Don't you guys think that BarCode reading should be part of a the SDK itself,instead of everyone creating their own kind of implementations???Thoughts? On Mon, Jun 28, 2010 at 10:13 AM, Brad Gies rbg...@gmail.com wrote: What's the problem you are having? The Zxing barcode scanner returns the

[android-developers] Re: Android market link in SMS

2010-07-30 Thread Warren
I've got a partial solution to this. If you use http://market.android.com/search?q=pname:com.my.package the url works, but it does not automatically open with the market since other applications, like the browser are also registered to handle http:// intents. Instead, the user has to know to

[android-developers] Anyone have reports of their app not drawing correctly on a Droid X?

2010-07-30 Thread dm1973
I have tested on the simulator motorola provides and on various hardware (Droid, Nexus One, G1,wildfire) but can't reproduce anything. Wondering if anyone else has had any issues. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Anyone have reports of their app not drawing correctly on a Droid X?

2010-07-30 Thread Maps.Huge.Info (Maps API Guru)
I had several reports of my main app malfunctioning on the Droid X, it was supposed to be a problem with panning. I managed to get my hands on a unit to test the issue and it turned out to be nothing. From my tests, the Droid X responds exactly like the Droid, same screen size (pixel dimensions

[android-developers] User thread to update UI but still come after, can anyone look at this code and help me?

2010-07-30 Thread Mystique
Hi, I'm trying to learn AsyncTask and Thread but Thread first... I am trying to display a Dialog before DoSomeTask() but seems like the Dialog always come after DoSomeTask(). Did I do something wrong here? Thanks. --- code--- @Override public void onClick(View v) { // TODO

[android-developers] Re: Inner ListView not respecting layout gravity or width

2010-07-30 Thread William Ferguson
Sorry Mark, not sure what you mean. I was using a nested ListView because for each instanve of the outer list item there will be one or more instances of the inner. In the example I am using the outer is Contact, and the inner is RawContact. When you say stitch them together at the adapter

Re: [android-developers] User thread to update UI but still come after, can anyone look at this code and help me?

2010-07-30 Thread paulb
Hello Mystique, When this code starts the thread, it then goes straight back to execute DoSomeTask() while the thread is running, and so most of the time the dialog will be shown after DoSomeTask. Maybe you meant to do something like this: ProgressDialog dialog; final Runnable

Re: [android-developers] User thread to update UI but still come after, can anyone look at this code and help me?

2010-07-30 Thread paulb
Actually, I meant to write runInUIThread instead of closeLoadingDialog in the handler.post statement On Sat, Jul 31, 2010 at 3:16 PM, paulb pbizan...@gmail.com wrote: Hello Mystique, When this code starts the thread, it then goes straight back to execute DoSomeTask() while the thread is

[android-developers] Need help in compile android source under ubuntu 10.04

2010-07-30 Thread hap 497
Hi, I have following android web site and install the necessary libraries for building android under ubuntu. But i am getting the following linker error. Can you please tell me how can I resolve that? host SharedLib: libneo_cs (out/host/linux-x86/obj/lib/libneo_cs.so) host C: libneo_cgi =

<    1   2