[android-developers] Re: Is there a SeekBar preference?

2009-01-08 Thread Marc Lester Tan
Hi Stoyan, Yesterday I also asked myself if there's a Seekbar preference but I looked around and did not find any so I created my own. Here's my code if it will help you. public class SeekBarPreference extends DialogPreference{ private Context context; private SeekBar volumeLevel;

[android-developers] Re: creating a widget

2009-04-27 Thread Marc Lester Tan
Hi, you may want to check out the Android Developers blog: http://android-developers.blogspot.com/search/label/Widgets Jeff Sharkey posted a very useful info about widgets. Cheers, Marc On Mon, Apr 27, 2009 at 3:39 PM, Mr.No f.hi...@arcor.de wrote: Somebody knows a tutorial that shows how

[android-developers] Re: Request to official ADC2 team.

2009-09-14 Thread Marc Lester Tan
+ On Tue, Sep 15, 2009 at 2:40 AM, Mobidev android.mobi...@gmail.com wrote: . Once upon a time, we had this little group… http://groups.google.com/group/android-challenge Android Challenge: Discuss the Android Developer Challenge, including questions on contest details. You

[android-developers] Re: Signing apps

2009-09-17 Thread Marc Lester Tan
Yes you can send your apps signed by the debug key to your friends but they need to make sure Uknown sources is checked under the Application settings. Also, Android Market will not accept your APK if it is signed by the debug key. -Marc On Thu, Sep 17, 2009 at 5:42 PM, Neilz

[android-developers] Re: Setting ImageView from the web using URI

2009-10-15 Thread Marc Lester Tan
You can try this one: Bitmap bm = null; try { URL imageURL = new URL(http://example.com/image.jpg;); BufferedInputStream bis = new BufferedInputStream(imageURL.openStream(), 1024); bm = BitmapFactory.decodeStream(bis); bis.close();

[android-developers] Re: ListView with Streaming Content

2009-10-21 Thread Marc Lester Tan
Hi Migs, You can try creating custom adapter (subclassing BaseAdapter) backed by an ArrayList. So lets say a new data comes in, get the currently selected index, push your new data to arraylist, call invalidate on your listview then call setSelection(position) on listview. hth, Marc On Wed,

[android-developers] Re: ListView with Streaming Content

2009-10-21 Thread Marc Lester Tan
adapter instead, whenever you add or delete elements in your ArrayList or change the contents of existing elements in your ArrayList. On Oct 21, 7:53 am, Marc Lester Tan mail...@gmail.com wrote: Hi Migs, You can try creating custom adapter (subclassing BaseAdapter) backed by an ArrayList

[android-developers] Re: Real Life Push

2009-10-26 Thread Marc Lester Tan
and this might be a good place to start about JAIN SIP on Android although it uses the old 1.0 sdk http://jeanderuelle.blogspot.com/2008/10/jain-sip-is-working-on-top-of-android.html Marc On Tue, Oct 27, 2009 at 6:19 AM, jotobjects jotobje...@gmail.com wrote: This question comes up from

[android-developers] Re: How to Obtain Endless Views

2009-10-27 Thread Marc Lester Tan
try Mark Murphy's Endless Adapter http://github.com/commonsguy/cwac-endless Marc On Tue, Oct 27, 2009 at 5:30 PM, Maxood maqs...@salsoft.net wrote: Can you please give or refer me an example code or a link here. On Oct 26, 2:26 pm, Paul Turchenko paul.turche...@gmail.com wrote: Sounds

[android-developers] Typo Error on InstrumentationTestCase

2008-11-16 Thread Marc Lester Tan
hi folks, don't know where to report this but maybe somebody can file a typo error in android.test.InstrumentationTestCase on method public void injectInsrumentation(Instrumentationhttp://code.google.com/android/reference/android/app/Instrumentation.htmlinstrumentation) Cheers, Marc

[android-developers] Receiving Missed Call event

2009-11-01 Thread Marc Lester Tan
Hi folks, anyone have idea how can I make my code receive a Missed Call event? I know I can receive the RINGING state as well as OFFHOOK state via: TelephonyManager telephony = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); telephony.listen(phoneListener,

Re: [android-developers] ADC2 Results Post

2009-11-05 Thread Marc Lester Tan
Ok, Handy Poll ADC has made it into the top 200, thanks to all those who voted and congrats to all the other devs who made it as well. I hope G will let us upload an update because I know there are small bugs lurking inside my app :) Marc On Fri, Nov 6, 2009 at 2:41 PM, Tom Gibara

Re: [android-developers] ADC2 Judging App FC

2009-11-07 Thread Marc Lester Tan
Yup happens to me too, download doesn't work and FCs when installed manually. Argh On Sat, Nov 7, 2009 at 1:37 AM, dadical keyes...@gmail.com wrote: Is anyone else seeing problems with the ADC2 judging app throwing a FC when trying to install manually? It's a big miss, since the requirement

Re: [android-developers] Re: ADC2 Judging App FC

2009-11-08 Thread Marc Lester Tan
, just open the Market app. As soon as the Market app opens, the app to review will magically start downloading. On Nov 8, 3:53 pm, Michael MacDonald googlec...@antlersoft.com wrote: Happening to me as well-- Regular T-Mobile G1 Marc Lester Tan wrote:Yup happens to me too, download doesn't

Re: [android-developers] Re: what happened to my application's statistics?

2009-11-19 Thread Marc Lester Tan
True, my app have 47k downloads and 800 ratings and now, 1776 and 28 ratings!, what's happening Google? On Thu, Nov 19, 2009 at 6:22 PM, arnouf arnaud.far...@gmail.com wrote: Apparently all download statistics have been reinitialized ??!!! On 19 nov, 11:21, Éva Lovrencsics lovi...@gmail.com

Re: [android-developers] ADC2 Results?

2009-11-30 Thread Marc Lester Tan
Argh, HandyPoll didnt make it as well. Congrats to all the winners! Marc On Tue, Dec 1, 2009 at 4:37 AM, Robert Green rbgrn@gmail.com wrote: According to their last email, today is the day. Has anyone received news about their ADC2 entry yet? -- You received this message because you

[android-developers] Re: Alternative Android Markets

2009-08-17 Thread Marc Lester Tan
Are they NetDragon? there are already previous threads regarding their offers. I also got email from them about translating my apps to chinese and then reselling for free to the chinese market but I'm quite doubtful. -marc On Mon, Aug 17, 2009 at 12:15 AM, droidin.net bost...@gmail.com wrote:

[android-developers] Re: get area name using latitude and longitude

2009-08-23 Thread Marc Lester Tan
try this one: final Geocoder geoCoder = new Geocoder(context, Locale.getDefault()); ListAddress addresses = geoCoder.getFromLocation(latitude, longitude, numResults); -Marc On Sun, Aug 23, 2009 at 1:33 PM, Honest honestsucc...@gmail.com wrote: Hello, Can some one tell me how can i get area

[android-developers] Re: different images for imagebutton states...

2009-08-23 Thread Marc Lester Tan
in your res/drawable folder, put an xml that contains (sample.xml): ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_focused=true android:state_pressed=false android:drawable=@drawable/focused / item

[android-developers] Re: Free Chart drawing package for Android

2009-08-25 Thread Marc Lester Tan
Hi Nguyen, Try this http://www.achartengine.org. It's free and open-source. -Marc On Wed, Aug 26, 2009 at 7:23 AM, Nguyen A. Nguyen nguyenanngu...@gmail.comwrote: Hi, Could someone recommend a free or cheap Chart drawing package for Android? I found this one, which is quite elegant but

[android-developers] Re: What is the approx time taken to register as a developer and to be able to publish apps on the Android Market?

2009-08-25 Thread Marc Lester Tan
Yup it goes live immediately. -Marc On Wed, Aug 26, 2009 at 11:51 AM, soniya soniy...@gmail.com wrote: :) 1 more questionWhen the App is submitted,Is there no certification cycle like Apple? I submit the App and it goes live? On Aug 25, 8:39 pm, cadlg carlos@gmail.com wrote: On

Re: [android-developers] REST web services and JSON Response object support in Android

2010-09-08 Thread Marc Lester Tan
I am using the library from http://www.json.org/java/index.html. Just include the source in your app (or package it into a jar if you want) then check Test.java for examples on how to use it. Cheers, Marc Twitter: mharkus http://www.appcellar.com On Wed, Sep 8, 2010 at 3:31 PM, cool.manish

[android-developers] Re: Writing widgets *without* persistent services

2009-06-02 Thread Marc Lester Tan
Hi, You can add res/layout-land and put your landscape layout there. So basically you have res/layout for portrait and res/layout-land for landscape layouts. Marc On Wed, Jun 3, 2009 at 12:57 PM, beekeeper kee...@beekeeperlabs.com wrote: I'm trying to write a set of widgets and, in

[android-developers] Re: Licensing an Android application programatically.

2009-06-03 Thread Marc Lester Tan
Hi, # 1 - I believe you can do this when signing your certificate. # 2 - you can store the number of times your app is invoked on the Preferences then just check if it already exceeds your limit but then it can easily be broken by just uninstalling the application and download it again. I

Re: [android-developers] Downloading file and asynctask opinion needed

2011-01-06 Thread Marc Lester Tan
Yes, i think it's still better to keep it in asynctask as you will never know when the user is in high speed mobile internet or not and also not to block the ui thread. Marc On Fri, Jan 7, 2011 at 1:02 PM, Mystique joven.ch...@gmail.com wrote: Hi, in my app I have an asynctask to download a

[android-developers] Problem in Exporting Signed Application Package

2010-05-25 Thread Marc Lester Tan
Hi all, I've just upgraded my SDK to 2.2 and now when trying to export signed application in Eclipse, I am getting the following exception: *Message:* Unhandled event loop exception *Exception Stack Trace:* java.lang.NullPointerException at

Re: [android-developers] Re: Problem in Exporting Signed Application Package

2010-05-25 Thread Marc Lester Tan
: Same here ! On May 25, 4:40 pm, Marc Lester Tan mail...@gmail.com wrote: Hi all, I've just upgraded my SDK to 2.2 and now when trying to export signed application in Eclipse, I am getting the following exception: *Message:* Unhandled event loop exception *Exception Stack Trace

[android-developers] Processing Camera Preview

2010-06-02 Thread Marc Lester Tan
Hi everybody, I just want to ask what is the best way to do processing of preview frame from the Camera. Right now, I am doing it like this: 1. I put the byte[] from onPreviewFrame to a queue (limited to 10, for this example) until the queue is full. 2. ProcessingThread fetches from this queue

[android-developers] Re: Baseband version in API ?

2009-07-15 Thread Marc Lester Tan
try this one... http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=blob;f=src/com/android/settings/DeviceInfoSettings.java;h=be01f7dc57e6dbe474adf1decce6db1fefa245c0;hb=HEAD -Marc On Wed, Jul 8, 2009 at 10:10 PM, Murphy murphy2...@gmail.com wrote: I want to read the

[android-developers] Re: Baseband version in API ?

2009-07-15 Thread Marc Lester Tan
=c3ae3c26aa4346686fd28371e8f1d96a6a1b2ee4;hb=HEAD On Wed, Jul 15, 2009 at 7:09 PM, Marc Lester Tan mail...@gmail.com wrote: try this one... http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=blob;f=src/com/android/settings/DeviceInfoSettings.java;h=be01f7dc57e6dbe474adf1decce6db1fefa245c0;hb=HEAD

[android-developers] Re: Why does DDMS sometimes only show one line of logs?

2009-07-16 Thread Marc Lester Tan
or you can always use 'adb logcat' from your console. sent from my G1 On Jul 17, 2009 6:09 AM, Roman roman.baumgaert...@t-mobile.com wrote: I noticed the same after doing testing for a longer time. Normally I connect and disconnect my test phones and after a certain time the DDMS shows only

[android-developers] Re: Experimental Bluetooth Library

2009-07-28 Thread Marc Lester Tan
Can't wait to try this on wiimote. Anyone tried it already? does it work? -Marc On Wed, Jul 22, 2009 at 2:55 PM, Stefano Sanna (gerdavax) gerda...@gmail.com wrote: Hi all. I've written a simple library that provides access to some Bluetooth features: local device properties, remote device

Re: [android-developers] 3D Physics Engine For Android Demo

2010-03-15 Thread Marc Lester Tan
Works well on my Nexus One. Cool! On Mon, Mar 15, 2010 at 10:25 PM, Kevin S. dada...@gmail.com wrote: I've completed my first Android application. It as 3D demo with a physics engine. It uses the phone's accelerometer so that you can shake the world by moving the phone around. There

Re: [android-developers] Re: GLSurfaceView and camera surface

2010-03-25 Thread Marc Lester Tan
You can try this one: Camera image as an OpenGL texture on top of the native camera viewfinder http://nhenze.net/?p=172 Marc http://nhenze.net/?p=172 On Fri, Mar 26, 2010 at 11:22 AM, sleith raysle...@gmail.com wrote: Hi, thanks for your response. how do i give different z index? isn't it

Re: [android-developers] Re: Ads in apps... How to successfully generate a larger revenue?

2010-03-31 Thread Marc Lester Tan
Yeah that is true. I have an app that's ~15k active installs and is gaining $20/day while my other apps where active installs are 20k are just gaining ~ $1 a day. It really depends whether your users are actually using your application very often. marc On Thu, Apr 1, 2010 at 5:23 AM, Greg

[android-developers] Scaling on Two Webviews

2011-03-16 Thread Marc Lester Tan
on the screen. Any idea what's going on here or what should I do so that the second webview will also scale? Is it a bug or a limitation? -- Cheers, *Marc Lester Tan * http://www.appalert.co http://moonphase.pendukosoftware.com http://blogs.marctan.com -- You received this message because you

Re: [android-developers] Android App Tracker - market rank tool

2011-03-21 Thread Marc Lester Tan
. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Cheers, *Marc Lester

Re: [android-developers] Usage Statistics

2011-05-11 Thread Marc Lester Tan
/android-developers?hl=en -- Cheers, *Marc Lester Tan * http://www.appalert.co http://moonphase.pendukosoftware.com http://blogs.marctan.com http://www.proudlypinoy.org/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

Re: [android-developers] Developing image processing project ny interfacing matlab and android phone

2011-05-12 Thread Marc Lester Tan
email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Cheers, *Marc Lester Tan * http://www.appalert.co

Re: [android-developers] Any ideas on collecting app usage data ?

2011-09-22 Thread Marc Lester Tan
Take a look at this framework code: http://hi-android.info/src/com/android/server/am/UsageStatsService.java.html It collects app usage data for 5 days and store it in the /data folder. If you are rooted then you should be able to access this file. Cheers, *Marc Lester Tan * http://marctan.com

Re: [android-developers] Re: Application Ranking?

2011-07-02 Thread Marc Lester Tan
Hi Felix, Although it will not really check for your app's ranking but it will give you the list of top 100 apps/games in the Android market as well as their stats for the previous days. http://www.appalert.co Cheers, *Marc Lester Tan * http://www.appalert.co http