[android-developers] Witch Laptop to buy

2016-06-22 Thread koder Blake
Get fastest, most powerful you can because java code is sooo slow. My actual computer is a 1.5 ghz dual core with 4 gb of ram and it won't run an android emulator without slowing down everything and it often crashes. Also check all the specs before buying. There are laptop very impaired like 6gb

[android-developers] Hi i am satish, i want code for videoviews in recycler , list of videos are playing in one recycler , how to do this one ,plz send me the code

2016-06-22 Thread koder Blake
Nothing worth it comes that way in this world. Google it first. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups

Re: [android-developers] Witch Laptop to buy

2016-06-22 Thread koder Blake
Wow trev! An old machine? I am still dreaming of such a setup. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.

[android-developers] Android studio bundle doesn't seem to contain SDK

2016-06-21 Thread koder Blake
Hi. I recently downloaded Android studio bundle. After installing it, it says that it should download the sdk ( which is supposed to be included ). I launched it and it took hours ( a whole night ) without completing the download, and this several times. My connection is pretty fast, ( it took a

Re: [android-developers] Re: Sync Adapter - Syncs frequently

2014-07-24 Thread G. Blake Meike
Really can't. Did you see this: http://stackoverflow.com/questions/7925802/syncadapter-not-being-called-depending-on-order-of-account-setup-calls?lq=1 -blake On Thursday, July 24, 2014 2:33:58 PM UTC-7, Deepak wrote: > > Blake, > You say "Apparently, the order in

Re: [android-developers] Re: Sync Adapter - Syncs frequently

2014-07-24 Thread G. Blake Meike
the JobScheduler. That should be much better. Sorry I can't be of more help. -blake -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

Re: [android-developers] Re: Sync Adapter - Syncs frequently

2014-07-23 Thread G. Blake Meike
Yeah! I'll bet that's it. Please see: http://developer.android.com/training/sync-adapters/running-sync-adapter.html Especially the sections entitled: Run the Sync Adapter After a Network Message and Run the Sync Adapter Periodically -blake -- You received this message b

Re: [android-developers] Re: Sync Adapter - Syncs frequently

2014-07-23 Thread G. Blake Meike
I glanced through them and it all looks pretty good to me. If you are sure that you are never calling notifyChanged with the third arg = true, the only thing I can suggest is that, somehow, you have setSyncAutomatically = true. Pretty mysterious. -blake On Tuesday, July 22, 2014 2:19:02 PM

[android-developers] Re: Sync Adapter - Syncs frequently

2014-07-20 Thread G. Blake Meike
e of your calls are failing due to missing permissions? You may need account permissions... -blake -- 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 un

[android-developers] Re: Sync Adapter - Syncs frequently

2014-07-15 Thread G. Blake Meike
Do you have any calls to ContentResolver.notifyChange() in your app? If you pass "true" as the third argument, it will force a sync. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@

[android-developers] Re: Concurrency: Do you use Loaders? AsyncTask? or Runnables?

2013-03-19 Thread G. Blake Meike
-blake On Tuesday, March 19, 2013 5:33:50 PM UTC-7, littledot wrote: > > Android concurrency has always bugged me... > > These are all methods to achieve essentially the same thing: > mutli-threading > > *I honestly don't see much difference between them*, except the amount of

Re: [android-developers] Re: Can this variable become null?

2013-03-17 Thread G. Blake Meike
better time? Why is loading it at some random time, better? -blake -- -- 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,

[android-developers] Re: Can this variable become null?

2013-03-17 Thread G. Blake Meike
he sun, or something like that). There are only singletons in context. I have come to see many of the problem devs have with singletons not as a discussion of singletons themselves, but as a misunderstanding of the context in which they are singletons. -blake -- -- You received this message

Re: [android-developers] Re: anyone have a pandaboard

2013-03-02 Thread G. Blake Meike
http://omappedia.org/wiki/PandaBoard/4430vs4460PandaBoard -- -- 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-dev

[android-developers] Re: anyone have a pandaboard

2013-03-01 Thread G. Blake Meike
Would and ES work? On Friday, March 1, 2013 5:10:59 PM UTC-8, mike digioia wrote: > > Hi > > Anyone have a pandaboard not use and willing to sell it? > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

Re: [android-developers] Re: http in Android

