[android-developers] Re: Goodbye, list.

2016-07-23 Thread Hank
Have to admit I agree. I'm not seeing a whole lot of value from these any longer and I'm really tired of the poor English of those posting jobs and contracts. I am also unsubscribing. On Friday, July 22, 2016 at 5:18:24 PM UTC-5, Trevor Page wrote: > > I've rarely posted in this group, but

[android-developers] Is it possible to read “/dev/fb0”(screenshot) in Render Script code directly?

2016-03-19 Thread Hank
#pragma version(1) #pragma rs java_package_name(com.example.hellorenderscript) #include "rs_graphics.rsh" void root() { Read /dev/fb0 ??? } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and

[android-developers] Dose background effect belong to GMS or not.

2012-06-28 Thread Hank
All we know face unlock and goofy face effect need GMS license. I can find the background effect source code in framework. Dose background effect also need GMS license? The background effect that can set space, sunset and disco in background are easily corrupted in preview screen. How can I do

[android-developers] Does background effect belong to GMS ?

2012-06-28 Thread Hank
We all know the face unlock and goofy face effect need GMS license. How about background effect that can set space, sunset or disco in background ? -- 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] Re: custom attributes in library projects

2012-06-04 Thread Hank
Hi Jay, Your solution doesn't worked for me. Yes, the project could pass the compile without errors, but the attributes are never read at runtime. Hank On Friday, March 2, 2012 4:22:40 AM UTC+8, Jay Kline wrote: Im using a slightly better kludge. Instead of having to include the xml

[android-developers] CursorLoader vs AsyncQueryHandler?

2012-02-22 Thread Hank
I have seen sample code on how to implement both a CursorLoader and a AsyncQueryHandler. If I wanted to use this for an Android 2.2 application for a SimpleCursorTreeAdapter, which one should I use? -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] When to save settings?

2012-02-21 Thread Hank
My application has a interests page where the user can select which interests they wanted selected. It looks like an expandable listview with checkboxes. I am trying to decide if I should have an explicit save button or ask the user if they want to save when they are leaving that activity. I tried

[android-developers] Re: When to save settings?

2012-02-21 Thread Hank
I forgot to note that when saving, the interests are uploaded to a web server. So at the very least if it fails, I should notify the user. On Feb 21, 10:00 am, TreKing treking...@gmail.com wrote: On Tue, Feb 21, 2012 at 8:54 AM, Hank hwang...@gmail.com wrote:  I am trying to decide if I should

[android-developers] SimpleCursorTreeAdapter bind Child Cursor to Child Checkbox

2012-01-22 Thread Hank
I have a list where the children have textviews and checkboxes, and I want to bind a cursor's column to the checkbox. I tried using SimpleCursorTreeAdapter.ViewBinder but that only works for the group views and not the children views. How do I do this? -- You received this message because you

[android-developers] XML parsing

