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

2010-07-31 Thread Brad Gies
Why not just use the AlertDialog the way it is meant to be used? Even though it's not modal, it looks modal the way it works anyway, and you just need code a little differently and put all logic that happens after the Dialog closes into the ButtonListeners. What do you need to do that you thin

[android-developers] Adding custom column to contacts

2010-07-31 Thread WindowsNT
I am trying to add a custom data field to a contact, its UID is known. I have not yet understood what exactly I should do. I saw and tried other code , but to no success. public static final String FORMALITY = "vnd.android.cursor.item/ some_text"; public void foo(ContentResolver cr) {

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

2010-07-31 Thread Zsolt Vasvari
I typically do something like this, this is largely pseudo-code: enum SaveOperationState { CONFIRM, PERFORM, CANCEL } save(SaveOperationState state) { switch (state) { case CONFIRM: confirmDialog.show() { okButtonListenerMethod { save(PERFORM); }

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

2010-07-31 Thread Zsolt Vasvari
JOIN the header and detail tables in single query. On Jul 31, 1:11 pm, William Ferguson wrote: > 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 t

Re: [android-developers] About InputMethodService.switchInputMethod

2010-07-31 Thread XC He
I use this API in my IME service. And I applied the solution from Issue 4604 (http://code.google.com/p/android/issues/detail?id=4604). It could solve this problem. 2010/7/31 Dianne Hackborn : > Is the other input method actually enabled by the user? > Also you aren't clear where you are using thi

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

2010-07-31 Thread Happy C.
Hi Dianne, I have the same issue with the froyo. I use the start service UI as the following code. //CurrentActivity.java (extend from ListActivity) Intent intent_start_service=new Intent(CurrentActivity.this,MyRunningService.class); intent_start_service.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); s

[android-developers] how to make a external jar for android applications

2010-07-31 Thread cindy
I have a android project. I want other applications to use my application. AT the same time I don't want to open my source code. So shared library doesn't work for me. I export my project to a jar file including res directory. When I include my jar file to a project, there is no problem to compile

[android-developers] Missed call question

2010-07-31 Thread steven
I want a Widget to update the number of missed calls,so I use ContentObserve to observer the CallLog.Calls,when there is a missed call,I can update the Widget in the CotentObserver.onChange(),but I find event if I view the missed calls in the dialer application ,the missed calls still are the misse

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

2010-07-31 Thread Pent
It was the obfuscation messing up this line in LicenceChecker: new Intent(ILicensingService.class.getName()), I changed this to new Intent(ILicensingService.Stub.getDescriptor()), and added a correspinding static function in ILicensingService. Since the docs recommend obfuscation, I think the

[android-developers] How to create a chooser to pick an image with any application?

2010-07-31 Thread Michał Karnicki
Hi, I tried to createChooser the following way: Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.addCategory(Intent.CATEGORY_OPENABLE); intent.setType("image/*"); Intent chooser = Intent.createChooser(intent, "Pick an image"); startActivityForResult(chooser, 1); as well as that way:

[android-developers] URLConnection TimeOut

2010-07-31 Thread tarek attia
Hi all, I have a problem in my code ,runs on the emulator very well,but on my T-mobile G1 doesn't time out .Code snippet is below :- URL myURL = new URL(uriBuilder.toString()); URLConnection myConnection = myURL.openConnection(); myConnection.setConnectTimeout(4); so when no internet

[android-developers] Re: URLConnection TimeOut

2010-07-31 Thread tarek attia
I've found the problem but I don't know the Solution . URLConnection myConnection = myURL.openConnection(); when no internet it doesn't return from this method at all !! and dunno what should I do for that On Sat, Jul 31, 2010 at 2:29 PM, tarek attia wrote: > Hi all, > > I have

Re: [android-developers] URLConnection TimeOut

2010-07-31 Thread Brad Gies
Sure... check for the internet connection before you bother building the URL and trying to connect :). public boolean IsConnectedToNetwork(Context context) { ConnectivityManager conManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); N

[android-developers] Re: Upload large files on the web server on android

2010-07-31 Thread mudit
I am using "javax.microedition.io.HttpConnection" class for making a connection and then setting the request method as 'Post'. On Jul 30, 9:44 pm, Alex Xin wrote: > Do you use HTTP POST to upload your file to android phone? > > On Fri, Jul 30, 2010 at 7:27 PM, mudit wrote: > > Hi > > > I want t

[android-developers] Library development - Development requirements

2010-07-31 Thread { Devdroid }
Hi, Can anyone explaing what Table 1 ("Minimum versions of SDK tools and plaforms on which you can develop library projects.")'s columns really mean. Table is here: http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject I.e. component: Android 1.5 platform, minimum versio

[android-developers] Re: What is the URI for the Contacts content provider on Samsung phones? ActivityNotFoundException:

2010-07-31 Thread pistol
You are right - I needn't startActivityForResult() - just startActivity(). I still would get the ActivityNotFiundException though. ;-( I just want the Contacts 'view' opened up so the user can look at them. Not to pick or return (a specific) one. I works fine on all my phones and emulators. Pet

[android-developers] Synchronize animations on multiple view

2010-07-31 Thread Sandy
Is it possible to animate multiple views at the same time i.e. with each child view doing some increment of tween animation? Basically I want to apply some transformations to child views but not sequentially, they should all do the transition frame by frame. Any suggestions on how to achieve this

[android-developers] Re: Library development - Development requirements

2010-07-31 Thread { Devdroid }
> Can anyone explaing what Table 1 ("Minimum versions of SDK tools and > plaforms on > which you can develop library projects.")'s columns really mean. Table is > here: > > http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject > I.e. > component: Android 1.5 platform, minim

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

2010-07-31 Thread greg
I haven't tried it, but perhaps another listener to detect the x coordinate of the click? (The more complicated y coordinate could be ignored if the image fills the row height.) On Jul 30, 8:09 pm, Hari wrote: > Hi Greg, > I gave a thought to that approach as well. I want the image selection >

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

2010-07-31 Thread nation-x
There are some good tutorials here as well. http://www.bogotobogo.com/Android/android15Rotation.html Shawn On Jul 30, 4:42 pm, Anil wrote: > http://developer.android.com/resources/samples/ApiDemos/src/com/examp... > > On Jul 30, 3:00 pm, Anil wrote: > > > It does not override onSaveInstanceSta

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

2010-07-31 Thread dm1973
I have had about a dozen reports (and zero on any other phone) so I imagine something screwy is going on but I can't image what. Several people have said it only happened after the last OS upgrade On Jul 31, 12:35 am, "Maps.Huge.Info (Maps API Guru)" wrote: > I had several reports of my main app

[android-developers] how to get which listitem is focused

2010-07-31 Thread cindy
I have a listActivity which I use ArrayAdapter insider it. When user scrolls the scroll ball, one listitem would be focused. How canI know itemlist is highlighted? It looks simple to me at first, however, it takes several days and still can't find answer. Thanks! April -- You received this me

[android-developers] Library problems

2010-07-31 Thread { Devdroid }
Hi, I tried to build test library and test app howver Eclipse complains on each reference I made to library classes. This is what I did: 1. created Test Library Android project, marked it as "Library" (package name "test.library.lib") 2. created Test App project (package "test.library.app") and s

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

2010-07-31 Thread Maps.Huge.Info (Maps API Guru)
The Droid X hasn't had an OS upgrade yet, so perhaps your users are either confused (likely) or are reporting the wrong device to you. -John Coryat -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to androi

[android-developers] Can we determine Connection type information from the OS?

2010-07-31 Thread zohar lerman
I need to find is it 3G or WIFI connection - -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr

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

2010-07-31 Thread Mogimo
Thank you for your information!! I will keep watching it out. By the way, if I changed LocalBinder to a static inner class, does it make sense ? That means to return back the same binder for all connections? On 7月31日, 午前5:24, brucko wrote: > This appears to be a bug > > http://code.google.com/p

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

2010-07-31 Thread TreKing
On Fri, Jul 30, 2010 at 9:14 PM, john brown wrote: > Does this mean that: > 1) It is not possible for the AlertDialog to be made "modal" . > Yes - it's not possible. > 2) My implementation of the AlertDialog is not modal. Solve problem > with AlertDialog.IsModal = true; (or something like that

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

2010-07-31 Thread sblantipodi
ok, thanks for the reply. On Jul 31, 4:02 am, Dianne Hackborn wrote: > On Fri, Jul 30, 2010 at 5:59 PM, Eric F 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'

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

2010-07-31 Thread JoksanCPEN
Inflate a Dialog with the ListView inside. On Jul 31, 4:02 am, Zsolt Vasvari wrote: > JOIN the header and detail tables in single query. > > On Jul 31, 1:11 pm, William Ferguson > wrote: > > > > > Sorry Mark, not sure what you mean. > > > I was using a nested ListView because for each instanve o

[android-developers] LVL, ServerManagedPolicy...

2010-07-31 Thread sblantipodi
Hi, I'm using the ServerManagedPolicy implementation from the LVL code sample (MainActivity.class) but I haven't understood how it manage cache. The first time application start it needs internet to validate the license, if it is validated, how much time should pass before a second check is needed

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

2010-07-31 Thread sblantipodi
Wow, thanks this maked me goes forward to next error :) thanks... Target "package-resources" does not exist in the project what does it means, how can I specify package-resources? Thanks. On Jul 30, 11:34 pm, Miguel Morales wrote: > Make sure you have the included files such as: > > > Which sh

Re: [android-developers] Re: Upload large files on the web server on android

2010-07-31 Thread Alex Xin
See this project, that may help you: http://commons.apache.org/fileupload/ On Sat, Jul 31, 2010 at 8:12 PM, mudit wrote: > I am using "javax.microedition.io.HttpConnection" class for making a > connection and then setting the request method as 'Post'. >

[android-developers] Re: Adding custom column to contacts

2010-07-31 Thread WindowsNT
Noone yet knows ? I wonder who had the idea to use sql stuff in contacts with URIs... -- 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, s

[android-developers] Android preprocessor, //#ifdef...

2010-07-31 Thread sblantipodi
Hi all, I noticed that there is no way to use preprocessor in android with netbeans using the //#ifdef syntax, is there some sort of preprocessing in eclipse using android? I haven't understood if this is a lack of netbeans or it is a lack of android. -- You received this message because you are

[android-developers] LVL NOT_MARKET_MANAGED

2010-07-31 Thread Pent
It seems that this error code is returned if the versions of the app on the device and at the server differ (amongst other times). What if the user buys on the market, but doesn't get a chance to validate before the next version comes out ? With a popular app, this will probably happen every updat

[android-developers] Start an activity without creating a new one.

2010-07-31 Thread Tim
In a broadcast receiver I want to do the following: 1. See if MyActivity is alive somewhere. 2. If it is, bring it to the foreground. 3. Otherwise, start a new MyActivity. Is this possible? -- You received this message because you are subscribed to the Google Groups "Android Developers" group.

[android-developers] LVL handler on a dead thread

2010-07-31 Thread Pent
Continuing my LVL series :) If I launch my app, the license check starts automatically, then I exit the app immediately (which calls LicenceChecker.onDestroy()) I get in the log a few seconds afterward the log warnings below. I suspect they're harmless but pretty untidy, any way to avoid it ? Th

Re: [android-developers] Start an activity without creating a new one.

2010-07-31 Thread Adriano B. Godinho
Hi, You can declare your activity with singleTask launch mode. More details: http://developer.android.com/guide/topics/fundamentals.html#lmodes On Sat, Jul 31, 2010 at 1:11 PM, Tim wrote: > In a broadcast receiver I want to do the following: > > 1. See if MyActivity is alive somewhere. > 2.

[android-developers] Re: Hide context menu

2010-07-31 Thread André
Thanks for a quick answer! Sorry for slow reply! Nice word, I'll try it! On Jul 26, 3:25 pm, TreKing wrote: > On Mon, Jul 26, 2010 at 8:21 AM, André wrote: > > Does anyone have an idea how to solve this problem? > > One word: AsyncTask. > > --

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

2010-07-31 Thread gcstang
If it wasn't for a task killer my phone wouldn't last a day mine as well be tethered to the wall. On Jul 31, 1:31 am, Dianne Hackborn wrote: > You don't need task killers.  Some people like them, and who I am I to argue > with what people like? ;) > > > > On Fri, Jul 30, 2010 at 8:00 PM, Myst

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

2010-07-31 Thread a
While I agree with most of the replies, there is one issue that makes task killers useful. Some apps run background tasks or they don't properly terminate threads when they should. These apps will drain ur battery and for this reason alone I use them. gcstang wrote: >If it wasn't for a task k

[android-developers] Record audio problem on the LG Ally

2010-07-31 Thread skooter500
Hi guys I have a music recognition app (Tunepal) that records 12 seconds of audio @ 22KHz (in one second chunks). After each second, the audio is copied from a byte array into a float array and eventually I perform some DSP on the float array. My app is available on the Android Marketplace and is

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

2010-07-31 Thread skooter500
This sounds great, but is completely useless to me as Im in Ireland and no paid apps available to my potential users, so I've gone ahead and made my own user registration and payment system based around PayPal. A complete waste of my time, but what can ya do? >From Reto Meier: "Unfortunately I ca

Re: [android-developers] Android preprocessor, //#ifdef...

2010-07-31 Thread TreKing
On Sat, Jul 31, 2010 at 10:25 AM, sblantipodi wrote: > is there some sort of preprocessing in eclipse using android? > No. > I haven't understood if this is a lack of netbeans or it is a lack of > android. > It's a lack of Java. Preprocessing, specifically the #ifndef notation you mention, is

[android-developers] Re: Signup for C2DM ?

2010-07-31 Thread Danny Shmueli
I got my C2DM account! thank you google On Jul 23, 7:14 am, Jamie wrote: > I'm kinda of glad that I"m not the only one in this boat.  But still > sad that the app that I am writing depends on C2DM for it's core > function and I can't go any further without being on this whitelist. > > I'd like to

[android-developers] ListView setSelection fails randomly

2010-07-31 Thread sasq
Im using a setSelection and setSelectionFromTop to scroll a listview to a certain position but it randomly fails to do anything?! I not calling from another thread. Can it be because I just before called notifyDataSetChanged() ? In that case how do I know that that event has been handled and it is

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

2010-07-31 Thread schwiz
viewswitcher is probably better for what you are wanting to do http://developer.android.com/reference/android/widget/ViewSwitcher.html you can even assign animations for the views as they come and go if you want. On Jul 30, 3:51 pm, Victoria Busse wrote: > Hi there, > > I am trying to populate a

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

2010-07-31 Thread Connick
For anyone looking to dynamically add a header to a sorted cursor in a list, Kostya's suggestion worked brilliantly. In getView override check the column value you're sorting on of the previous cursor position to determine if you need to use a regular row or a view which contains both a header *and

[android-developers] How to cite/reference free images

2010-07-31 Thread AUandroid
Hi All, I am about to release my first app on the market for free. How should I reference or give citations to images I have used in my app. I have used two images which are free images available at http://commons.wikimedia.org/wiki/Main_Page thanks, -vk -- You received this message because you

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

2010-07-31 Thread Victoria Busse
That sounds great, but I just read that a ViewSwitcher only works with two child views and I have at least 4 :(( On Sat, Jul 31, 2010 at 8:20 PM, schwiz wrote: > viewswitcher is probably better for what you are wanting to do > http://developer.android.com/reference/android/widget/ViewSwitcher.ht

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

2010-07-31 Thread Kostya Vasilyev
(( blush )) -- Kostya Vasilyev -- http://kmansoft.wordpress.com 31.07.2010 23:34 пользователь "Connick" написал: For anyone looking to dynamically add a header to a sorted cursor in a list, Kostya's suggestion worked brilliantly. In getView override check the column value you're sorting on of t

[android-developers] Re: Android preprocessor, //#ifdef...

2010-07-31 Thread sblantipodi
ah ah... it's incredible... I develop on Windows Mobile, JavaME, Bada, Blackberry, Symbian. I can use preprocessing on every platform... How can you develop on a mobile without preprocessing? Sure android is really good for fart app, but what else? I don't want to troll but I really can't understa

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-07-31 Thread Kostya Vasilyev
The absence of preprocessor has to do with Java, not Android. And tlhere is a lot of Java software out there... -- Kostya Vasilyev -- http://kmansoft.wordpress.com 01.08.2010 0:00 пользователь "sblantipodi" написал: ah ah... it's incredible... I develop on Windows Mobile, JavaME, Bada, Blackbe

[android-developers] Re: Android preprocessor, //#ifdef...

2010-07-31 Thread sblantipodi
Ok but other java software/platform supports preprocessor on both Eclipse/Netbeans/IntelliJ/JDE ecc. ecc... On Jul 31, 10:15 pm, Kostya Vasilyev wrote: > The absence of preprocessor has to do with Java, not Android. > > And tlhere is a lot of Java software out there... > > -- > Kostya Vasilyev --

[android-developers] Missing network functionality?

2010-07-31 Thread RickB
Can any version of Android support simultaneous connections on both a mobile network (e.g. 3G) and a WiFi network? Here's the requirement: I want to connect to a local Wifi network of sensors/devices that is not connected to the Internet, and be able to transmit data to an Internet-connected web

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-07-31 Thread Frank Weiss
Here is a long thread on the subject: http://groups.google.com/group/android-developers/browse_thread/thread/1c9078176b172e1a/235bae6530ee7e74?show_docid=235bae6530ee7e74 There are Java projects that use various preprocessors. The lack of a standard one is a problem. AFAIK Sun's WORA ideology ran

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

2010-07-31 Thread Adal
I think the user is not always the problem and if it is... we've got a problem because we can hardly make people change their behave, what we can do is build better apps that don't take resources they don't need. That's a developers fault and that's the one developers should focus. If we keep thin

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-07-31 Thread TreKing
On Sat, Jul 31, 2010 at 3:00 PM, sblantipodi wrote: > How can you develop on a mobile without preprocessing? > Quite easily, actually. > Sure android is really good for fart app, but what else? > Is this is a serious question? Have you browsed through the Android Market (as painful as that is)

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

2010-07-31 Thread keyeslabs
Speaking as someone who has traveled this road before with my own implementation of basically the same approach, obfuscation will be critical. With AAL, it took about three days for someone to crack the app. The process looks something like this: decompile the apk using a freely available open s

[android-developers] Re: LVL NOT_MARKET_MANAGED

2010-07-31 Thread Brian
I've done some testing on this, myself, and it seems that it only returns the NOT_MARKET_MANAGED error for an app in the market if the version code (the integer form of the version number in the manifest) in the copy making the check is higher than the one currently in the market. If the version c

[android-developers] Re: Android preprocessor, //#ifdef...

2010-07-31 Thread sblantipodi
I'm sorry for my rude and really not too much kind speaking, but I can't belive that android doesn't support preprocessor. I can't think on mobile programming without preprocessor, too many different configurations, think only to LVL and android market and preprocessor could be useful... Ok we can

[android-developers] Re: Android preprocessor, //#ifdef...

2010-07-31 Thread Streets Of Boston
I'm glad to not have to use pre-processors and hash-defines. I hated them when i worked in C (and C++) (they tended to get over- used, made code unreadable and difficult to debug) and for the last decade of Java programming i really never ever needed them. "How can you develop on a mobile without

[android-developers] Re: LVL, ServerManagedPolicy...

2010-07-31 Thread sblantipodi
How can we use ServerManagedPolicy in the emulator and fastly switch from licensed to unlicensed to something else? The first time I got the licensed message, than I'll continue to get the licensed message also if I set UNLICENSED from my developer console after I deleted and reinstalled the app o

[android-developers] Re: How to cite/reference free images

2010-07-31 Thread Streets Of Boston
One possibility is to have an 'About' screen, reachable from your menu or from your settings/preferences activity. Put the references/ citations in the About screen. On Jul 31, 3:39 pm, AUandroid wrote: > Hi All, > > I am about to release my first app on the market for free. How should > I refere

[android-developers] Using a new generated Keystone for existing app. Any possible outcomes?

2010-07-31 Thread Moto
Hi, I currently have my application signed using a keystone key I generated. Could I use a new keystone to sign my application for the next update? Any issues that could arise if I use a different keystone? Thanks! -Moto -- You received this message because you are subscribed to the Google Gr

[android-developers] Re: Using a new generated Keystone for existing app. Any possible outcomes?

2010-07-31 Thread Moto
keystone = keystore :P On Jul 31, 6:24 pm, Moto wrote: > Hi, > > I currently have my application signed using a keystone key I > generated.  Could I use a new keystone to sign my application for the > next update? > > Any issues that could arise if I use a different keystone? > > Thanks! > -Moto

[android-developers] Re: Text blinking effect TextView

2010-07-31 Thread Doug
Try posting a series of delayed messages or runnables to a handler that alter the TextView in sequence as you need. On Jul 29, 9:21 am, Huynh Ngoc Vu Nguyen wrote: > Please let me know! How to make text blinking effect in TextView? > I am using Android SDK 2.2. -- You received this message beca

[android-developers] Re: Using a new generated Keystone for existing app. Any possible outcomes?

2010-07-31 Thread Moto
Oops never mind :( You can't do that... http://developer.android.com/guide/publishing/app-signing.html "Application upgrade – As you release updates to your application, you will want to continue to sign the updates with the same certificate or set of certificates, if you want users to upgrade s

[android-developers] Re: How to cite/reference free images

2010-07-31 Thread AUandroid
thanks for the tips. As I told you its my first time publishing a app. Can anyone please have a look at this image and let me know what I must write in my about page.Is it ok? if I just provide this link in my about section http://commons.wikimedia.org/wiki/File:Nuvola_apps_important.svg or I mus

[android-developers] How to solve this problem: Close Force Error when trying to populate viewStub

2010-07-31 Thread kivy
Hi there, I just ran into a problem, while trying to populate a ViewStub by tapping an ImageButton within a SlidingDrawer (the ViewStub should also be part of the drawer), but all I get is a Force Close Error due to a Null Pointer Exception. As I am using ViewStubs for the first time I am not sure

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

2010-07-31 Thread Indicator Veritatis
Kostya- Most of what you say is true, but beside the point. Task killers per se do not "interfere with the platform's functionality". Now yes, some users do have the strong desire you allude to, but that is far from proof that the desire for Task Killers IS an example of this effect. I do not bel

[android-developers] LVL returns always LICENSED...

2010-07-31 Thread sblantipodi
Hi, I have built in the Sample code from LVL and putted it into my main activity. I haven't understood why it always returns LICENSED also if I setted UNlicensed from my developer console. this is the adb logcat output... I/LicenseChecker( 496): Binding to licensing service. I/LicenseChecker(

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

2010-07-31 Thread Indicator Veritatis
Eric- You are basing your entire post on the fallacious assumption that it is only "non-technical people" who download the task killers. I am very technical, and I downloaded one. Nor am I alone. Nor is it that "people ar very bad at shifting". Rather, the recent trend in the mobile OS industry (

[android-developers] MobClix revenue drop

2010-07-31 Thread Loki117
Anyone else on here use Mobclix for Ad serving? I have seen my revenue drop from $15 to $9 as in they have removed $6 of revenue! Also they are not giving impression counts for Ads which I know are being displayed! Is anyone else seeing these issues with Mobclix? -- You received this message beca

[android-developers] Re: Start an activity without creating a new one.

2010-07-31 Thread Tim
On Jul 31, 5:26 pm, "Adriano B. Godinho" wrote: > Hi, > > You can declare your activity with singleTask launch mode. > >                     android:label="@string/app_name" >                   android:launchMode="singleTask"/> > > More > details:http://developer.android.com/guide/topics/fundam

Re: [android-developers] Re: Android preprocessor, //#ifdef...

2010-07-31 Thread TreKing
On Sat, Jul 31, 2010 at 5:09 PM, sblantipodi wrote: > I'm sorry for my rude and really not too much kind speaking, > but I can't belive that android doesn't support preprocessor. > Why so surprised? The main Android SDK is Java-based, which does not have preprocessor. Whatever you've used with ot

[android-developers] Re: use-library causes java.lang.ClassCastException when both apks loaded in one process

2010-07-31 Thread James Wang
Hi Dianne, thanks for your answer. Can you tell us how to avoid this error if we have to put A and B in the same process? -- 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.c

[android-developers] onCreate, onStop..... super.onCreate, super.onStop... called before code or after?

2010-07-31 Thread Moto
This might be a simple question but I'm seeing the super call at the end of the overwritten function and also at the start of the function. What is recommended? any differences on this? I feel very beginner with this question... :P i.e. @Override protected void onCreate)

[android-developers] Re: finish() at onStop causes ANR

2010-07-31 Thread James Wang
@TreKing Thanks for your replies. We do have some reasons to call finish because Android did not finish one when another is shown before it. >Probably, but with your code, not Android. Document does not say finish is not allowed to be called at onStop. How to explain there is no problem with callin

[android-developers] Design similar to the home screen on Twitter and Facebook

2010-07-31 Thread Chris Stewart
An application I'm working on has a use for a home screen like the ones in the Twitter and Facebook Android clients. Something like a 2 by 3 grid view that adjusts when viewed in either orientation. I'm nothing short of awful when it comes to design and I've yet to work out a design in my layout

Re: [android-developers] onCreate, onStop..... super.onCreate, super.onStop... called before code or after?

2010-07-31 Thread Satya Komatineni
Probably there are exceptions to every rule. In this particular instance I would probably have the base class complete its work before I do the work of the derived. May be a poor parallel, but if I am constructing a multi-story house, I would want to finish the base floors and move on to the upper

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

2010-07-31 Thread Mystique
Yes, but Android will terminate this automatically isn't it? On Aug 1, 1:38 am, a wrote: > While I agree with most of the replies, there is one issue that makes task > killers useful. Some apps run background tasks or they don't properly > terminate threads when they should. These apps will dra

[android-developers] Re: Android preprocessor, //#ifdef...

2010-07-31 Thread DanH
On some development systems a C preprocessor has been hijacked to preprocess Java code. It's not standard, though. You can use final constants in Java to select pieces of code. Eg, "if (MY_CONSTANT) { ... }" where MY_CONSTANT is a "final" boolean value. The Java compiler is defined to compile th

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

2010-07-31 Thread Indicator Veritatis
More explicitly, recall that the permissions set in the manifest are displayed to the user at -install- time. So that is when the permissions must be set, not at run time. That in turn is why we should not expect the ability to set it programatically. On Jul 30, 6:22 am, Carlos Silva wrote: > On

[android-developers] Throttling change notifications

2010-07-31 Thread Connick
Is there a way to throttle change notifications emanating from a content provider? Was thinking some sort of timer solution but that could get messy. e.g. if the last notification isn't made then data on the UI will be inaccurate. Thanks, Stace -- You received this message because you are subscr

[android-developers] Re: sun/security/x509/X500Name

2010-07-31 Thread iluvmyoldmerc
Same issue here ubuntu 9.1 sun JDK 1.6 android-sdk_r06-linux_86 eclipse-java-helios-linux 3.6 Errors occurred during the build. Errors running builder 'Android Package Builder' on project 'HelloAndroid'. sun.security.x509.X500Name I had a similar issue on XP Windows XP sun JDK 1.6 android-sdk_r06-

[android-developers] shared library

2010-07-31 Thread sowmya
Hi , I have a static c library which i want to port in android .i have c porting files . i have written jni interface and build shared library combining all above (c porting files,static library ,jni -cpp) Now i have to write ui for this . my doubt is How to build package .can i develop a separate

[android-developers] Re: WAnt to break an image into pieces...........

2010-07-31 Thread HIRAK
Dividing into pieces of same size is easy. You have to write your own logic, to divide it into pieces of different size. But anyways, you need to read about the Bitmap api and also BitmapDrawable. On Jun 1, 11:32 am, TreKing wrote: > On Tue, Jun 1, 2010 at 1:16 PM, Dixit Wadhwani wrote: > > > I

[android-developers] Android OS localization

2010-07-31 Thread hmdmph
Hi , I want to localize android os with my local (si_LK) Sri Lanka , How cant i work as contributer for localization.i have downloaded os source and recompile with ubuntu. I want to know how to do this. -- You received this message because you are subscribed to the Google Groups "Android Develope

Re: [android-developers] Abridged summary of android-developers@googlegroups.com - 100 Messages in 71 Topics

2010-07-31 Thread Hasn AlTaiar
Hi everyone, I am developing an application that visualize so many POI on Google map on Android 1.6 I am interested in finding the CPU and memory usage of the application with different optimization, so my question is *is it possible to access the memory and CPU usage programmatically and write

[android-developers] Re: 2.2 Google Api emulator not booting up

2010-07-31 Thread Folly
I have this problem too. When I create new device it loading going normal, but when I close emulator and start again i have "W/MountService( 68): Waiting too long for mReady!". -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to t

[android-developers] Disabling Idle mode

2010-07-31 Thread Yannick Plenevaux
Hello everybody, I am currently searching to set out an issue I encounter. I am developing an Application on Android which have to download a lot of data and then be unused for a while. During the download, the device is locked and switch to a kind of idle mode that close the wifi connection. I d

[android-developers] BroadcastReceiver::onReceive Question

2010-07-31 Thread Johnny
Hi All, I am trying to develop a feature for my Android phone. Basically, I'd like to export some files whenever a sdcard is inserted into the phone. So, I had a broadcast receiver registered to the system. I override the onReceive (Context, Intent) function such that I can create a file in the S

[android-developers] Jigsaw puzzle image source

2010-07-31 Thread HIRAK
I guys, I am creating a basic jigsaw puzzle for android. The code is almost ready but I am facing problem in finding images for the puzzle. The User should be able to get new image every time they click "Next". Upon selecting an image, the application will create puzzle for the selected image. F

[android-developers] Understand the filesystem contents

2010-07-31 Thread John Manko
Is there any documentation on the filesystem used for Android? I'm talking about an explanation of the contents of /dev or /etc, and not YAFFS or whatever. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email t

[android-developers] android openGL issue

2010-07-31 Thread sldt
If you do not get through inheritance surfaceView to handle OpenGL Direct Rendering but through inheritance View image how OpenGL has to know, -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-deve

[android-developers] Problem

2010-07-31 Thread prateek tuli
Hi, I want to create an application in android which at runtime calls an xml file from some path of the system.And make that contents of the xml file run in the same application.Could i get a feasible code because at runtime the bytecode of the activity is already created.how do i compile and run t

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

2010-07-31 Thread Krischik Martin
Hi, > As for importing java.lang.String, those 2 files have been created > automatically by aidl (see the files in aidl/) and the tool doesn't > care about unneeded imports and automatically put import statements > for all the used classes. Heretic question: Import is optional so why import at al

[android-developers] Programmatically install free applications in android market

2010-07-31 Thread tak
Hi there, I'm sure that you all have already known AppBrain's Fast Web Installer which is able to programmatically install free applications in android market to the device. How could it be possible ? Anyone knows how ? or hints ? Thanks. -tak -- You received this message because you are sub

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

2010-07-31 Thread Quintin Willison
Just noticed this. Excellent news! Thanks. Now to find some time to explore it... :) -- 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, se

  1   2   >