2013-02-28 Thread G. Blake Meike
version. -blake On Thursday, February 28, 2013 9:17:25 AM UTC-8, Kristopher Micinski wrote: > > That doesn't really make sense if you want to send well formed > requests to web services. If you do choose to do this, you'll be > duplicating the effort of a well tested

[android-developers] Re: OnTouch events!!!!

2013-02-27 Thread G. Blake Meike
I think you need a state machine. The behavior of your onTouch will be determined by what the user does and the current state. That will, in turn, change the state. -blake On Tuesday, February 26, 2013 11:44:39 PM UTC-8, Numair Qadir wrote: > > Greetings, > > Can nested onTou

[android-developers] Re: Progarm unexpectdly error

2013-02-16 Thread G. Blake Meike
+10 very spooky, dude! On Friday, February 15, 2013 9:57:34 AM UTC-8, bob wrote: > > It is probably a null pointer exception because you are using an > uninitialized widget. > > > Make sure you call findViewById to initialize all widgets before use. > > > > On Thursday, February 14, 2013 11:58:5

[android-developers] Re: start AsyncTask from a background thread

2013-02-07 Thread G. Blake Meike
which you created the AsyncTask subclass instance. -blake On Thursday, February 7, 2013 2:36:00 PM UTC-8, dashman wrote: > > > I have a main background thread that's doing work that's needed > to be done relatively quickly...i.e. update the screen. > > But there are ti

[android-developers] Re: start AsyncTask from a background thread

2013-02-07 Thread G. Blake Meike
the thread on which the AsyncTask is created, provided that thread is a Looper? If you just init your background thread as a Looper, you might be able to use the AsyncTask normally... -blake G. Blake Meike Marakana Programming Android 2ed is now in stores: http://bit.ly/programmingandroid On

[android-developers] Re: Daemon Threads in Android

2013-02-07 Thread G. Blake Meike
opers try endless stuff to try to keep their processes from being managed. In the long run, it they just don't work. G. Blake Meike Marakana Programming Android 2ed is now in stores: http://bit.ly/programmingandroid -- -- You received this message because you are subscribed to the Google

[android-developers] Re: Thread Loop

2013-01-30 Thread G. Blake Meike
hread* You can't do that. TreKing's suggestion of an alarm, scheduled with the alarm manager, coupled with an intent service, is probably a good way to go. The Alarm manager fires a PendingIntent at the IntentService. When the IntentService gets the intent, it runs the server chec

[android-developers] Re: Key should not be taken by activity till Toast is shown

2013-01-23 Thread G. Blake Meike
Toast.LENGTH_LONG is a flag, not a number of ms. Check its value: I think it is, like, 1, or 2. -blake On Tuesday, January 22, 2013 11:04:57 PM UTC-8, Revathi Ramanan wrote: > > Hi All, > > I trigger a toast message when a wrong number is entered by user in Edit > Text b

Re: [android-developers] Click events doesn't work on a button after Animation

2013-01-23 Thread G. Blake Meike
If you choose Mark's second solution, be sure to move the view *before* the animation. If you don't you'll get a flash at the end of the animation, when you move the view. -blake -- You received this message because you are subscribed to the Google Groups "Android Develo

[android-developers] Re: sliding in a new layout

2013-01-22 Thread G. Blake Meike
Fixed. -blake On Tuesday, January 22, 2013 1:24:23 PM UTC-8, dashman wrote: > > yes there is. > > i think i'll use a viewflipper or something similar. > > i appreciate your help. > > On Tuesday, January 22, 2013 10:46:35 AM UTC-5, G. Blake Meike wrote: >> >

[android-developers] Re: sliding in a new layout

2013-01-22 Thread G. Blake Meike
There's an ugly flash after the menu slides out. If you find out what it is, please let me know! -blake -- 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@goog

[android-developers] Re: sliding in a new layout

2013-01-21 Thread G. Blake Meike
Done. There is now a basic eclipse "Hello World" example, with the slider added. Enjoy. G. Blake Meike Marakana Programming Android 2ed is now in stores: http://bit.ly/programmingandroid -- You received this message because you are subscribed to the Google Groups "Android De

[android-developers] Re: sliding in a new layout

2013-01-21 Thread G. Blake Meike
tools:ignore="PxUsage" > It will slide the view with the id view_slider out of the way, and replace it with the menu. -blake On Monday, January 21, 2013 4:11:43 AM UTC-8, dashman wrote: > > i see that it's a library. > > do you have a sample code as to how