2011-12-27 Thread Hank
I have this function in my code public final static Document XMLfromString(String xml){ Document doc=null; DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); try {

[android-developers] How to clear database and logout?

2011-11-17 Thread Hank
I have an application that requires the user to login into their account, and each account has it's own database. I want to know what's the best way to clear a database when the user log's out of their account? I've tried context.deleteDatabase() but I have a problem where when the user re-login

[android-developers] empty Cursor after Context.deleteDatabase and data re-added

2011-11-15 Thread Hank
I implemented a logout function in my application that removes the user's account, shared preferences, and deletes the database using context.deleteDatabase(). But after I re-login, and the data is re- added, when I go into one of my activities using a SimpleCursorAdapter, I notice that the list

[android-developers] Re: Opportunistic Transfer

2011-08-25 Thread Hank
Does the mobile data connection hold a connection? Or does it only establish one when it is used? I thought mobile data would be more battery intensive and only establish connections when it is being used and then disconnect the connection when it is finished. Unlike Wi-Fi which I believe always

[android-developers] Re: Opportunistic Transfer

2011-08-25 Thread Hank
So based on your answer, does implementing an opportunistic transfer system provide beneficial results? On Aug 25, 4:16 pm, Dianne Hackborn hack...@android.com wrote: On Wed, Aug 24, 2011 at 2:38 PM, lbendlin l...@bendlin.us wrote: there is no perceptible difference between the energy required

[android-developers] Opportunistic Transfer

2011-08-24 Thread Hank
I have an application that wants to transfer a file to a web server every 15 minutes. Now if in between the 15 minute intervals, a web connection is initiated by some other application on the phone such as web browser, would it be more battery efficient if the application piggy backed on this

[android-developers] Apache Derby

2011-08-16 Thread Hank
Has anyone successfully integrated a Apache Derby database with their Android app? -- 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

[android-developers] Re: Apache Derby

2011-08-16 Thread Hank
On the phone. On Aug 16, 3:12 pm, jotobjects jotobje...@gmail.com wrote: Can you be more specific - do want derby running on the phone or on a remote host? On Aug 16, 10:54 am, Hank hwang...@gmail.com wrote: Has anyone successfully integrated a Apache Derby database

[android-developers] Android Location Update every 30 seconds

2011-08-10 Thread Hank
If I determine the phone is active by reading the accelerometer, I want to update the location of the phone every 30 seconds. If after a while, I determine it's not moving, I stop the location updates. Is it better to leave a LocationListener on during that time, or is it better to register a

[android-developers] SQLiteDatabase error: SQL logic error or missing database

2011-06-03 Thread Hank
I created a database using SQLiteOpenHelper and I'm trying to query it. It returns the cursor but when I call moveToFirst() it crashes with the error SQL Logic Error or Missing Database. My code for the database: public class Database{ private static final String DATABASE_NAME =

[android-developers] Re: SQLiteDatabase error: SQL logic error or missing database

2011-06-03 Thread Hank
I tried the other query method and it also fails. I added five rows into the table before querying and there are no problems with adding On Jun 3, 12:42 pm, Edam edamr...@hotmail.com wrote: Most of your code looks very similar to mine (which works 100% ok). The bit where you select the data is

[android-developers] Re: SQLiteDatabase error: SQL logic error or missing database

2011-06-03 Thread Hank
I think the error has something to do with selection and selectionArgs, cause if I remove them there is no problem On Jun 3, 1:15 pm, Hank hwang...@gmail.com wrote: I tried the other query method and it also fails. I added five rows into the table before querying and there are no problems

[android-developers] system / hardware level Android hacking

2011-05-25 Thread hank
, but especially with the ADK (Android Arduino kit) interest is bound to grow. -- hank -- 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

[android-developers] Re: system / hardware level Android hacking

2011-05-25 Thread hank
Oops this message was not for this forum, can I recall this. -- 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] Attach jar to apk

2011-05-25 Thread Hank
So I want to use the DexClassLoader to load classes in my jar stored in my application's private space. So I want to know, how do I attach an a jar file with my apk? I don't want to attach my jar to the project but be able to have it in my applications private space and load it dynamically. --

[android-developers] DexClassLoader read res/raw/

2011-05-25 Thread Hank
How do I use a DexClassLoader to read an apk file I placed in my applications res/raw/ folder? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

[android-developers] Device Administration the same as OMA DM support?

2011-03-30 Thread Hank
I know with 2.2, Android includes an API for Device Administration. I am wondering if having the Device Administration API was the same as having OMA DM support? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Gingerbread phone call recording?

2011-03-09 Thread Hank
I tried to make an app to record phone conversations using the MediaRecorder class for Froyo on my Nexus One, and it turned out unsuccessfully. I was wondering with the new firmware Gingerbread, if it was possible to record phone conversations now? -- You received this message because you are

[android-developers] Re: Gingerbread phone call recording?