[android-developers] Re: sliding in a new layout

2013-01-21 Thread G. Blake Meike
t;PxUsage" > It will slide the view with the id view_slider out of the way, and replace it with the menu. -blake On Monday, January 21, 2013 4:11:43 AM UTC-8, dashman wrote: > > i see that it's a library. > > do you have a sample code as to how to use it. > &

[android-developers] Re: sliding in a new layout

2013-01-20 Thread G. Blake Meike
I've been poking around at this for a while. You might be interested it this: https://github.com/bmeike/SlidingMenu G. Blake Meike Marakana Programming Android 2ed is now in stores: http://bit.ly/programmingandroid -- You received this message because you are subscribed to the Google G

Re: [android-developers] Correct way to implement Activity onDestroy()?

2013-01-16 Thread G. Blake Meike
If the task is actually cancellable -- that is, if it actually stops when you cancel it -- that should be sufficient. If you implement the AT's onCancelled method, make sure it doesn't use any stale references. G. Blake Meike Marakana Programming Android 2ed is now in stores: htt

Re: [android-developers] Correct way to implement Activity onDestroy()?

2013-01-15 Thread G. Blake Meike
will have spent battery computing a useless result. If you are willing to throw the result away, just cancel the task. G. Blake Meike Marakana Programming Android 2ed is now in stores: http://bit.ly/programmingandroid -- You received this message because you are subscribed to the Google

Re: [android-developers] Correct way to implement Activity onDestroy()?

2013-01-15 Thread G. Blake Meike
er hand, it brings up the question of why the Task is still running, if there is nobody to whom to report a result... G. Blake Meike Marakana Programming Android 2ed is now in stores: http://bit.ly/programmingandroid -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Correct way to implement Activity onDestroy()?

2013-01-14 Thread G. Blake Meike
objects (Activities). Nulling out pointers and AsyncTasks that survive screen reorientation (despite the fact that I proposed it myself, at one point) are just Voodoo. G. Blake Meike Marakana Programming Android 2ed is now in stores: http://bit.ly/programmingandroid On Monday, January 14, 2

[android-developers] Re: Help for stop service with Alarm Manager

2013-01-13 Thread G. Blake Meike
stop. Create a constant and use it. 2) The way you cancel a pending intent is by creating an *exact* copy of it. I suggest, then, that you use exactly the same code to create the intent that you use, for either starting or stopping the service. That's way less error prone. G.

[android-developers] Re: pass parameters between threads

2013-01-08 Thread G. Blake Meike
totally handle the architecture that does this the right way. ... and, fwiw, it has nearly nothing to do with freaking AsyncTasks. Gimme a ping. I'd be happy to help. G. Blake Meike Marakana Programming Android 2ed is now in stores: http://bit.ly/programmingandroid -- You received this me

[android-developers] How long is the pending stage after you have paid for the Android Developer Registration?

2013-01-08 Thread Blake Deister
Hello, I have setup an Android Developer account and registered, paid with google checkout and I believe it is still pending. Havent been able to do anything with my account it keeps redirecting me to the registration page as if I hadnt registered. Is this normal does it take like more than 3 d

[android-developers] Re: How To: Provide notification to Android app whenever SQLite table updates

2013-01-04 Thread G. Blake Meike
You should probably have a look at ContentResolver.notifyChange and registerContentObserver. Look at the implementation of Cursor.setNotificationUri. These won't help you monitor access to the DB, but they are a great way of monitoring changes to the data that the DB contains. G. Blake

[android-developers] Re: Unable to delete a PendingIntent with AlarmManager

2012-12-30 Thread G. Blake Meike
p that scheduled the alarm should get rid of it. G. Blake Meike Marakana Programming Android 2ed is now in stores: http://bit.ly/programmingandroid On Sunday, December 30, 2012 11:51:06 AM UTC-8, Giuseppe wrote: > > I have created a PendingIntent with AlarmManager that send an email ever

Re: [android-developers] How to make Activity with Theme.Dialog modal?

2012-12-14 Thread Blake B.
Try this in your manifest. When I set them both to 8, the behavior goes away: Blake On Friday, December 14, 2012 4:19:07 PM UTC-6, Mark Murphy (a Commons Guy) wrote: > > On Fri, Dec 14, 2012 at 4:59 PM, Blake B. > > wrote: > > I'd be curious to know if you sti

Re: [android-developers] How to make Activity with Theme.Dialog modal?

2012-12-14 Thread Blake B.
y, December 14, 2012 3:45:32 PM UTC-6, Mark Murphy (a Commons Guy) wrote: > > On Fri, Dec 14, 2012 at 4:32 PM, Blake B. > > wrote: > > Well, this may not be a problem on older APIs after all. I was testing > on > > 4.x devices (Moto Xoom and Samsung GSIII) and touch ev

Re: [android-developers] How to make Activity with Theme.Dialog modal?

2012-12-14 Thread Blake B.
rs, I am able to prevent the issue in my original post. Hopefully this is helpful to others along the way! Regards, Blake On Friday, December 14, 2012 3:05:39 PM UTC-6, Mark Murphy (a Commons Guy) wrote: > > On Fri, Dec 14, 2012 at 3:54 PM, Mark Murphy > > > wrote: > &

[android-developers] How to make Activity with Theme.Dialog modal?

2012-12-14 Thread Blake B.
ing a Dialog class explicitly? Blake -- 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-deve

[android-developers] Re: How to save AsyncTask class object in onSaveInstanceState()

2012-12-11 Thread G. Blake Meike
rtant that it is worth making it waste battery, even when no-one is watching (which is what a persistent AT does), it makes sense to put it somewhere less ephemeral: a Service. G. Blake Meike Marakana Programming Android 2ed is now in stores: http://bit.ly/programmingandroid -- You received th

[android-developers] Re: Wake locks android

2012-12-04 Thread G. Blake Meike
et the device go back to sleep... G. Blake Meike Marakana Programming Android 2ed is now in stores: http://bit.ly/programmingandroid -- 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] Re: Write to another application's internal memory

2012-11-28 Thread G. Blake Meike
http://en.wikipedia.org/wiki/Bob's_your_uncle -- 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+unsubs

[android-developers] Re: Write to another application's internal memory

2012-11-28 Thread G. Blake Meike
n App1. App1's ContentProvider.openFIle method decodes the URI > and opens and returns a ParcelFileDescriptor for the file to which it > corresponds. (fyi, don't try this with assets!). > > Bob's your uncle. > > -blake > The 2nd Edition of Programming And

[android-developers] Re: BitmapFactory.decodeFileDescriptor

2012-11-22 Thread G. Blake Meike
FWIW, this part was pilot error. Copying the files works fine. For bitmaps from File Descriptors, I have no answer. -blake -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-

[android-developers] Re: BitmapFactory.decodeFileDescriptor

2012-11-20 Thread G. Blake Meike
s of file types that should not be compressed. None the less, if I copy the asset to the .../files directory, I cannot create a bitmap from the resulting file. If, on the other hand, I adb push the original file, to the .../files directory, everything works fine. pffft... -blake -- You received

[android-developers] BitmapFactory.decodeFileDescriptor

2012-11-20 Thread G. Blake Meike
vider that returns a ParcelFileDescriptor for an asset, if it exists, or an external file, if not. -blake // asset stream: works fine try { bm = BitmapFactory.decodeStream( getAssets().open("logo.png")); } catch (Exception e) { Log.e(TAG, "failed opening asset stream", e); }

[android-developers] Re: Regarding Intents

2012-11-01 Thread G. Blake Meike
e the concept, thought they don't explain it. Just have another look around. G. Blake Meike Marakana The second edition of Programming Android is available: http://shop.oreilly.com/product/0636920023005.do On Thursday, November 1, 2012 6:12:08 AM UTC-7, krithika rajan wrote: > > H

[android-developers] Re: Button#onClickListener thread unsafe?

2012-10-15 Thread G. Blake Meike
processed event. Each new even will observe consistent state. ... but the main point is that you don't need to worry: unless you explicitly start a new thread, looper or asynctask, everything in the UI is on a single thread. It is safe. G. Blake Meike Marakana The second edition of Progra

[android-developers] Re: Sqlite android

2012-10-11 Thread G. Blake Meike
You probably want to use the method SQLiteDatabase.rawQuery -blake G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do On Wednesday, October 10, 2012 10:23:26 PM UTC-7, ANKUR1486 wrote: > > Hi all > >

Re: [android-developers] Re: Fragment Transactions