2011-03-09 Thread Hank
That's used for VOIP, which isn't the same as recording a phone conversation from a call using the mobile carrier network. On Mar 9, 12:46 pm, TreKing treking...@gmail.com wrote: On Wed, Mar 9, 2011 at 10:24 AM, Hank hwang...@gmail.com wrote: I was wondering with the new firmware Gingerbread

[android-developers] Mediaplayer cuts off early

2011-01-25 Thread Hank
I have a recording that is around 4 minutes and when I try to play it using the MediaPlayer API, it doesn't play the full file, it cuts off early maybe at most 30 seconds into the file. Did anyone have this problem, and did they find a solution? I also called getDuration() and it is returning the

[android-developers] Re: Mediaplayer cuts off early

2011-01-25 Thread Hank
I don't get any exceptions and the log doesn't provide any information. I am trying to play a amr file On Jan 25, 12:17 pm, TreKing treking...@gmail.com wrote: On Tue, Jan 25, 2011 at 10:02 AM, Hank hwang...@gmail.com wrote: I have a recording that is around 4 minutes and when I try to play

[android-developers] Re: Mediaplayer cuts off early

2011-01-25 Thread Hank
So I found out that my MediaPlayer was being garbage collected so that was causing it to end early. On Jan 25, 12:40 pm, Hank hwang...@gmail.com wrote: I don't get any exceptions and the log doesn't provide any information. I am trying to play a amr file On Jan 25, 12:17 pm, TreKing treking

[android-developers] Re: Child Thread Blocking Problems

2010-11-10 Thread Hank
I managed to fix it, apparently I was not associating the handler and looper to the child thread On Oct 28, 5:22 pm, DanH danhi...@ieee.org wrote: Assuming that post() or postDelayed() starts the Thread is even more popular. On Oct 28, 4:47 pm, fadden fad...@android.com wrote: On Oct 28,

[android-developers] Handler.post() and Looper

2010-10-28 Thread Hank
If I created a new thread and use a handler to queue tasks by only using post(), do I need a Looper? -- 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

[android-developers] Child Thread Blocking Problems

2010-10-28 Thread Hank
Within my service I created a new thread that will try to establish a internet connection, and I want it to wait for the connection to be established before doing anything. But when I call wait() or use ConditionalVariable.block(), it blocks the whole application and causes ANR. Does anybody know

[android-developers] Re: Child Thread Blocking Problems

2010-10-28 Thread Hank
to somehow notify the main thread that the connection is ready, and until then the main thread should be spinning (in the figurative sense) in its event loop, not sitting on a wait. On Oct 28, 1:08 pm, Hank hwang...@gmail.com wrote: Within my service I created a new thread that will try

[android-developers] Connectivity Manager NetworkInfo getState

2010-10-15 Thread Hank
So when I use ConnectivityManager and get a list of Networkinfo using getAllNetworkInfo(), for the mobile NetworkInfo it is Connected on the emulator but Unknown when it is on a real phone. Does anyone know why? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] SMS Header

2010-10-13 Thread Hank
I've been looking around and have been wondering is there any way to modify the SMS header before sending it out? -- 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

[android-developers] ANR in Album with 100% CPU usage

2009-04-02 Thread Hank And
a more efficient way to decode thumbnails? Thanks. Hank --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

[android-developers] How to synchronously release an object referenced by wp?

2009-01-15 Thread Hank And
Folks, When we use a wp to referenced some object, for ex. , wp SomeClass a; we can call a.clear() when we no longer need it. However, I found the destructor of this object might not be invoked right away. Is there any way to release the object synchronously? Thanks! Hank

[android-developers] Why atomic access to functions like CameraService::Client::takePicture()?

2009-01-12 Thread Hank And
Hi, I seldom program multithreads. I am curious about why it needs a Mutex::Autolock to protect access to CameraService::Client::takePicture ()? We don't have multiple camera clients, right? Is it for preventing consecutively taking pictures? Thanks!