2012-09-30 Thread G. Blake Meike
This code works: https://github.com/bmeike/ProgrammingAndroid2Examples/blob/master/SimpleFragment/src/com/oreilly/demo/android/pa/simplefragment/SimpleFragment.java G. Blake Meike Marakana The second edition of Programming Android is now available: http://shop.oreilly.com/product

[android-developers] Re: Developer option "Don't keep activities" impacting AsyncTask?

2012-09-28 Thread G. Blake Meike
see this code and the error it drives... G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to th

[android-developers] Re: Developer option "Don't keep activities" impacting AsyncTask?

2012-09-28 Thread G. Blake Meike
The most typical cause of this problem is that the AsyncTask is not static and, therefore, has a pointer to the Activity in which it is declared. G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do -- You received th

[android-developers] Re: Fragment Transactions

2012-09-28 Thread G. Blake Meike
r the fragment. G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send e

Re: [android-developers] About accessing List View items from a different Thread

2012-09-27 Thread G. Blake Meike
an do the load in the doInBackground method and the copy in onPostExecute. Better yet, have a look at using a Loader. However you decide to do it, you must change the Adapter visible list only from the UI thread. G. Blake Meike Marakana The second edition of Programming Android is now avai

Re: [android-developers] Thread

2012-09-07 Thread G. Blake Meike
OS doesn't seem right. G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this gro

[android-developers] Re: Connectivity Between Oracle9i database and Android device

2012-08-07 Thread G. Blake Meike
This is probably a terrible idea. There's a discussion over on Stack Overflow that might help. http://stackoverflow.com/questions/5015592/connecting-to-oracle-in-android G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/pr

[android-developers] Re: Noob Question - Nexus 7 with Mac OS X

2012-08-07 Thread G. Blake Meike
only good news is that once you get things set up, they will, pretty much, stay set up. These instructions might help: http://marakana.com/support/android_setup.html G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005

[android-developers] Re: Android emulator, blank space surrounding the vritual device

2012-08-06 Thread G. Blake Meike
only one I've seen myself, involves setting the display density way lower than it actually is. Kind of a drag after paying all those bucks for that sweet looking laptop... G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/063

[android-developers] Re: Android 2.2 or 4.1??

2012-08-02 Thread G. Blake Meike
Many of the features in 4.1 can also be found in the Support Package (formerly the ACL). Depending on the exact features you need, you may be able to build your app for 4.1 and then backport it to 2.2, by adding the Support Library to the project. G. Blake Meike Marakana The second edition

[android-developers] Re: how to display a toast after 10 seconds from starting Asynctask

2012-07-31 Thread blake
I don't understand the role the AsyncTask plays in your question, so it is a bit hard to answer. If you are just trying to schedule a Toast 10 seconds from "now", you probably want to use Handler.postDelayed. G. Blake Meike Marakana The second edition of Programming Android

Re: [android-developers] Re: Passing a string to a runnable

2012-07-08 Thread G. Blake Meike
thread -- that the code in the case statement runs in the same thread as the Handler. G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do -- You received this message because you are subscribed to the Google G

Re: [android-developers] Re: Passing a string to a runnable

2012-07-08 Thread G. Blake Meike
the loop in run() actually running? I notice it says "while (stopped)". G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do -- You received this message because you are subscribed to the Google Groups "Andr

[android-developers] Re: Passing a string to a runnable

2012-07-07 Thread G. Blake Meike
I really can't figure out what you are asking here. There's no evidence or a runnable. I'm guessing that m and myNum are data members? Are they being updated from two different threads? G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://s

[android-developers] Re: Issues extending ListView in Android

2012-07-07 Thread G. Blake Meike
I'd say you've got yourself a bug. Very nice work. This code, run first under java 6, then under Android, confirms it for me: package net.callmeike.sandbox.p1; public class BaseClass { public void run() { callFoo(); } void foo() { System.out.println("P1 foo: " + this); } private

[android-developers] Re: Issues extending ListView in Android

2012-07-05 Thread G. Blake Meike
Whoah. I've only had a minute or two to look at this but, for the moment at least, I'm baffled. G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do On Thursday, July 5, 2012 8:44:51 AM UTC-7, Alex Bel

Re: [android-developers] Re: call method after every 5 min

2012-07-05 Thread G. Blake Meike
+1 Starting your own thread is broken: it won't work across process boundaries. G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do On Thursday, July 5, 2012 6:09:47 AM UTC-7, rahul kaushik wrote: > &g

[android-developers] Re: Issues extending ListView in Android

2012-07-05 Thread G. Blake Meike
On Thursday, July 5, 2012 2:53:14 AM UTC-7, Alex Belyaev wrote: > > > Here are the sources of: > > ListView.java > ... Those are publicly available sources! The source that would be most helpful is the source for CustomListView... -blake -- You received this messa

[android-developers] Re: Broadcast receiver starts a new thread, do I need to kill it?

2012-07-04 Thread G. Blake Meike
If there's a reason to do this asynchronously, you should do it with an AsyncTask. On the other hand, I'm with Justin wondering why you want it done asynchronously, at all... G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.c

[android-developers] Re: Any Good UI books or online resource?

2012-07-04 Thread G. Blake Meike
Since you asked: Programming Android has a two chapters describing, in some detail, how Android UI components work. G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do On Tuesday, July 3, 2012 5:54:24 PM UTC-7

[android-developers] Re: Issues extending ListView in Android

2012-07-04 Thread G. Blake Meike
roup class. Both > of them have protected access modifier, thus, it is possible to override > them. But if I place this methods in CustomListView class, this doesn't > work for me. > > So the question is, why? > This one I don't understand. That seems like it should wor

[android-developers] Re: Best books for learning Android

2012-07-02 Thread G. Blake Meike
Mark's stuff is, indeed, awesome. I humbly suggest Programming Android, as well... G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do On Sunday, July 1, 2012 7:12:39 PM UTC-7, Jason Hsu wrote: > > I&#x

[android-developers] Re: Fail to create Android Project after Eclipse update

2012-07-02 Thread G. Blake Meike
library being downloaded to the wrong place, when the manager is run from eclipse. In my case it is a bug that the template require the support library at all... G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do On

[android-developers] Re: leaked window again

2012-06-26 Thread G. Blake Meike
it seem that you've posted two different implementations of onPreExecute? It looks to me as if one of those dialogs is being created when the context is null, or at least invalid. I totally cannot figure out, from the fragments you've posted, though, why that is. G. Blake Meike M

[android-developers] Re: the Android layout blues

2012-06-26 Thread G. Blake Meike
If the parent container for both the button and list view is a linear layout, you should be able to set the list view's layout_height="0dpi" and layout_weight="1" G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com

[android-developers] Re: leaked window again

2012-06-26 Thread G. Blake Meike
Mahmoud, I'd be interested in pursuing this, if you are still having the problem. Would you: - Post the code for the anonymous onClick handler, in which the exception is being thrown? - Post the entire exception that is the problem Thanks, G. Blake Meike Marakana The second editi

[android-developers] Re: Eclipse Image Bug

2012-06-17 Thread G. Blake Meike
While I've never seen this happen in Indigo, it happens *constantly* in Juno. I know, I know: not supported. It is, however, certainly a way to drive a similar bug, consistently. G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/pr

[android-developers] Re: AIDL callbacks leak memory?

2012-06-15 Thread G. Blake Meike
... actually, on more thing. I'd expect the remote reference to be released if I unbind the service. Is that so? -blake -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to and

Re: [android-developers] AIDL callbacks leak memory?

2012-06-15 Thread G. Blake Meike
Got it. Thanks Dianne. G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group,

[android-developers] AIDL callbacks leak memory?

2012-06-14 Thread G. Blake Meike
il that reference gets nulled. When does that happen? I've followed this down as far as a Parcel.flatten_binder, but I kind of lose it after that. What is the right way to keep from leaking, for instance, implicit pointers to my Activity, when I use asynchronous callbacks with a bound

[android-developers] Re: Learning to design in Android development

2012-06-13 Thread G. Blake Meike
Well, since you asked... The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do G. Blake Meike Marakana On Wednesday, June 13, 2012 5:27:52 AM UTC-7, Parth Amin wrote: > > Hello, > > Can anyone suggest me how to master android la

[android-developers] Re: Eclipse install (Mac OS X) WAS fine...now it won't run

2012-06-11 Thread G. Blake Meike
ctory, somewhere, with absolutely nothing in it except the .metadata file. The actual projects live in some other directory tree, not rooted at the workspace. That means that you can delete, copy, or use an alternate workspace independent of the projects visible from it. G. Blake Meike Mar

[android-developers] Re: Eclipse install (Mac OS X) WAS fine...now it won't run

2012-06-11 Thread G. Blake Meike
It would be very helpful to have the *actual* error message. Most probably, though, your workspace has been corrupted. The simplest thing to do is to delete it, since it probably doesn't have much in it yet. By default, I believe, it is in ~/Documents/eclipse G. Blake Meike Marakana

[android-developers] Re: Invoking a web service created in java

2012-06-01 Thread G. Blake Meike
above has to be in your apk. All of it has to be correctly translated from java byte codes into Dalvik byte codes. I think your first step should be to look in your apk and see what is there. Verify that the libs you know about, at least, are in there and are dex files. G. Blake Meike

[android-developers] Re: Is multithreading recommended for my case?

2012-05-31 Thread G. Blake Meike
resources available to apply to some task that are not being used, because that task is ordered behind some other task. > > G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do -- You received this message

[android-developers] Re: XML parseing working in android 2.2 but not in android 4.0

2012-05-31 Thread G. Blake Meike
Do you have more information on this problem? I tried to reproduce it and could not do so. The following works as I would expect, parsing correct XML and generating error messages on malformed XML on emulators running ICS (4.0.4) and HC (3.2). G. Blake Meike Marakana The second edition of

[android-developers] Re: Looper is null in HandlerThread

2012-05-30 Thread G. Blake Meike
re static final initialized at creation, I don't think you'd have the problem. G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do -- You received this message because you are subscribed to the Google G

[android-developers] Re: Difference btwn following methods

2012-05-28 Thread G. Blake Meike
If you have a concern, you probably ought to look at the bytecodes. Honestly, I can't imagine what kind of concern there might be at this level but, if you have one, that's the way to resolve it. I mean, this isn't J2ME or anything... G. Blake Meike Marakana The second edition

[android-developers] Re: How to handle dismiss of DialogFragment (support lib) while app is in background

2012-05-27 Thread G. Blake Meike
h the lifecycle of the DialogFragment to the lifecycle of the Activity? G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do -- You received this message because you are subscribed to the Google Groups "Android

[android-developers] Re: Tips or links for efficient low CPU threads?

2012-05-25 Thread blake
ink that a generic way of doing this would be a fantastic addition to the Android platform. G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do -- You received this message because you are subscribed to the Google Group

[android-developers] Re: noob developer, application keeps restarting

2012-05-25 Thread blake
http://portabledroid.wordpress.com/2012/05/04/singletons-in-android/ G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do On May 16, 12:03 pm, jon dattilo wrote: > Hi everyone, > > I'm working on developing my first real

[android-developers] Re: Access intent filter action directly from AndroidManifest

2012-05-25 Thread blake
aunch it. The Android standard for doing this with ContentProviders is a Contract class. I would think you could do something similar for your app... If you are trying to launch some specific other app, just hardcode the Intent for that app. G. Blake Meike Marakana The second edition of Progra

[android-developers] Re: multithread sync problem

2012-05-25 Thread blake
After looking more carefully, I note that the code you supplied did not produce the log you supplied. I think you should consider rewriting this code using the tools in java.util.concurrent. You probably want a Semaphore and an Exchanger. G. Blake Meike Marakana The second edition of

[android-developers] Re: multithread sync problem

2012-05-25 Thread blake
I haven't looked carefully but I suspect that you want notifyAll() instead of notify() G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do On May 24, 8:05 pm, yikaikai wrote: > I have two thread, one for

[android-developers] Re: Activity lifecycle and a null cursor

2012-05-07 Thread blake
Raffaele,   What information do you have, on the NPE?  Is it just user reports?  Something in them makes you certain that the problem is in the listener? G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do -- You

[android-developers] Re: Singletons in Android .... Final solution?

2012-05-04 Thread blake
Especially since this topic, apparently, recurs, I thought it might be worth a summary. http://portabledroid.wordpress.com/2012/05/04/singletons-in-android/ G. Blake Meike Marakana The second edition of Programming Android is now on-line: http://shop.oreilly.com/product/0636920023005.do

[android-developers] Re: Singletons in Android .... Final solution?

2012-05-03 Thread blake
On May 3, 4:24 pm, blake wrote: > I completely agree that this might not be a bug.  It is outright > documented to happen in an Activity.  It is a little surprising, in > the activity, though... ... should read "in the application, though..." Blake Meike Marakana Th

  1   2   3   >