[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;

public SeekBarPreference(Context context, AttributeSet attrs) {
super(context, attrs);
this.context = context;
}

protected void onPrepareDialogBuilder(Builder builder) {

LinearLayout layout = new LinearLayout(context);
layout.setLayoutParams(new
LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT,
LinearLayout.LayoutParams.WRAP_CONTENT));
layout.setMinimumWidth(400);
layout.setPadding(20, 20, 20, 20);

volumeLevel = new SeekBar(context);
volumeLevel.setMax(8);
volumeLevel.setLayoutParams(new
ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT));
volumeLevel.setProgress(0); *// You might want to fetch the value
here from sharedpreferences*

layout.addView(volumeLevel);


builder.setView(layout);

super.onPrepareDialogBuilder(builder);
}

protected void onDialogClosed(boolean positiveResult) {
if(positiveResult){
persistString(volumeLevel.getProgress()+);
}
}

}


then in your activity you can use this class:

SeekBarPreference sb = new SeekBarPreference(this, null);
sb.setTitle(R.string.volume);
sb.setSummary(R.string.volume_summary);
sb.setKey(VOLUME_LEVEL_PREF);

-Marc

On Fri, Jan 9, 2009 at 9:13 AM, Stoyan Damov stoyan.da...@gmail.com wrote:


 Hi guys,

 The emulator and G1's Settings apps apparently launches a preference
 activity.
 In Settings, Sound and Display, when you touch the Ringer volume
 setting, a dialog pops up, which shows a SeekBar.
 My question is how is this implemented because I need a similar (seek
 bar-driven) setting in my app.

 I don't have Android's source code and am hesitant to download 2.1G
 just to check :(
 I'm guess this setting does NOT launch an intent which pops up the
 dialog (because I'd expect that intent to be wrapped in
 PreferenceScreen and then I'd see the circled arrow indicator) but
 can't be sure.
 I know many people on the list are Google employees and am hoping I'll
 get an answer.

 Thanks in advance,
 Stoyan

 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 to create a widget?
 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 can also seek other developers to join a team
 effort.
   …then came this message…

 http://groups.google.com/group/android-challenge/browse_thread/thread/c95216dc28b8f74c
   …and the group was closed for ever.

 A humble request to ADC2 team to officially start and moderate a new
 ADC2 group similar to the previous android-challenge group. ADC2
 messages are scattered in android-developers and android-discuss
 groups. ADC2 discussions does not fit in either of these groups. There
 will be hundreds of queries, comments, news and PR pitches once the
 ADC2 judging app goes live. So please could you start a ADC2
 discussion group at the earliest.

 Thanks.
 P.S. Droids of the planet please vote with '+' or '–' for this
 request.

 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 neilhorn...@googlemail.com wrote:


 Hi all. Just trying to get my head around this signing principle. The
 dev guide says:

 The Android system will not install or run an application that is not
 signed appropriately.

 But I haven't signed the app I'm developing, and it runs fine on both
 the emulator and my device. Ok, so it's being signed with the eclipse
 debug key? But how come that still runs on the device.

 And if it runs on my device, what is there to stop me sending it out
 to friends to install on theirs? Is this possible, and is it
 technically allowed to do so?

 Thanks for your advice.
 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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();
} catch (Exception e) {
// handle
}

then you can call:

boxart.setImageBitmap(bm);


Marc


On Tue, Oct 13, 2009 at 10:08 PM, Smelly Eddie ollit...@gmail.com wrote:


 I need to display an image that is pulled from the web using a url.

 I tried the following, unsuccessfully;


  boxart.setImageURI(Uri.parse(
 http://example.com/image.jpg;));


 I assume I need to create a local drawable and retrieve the image from
 the web.

 All the examples in the devGuide use includes resources.

 Any help would be great.
 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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, Oct 21, 2009 at 7:34 PM, Miguel Paraz mpa...@gmail.com wrote:


 Hi,
 I'd like to build a ListView with streaming content. New items are
 added to the top and old ones are forgotten

 If I understand correctly, the ListView was not built for this, right?
 The ListAdapter was meant to provide a fixed set of data.

 I tried to setAdapter() when new data comes in, but this makes the
 ListView forget the current selection.

 Is it feasible to subclass or modify ListView behavior so that the
 selection stays  the same but gets pushed down?

 Thanks!
 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ListView with Streaming Content

2009-10-21 Thread Marc Lester Tan
Yeah, correct, just call notifydatasetchanged on you mean custom and not
customer ;) adapter, forgot that one.

On Wed, Oct 21, 2009 at 10:02 PM, Streets Of Boston flyingdutc...@gmail.com
 wrote:


 No need to call 'invalidate()' on your list-view.
 Call 'notifyDatasetChanged()' on your customer 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. 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, Oct 21, 2009 at 7:34 PM, Miguel Paraz mpa...@gmail.com wrote:
 
   Hi,
   I'd like to build a ListView with streaming content. New items are
   added to the top and old ones are forgotten
 
   If I understand correctly, the ListView was not built for this, right?
   The ListAdapter was meant to provide a fixed set of data.
 
   I tried to setAdapter() when new data comes in, but this makes the
   ListView forget the current selection.
 
   Is it feasible to subclass or modify ListView behavior so that the
   selection stays  the same but gets pushed down?
 
   Thanks!- Hide quoted text -
 
  - Show quoted text -
 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 time to time without a lot of feedback.
 You might add Jain SIP to your list, but I don't know if this has been
 used extensively beyond a sample peer-2-peer chat application -


 http://groups.google.com/group/android-developers/browse_thread/thread/8c254a46bb68274d/013724571f888631?lnk=gstq=jotobjects+SIP#013724571f888631

 On Oct 26, 3:16 am, Miguel Paraz mpa...@gmail.com wrote:
  Hi,
  I've tried the following for pushing messages, in experiments:
 
  XMPP - using Smack, modified byhttp://code.google.com/p/jabberoid/
 
  HTTP with Comet/Bayeux - usinghttp://cometd.org/
 
  Are you using these in real projects? Or other push protocols? Thanks!
 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 like ListView with custom Adapter.
 
  On Oct 26, 7:53 am, Maxood maqs...@salsoft.net wrote:
 
 
 
   I am developing an application in which a user keeps on scrolling and
   each view displays a single text. The views are not suppose to end.
   How can i achieve that?
 
   Hope my question is clear.Waiting for the reply
 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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, PhoneStateListener.LISTEN_CALL_STATE);

but what I need to have is to capture the event when the calling party
terminated the call.

tia,
Marc

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 m...@tomgibara.com wrote:

 I never received an email (spammy or otherwise) but it looks from the list
 that Google has published that my Daisy Garden entry has made it into the
 top 200. Thanks to everyone who rated it, congratulations to the other
 entrants who are still in the running and commiserations to those that
 aren't (if it makes you feel better, remember that the remaining 200
 applications aren't winners yet).

 Tom.

 2009/11/5 GodsMoon godsm...@gmail.com

 Since the Android Challenge Group seems to be closed I'll post here.
 What results did you get from Google?

 --
 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...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 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...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 to install manually happens VERY frequently.  Only way out
 is to skip and hope that the next app works.  The FC is actually being
 thrown from com.android.vending

 I'm on a G1, non-root, T-Mobile carrier, with 1.6 installed, EDGE,
 with WiFi enabled (and connected).

 --
 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...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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

2009-11-08 Thread Marc Lester Tan
Great thanks for the tip Craig, opening the Market will automagically
download all the stalled ADC2 entries, though I need to open Downloads
section first.

Marc

On Sun, Nov 8, 2009 at 3:50 PM, CraigsRace craig...@gmail.com wrote:

 There is a work around.  If the app to review doesn't install, 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 work and
 FCs when installed manually. ArghOn Sat, Nov 7, 2009 at 1:37 AM, dadical
 keyes...@gmail.comwrote: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 to install manually happens VERY frequently.  Only way out
  is to skip and hope that the next app works.  The FC is actually being
  thrown from com.android.vending
  I'm on a G1, non-root, T-Mobile carrier, with 1.6 installed, EDGE,
  with WiFi enabled (and connected).
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email toandroid-develop...@googlegroups.com
  To unsubscribe from this group, send email
 toandroid-developers+unsubscr...@googlegroups.comtoandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 groups.google.com/group/android-developers?hl=en
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email toandroid-develop...@googlegroups.com
  To unsubscribe from this group, send email
 toandroid-developers+unsubscr...@googlegroups.comtoandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group athttp://
 groups.google.com/group/android-developers?hl=en

 --
 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...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 wrote:
  I don't understand it...
  Yesterday I had 860 downloads and today I have 400. Why?
  How can the number of downloads decrease?
  How can I find the real numbers?
 
  Evi

 --
 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...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 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...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[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:


 Sorry reposting here. It seems that I'm not able to post to Android
 Discuss r my posts are getting ignored

 I have 2 apps (DroidIn) on Market for some time now. Lately I start
 getting offers from Taiwanese/Chinese mobile leaders companies
 offering to host and resell the app. They are offering to help with
 translation and provide links to some Chinese-language sites like
 this http://android.sj.91.com/. I followed up with one of the offers
 and got bunch of documents and generally my cut would be 40% before
 taxes. Now, 40% to 2 billion people is not such a bad deal but I'm
 wondering if someone already has similar experience and is this
 possible some sort of scam?

 I'm not implying anything these may be legit offers, but one cannot be
 too careful these days
 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 name by passing latitdue and
 longitude in android? Which api i will have to use.

 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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:state_focused=true android:state_pressed=true
android:drawable=@drawable/focusedpressed /
item android:state_focused=false android:state_pressed=true
android:drawable=@drawable/pressed /
item android:drawable=@drawable/defaultbutton /
/selector

then on your button, use this xml as your background.
(background=@drawable/sample)


check out this tutorial from anddev.org about selectors

http://www.anddev.org/tinytutcustom_button_backgrounds-better_imagebutton-t4298.html

-Marc


On Sun, Aug 23, 2009 at 3:13 PM, sdphil phil.pellouch...@gmail.com wrote:


 how do I specify different images for an ImageButton when the state
 changes (i.e. pressed).

 ImageButton android:id=@+id/Btn1
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:src=@drawable/btn1
 android:background=@color/transparent/

 In a standard button the color changes to orange when pressed, I'd
 like to change a custom image button with a different image.

 tia.
 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 pricey ($300/license):
 http://www.artfulbits.com/Android/aiCharts.aspx

 Thanks a lot.
 N.N.


 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 Aug 25, 5:43 am, for android forandr...@gmail.com wrote:
 
 
 
 
 
   What is the approx time taken to register as a developer and to be
   able to publish apps on the Android Market?
   its simple 15 mins max.
   Do we need to wait for any approval from google to be able to publich
   the apps once registered as a developer and a Google checkout
   merchant?
   No.u just need to agree to the terms and conditions
 
   On Tue, Aug 25, 2009 at 5:11 PM, soniya soniy...@gmail.com wrote:
 
Hi All
 
What is the approx time taken to register as a developer and to be
able to publish apps on the Android Market?
 
Do we need to wait for any approval from google to be able to publich
the apps once registered as a developer and a Google checkout
merchant?
 
Thanks in advance
Soniya- Hide quoted text -
 
   - Show quoted text -
 
  I registered in 1 minute.- Hide quoted text -
 
  - Show quoted text -
 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



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 mannishga...@gmail.com wrote:

 Hi All,

 In my application, I will call webservices which are written using
 REST and returning JSON object rather than XML.
 My Question is it that Is Android support them? Sending an request to
 REST web services and rendering its response is same as HTTP request
 or something different.

 I haven't much idea about REST and JSON and haven't much time to find
 out it by myself. Thats why i am posting this question. If someone has
 worked earlier please help me.

 --
 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...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[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 contrast to too many of
 the widgets being put on the market, I'm trying to actually conform to
 the widget design guidelines (http://developer.android.com/guide/
 practices/ui_guidelines/widget_design.htmlhttp://developer.android.com/guide/%0Apractices/ui_guidelines/widget_design.html).
  Unfortunately, in order
 to do this properly and look right, the widget needs to be able to
 instantly change layouts when the screen changes orientation from
 portrait to landscape.

 Thus far, the *only* way that I've found to detect and react to the
 orientation change is to keep a service running at all times with an
 onConfigurationChanged method that updates the widget in a timely
 manner.  Unfortunately, this leaves an expensive process constantly
 cluttering up memory and pretty much defeats the broadcast-based
 design of the widget mechanism.

 It seems that there's got to be a better (and more efficient) way to
 meet this basic requirement.  Am I missing something obvious?

 -Robert


 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 haven't tried this yet. Just my idea.

Marc


2. Usage based ( 100 invocations of the application).

On Wed, Jun 3, 2009 at 5:24 PM, aayush abhatnagar192...@gmail.com wrote:


 Hello list..

 I had a query:

 If i wish to attach an evaluation license to my android application,
 how can that be achieved ? As for example, i may want to provide an
 evaluation license based application that expires in one of the
 following ways:

 1. Time based (30 days etc)

 2. Usage based ( 100 invocations of the application).

 Once the application's license expires, i need to restrict access to
 it from the user.

 Thanks in advance..

 Best Regards

 aayush
 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



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 file but the file size
 is only 50kb so it is almost instantaneous. Is worth worth to put it
 on async? Or I'm asking for trouble and should keep it simple?

 --
 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...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[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
com.android.ide.eclipse.adt.internal.project.ProjectChooserHelper$NonLibraryProjectOnlyFilter.accept(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.project.BaseProjectHelper.getAndroidProjects(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.project.BaseProjectHelper.getAndroidProjects(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.project.ProjectChooserHelper.getAndroidProjects(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.wizards.export.ProjectCheckPage.handleProjectNameChange(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.wizards.export.ProjectCheckPage.access$0(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.wizards.export.ProjectCheckPage$1.modifyText(Unknown
Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:167)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3543)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1250)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1273)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1254)
at org.eclipse.swt.widgets.Text.setText(Text.java:1801)
at
com.android.ide.eclipse.adt.internal.wizards.export.ProjectCheckPage.onShow(Unknown
Source)
at
com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard$ExportWizardPage.setVisible(Unknown
Source)
at
org.eclipse.jface.wizard.WizardDialog.showStartingPage(WizardDialog.java:1199)
at
org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:551)
at org.eclipse.jface.window.Window.create(Window.java:431)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
at org.eclipse.jface.window.Window.open(Window.java:790)
at
com.android.ide.eclipse.adt.internal.wizards.actions.ExportWizardAction.run(Unknown
Source)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3543)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1250)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1273)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1079)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3441)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3100)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

*Session Data:*
eclipse.buildId=unknown
java.version=1.6.0_20
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product -keyring
/Users/marc/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product
org.eclipse.epp.package.jee.product -keyring /Users/marc/.eclipse_keyring
-showlocation

Anyone experiencing the same problem? Any resolution? Thanks in advance.

Regards,
Marc

-- 
You 

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

2010-05-25 Thread Marc Lester Tan
Thanks Xav, you are correct, I have broken projects in the workspace. Fixing
them or closing those projects did the trick.

-Marc

On Wed, May 26, 2010 at 5:54 AM, Xavier Ducrohet x...@android.com wrote:

 Ah thanks for the stack trace. I was trying to reproduce I couldn't,

 Do you have Android projects in your workspace that are broken? (ie
 they don't have a valid target?) That would be a reason for the NPE to
 show up.

 We have fixed the error already. I might look into pushing the fix
 sooner than later.

 Xav

 On Tue, May 25, 2010 at 2:48 PM, TAKEphONE shimo...@gmail.com wrote:
  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:*
  java.lang.NullPointerException
  at
 
 com.android.ide.eclipse.adt.internal.project.ProjectChooserHelper$NonLibrar
 yProjectOnlyFilter.accept(Unknown
  Source)
  at
 
 com.android.ide.eclipse.adt.internal.project.BaseProjectHelper.getAndroidPr
 ojects(Unknown
  Source)
  at
 
 com.android.ide.eclipse.adt.internal.project.BaseProjectHelper.getAndroidPr
 ojects(Unknown
  Source)
  at
 
 com.android.ide.eclipse.adt.internal.project.ProjectChooserHelper.getAndroi
 dProjects(Unknown
  Source)
  at
 
 com.android.ide.eclipse.adt.internal.wizards.export.ProjectCheckPage.handle
 ProjectNameChange(Unknown
  Source)
  at
 
 com.android.ide.eclipse.adt.internal.wizards.export.ProjectCheckPage.access
 $0(Unknown
  Source)
  at
 
 com.android.ide.eclipse.adt.internal.wizards.export.ProjectCheckPage$1.modi
 fyText(Unknown
  Source)
  at
 org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:167)
  at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3543)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1250)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1273)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1254)
  at org.eclipse.swt.widgets.Text.setText(Text.java:1801)
  at
 
 com.android.ide.eclipse.adt.internal.wizards.export.ProjectCheckPage.onShow
 (Unknown
  Source)
  at
 
 com.android.ide.eclipse.adt.internal.wizards.export.ExportWizard$ExportWiza
 rdPage.setVisible(Unknown
  Source)
  at
 
 org.eclipse.jface.wizard.WizardDialog.showStartingPage(WizardDialog.java:11
 99)
  at
 
 org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:551)
  at org.eclipse.jface.window.Window.create(Window.java:431)
  at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
  at org.eclipse.jface.window.Window.open(Window.java:790)
  at
 
 com.android.ide.eclipse.adt.internal.wizards.actions.ExportWizardAction.run
 (Unknown
  Source)
  at
 org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
  at
 
 org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Actio
 nContributionItem.java:584)
  at
 
 org.eclipse.jface.action.ActionContributionItem.access$2(ActionContribution
 Item.java:501)
  at
 
 org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContrib
 utionItem.java:411)
  at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3543)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1250)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1273)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
  at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1079)
  at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3441)
  at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3100)
  at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
  at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
  at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
  at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
  at
 
 org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332
 )
  at
 
 org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
  at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
  at
 
 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication
 .java:113)
  at
 
 org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java
 :194)
  at
 
 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication
 (EclipseAppLauncher.java:110)
  at
 
 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseA
 ppLauncher.java:79)
  at
 
 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368
 )
  at
 
 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179
 )
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method

[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 for processing
3. ProcessingThread post updates to the UIThread for the result of the 
processing.

Is there other way or pattern to do this kind of scenario? Thanks in advance.

Regards,
Marc

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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 baseband/radio version number but I can't find it.

 It's visible in the menu Settings/About Phone but not in the API !?

 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



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

2009-07-15 Thread Marc Lester Tan
oooh, android.os.SystemProperties.java is not available from the API which
basically do native calls to get the baseband version.

SystemProperties.java

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/os/SystemProperties.java;h=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

 -Marc


 On Wed, Jul 8, 2009 at 10:10 PM, Murphy murphy2...@gmail.com wrote:


 I want to read the baseband/radio version number but I can't find it.

 It's visible in the menu Settings/About Phone but not in the API !?

 



--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 one line.

I assume that this is a bug in DDMS. So far the only way to get this
resolved is to restart Eclipse and have the device connected. Then
DDMS is able to pickup correctly the logcat again.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Jul 16, 8:53 am, Anna PS annapowellsm...@googlemail.com wrote:  ...
usually happens after a f...

--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 discovering, pairing
 and client rfcomm connections management. Currently service discovery
 and other feature are not supported. This library does not require a
 rooted device: it works with any device with its bundled firmware
 (I've made tests ona a T-Mobile G1 with cupcake and a TIM [Telecom
 Italia Mobile] Dream with firmware 1.1).

 It is an experimental library and, since it is deeply based on
 reflection, it may stop work suddenly if something changes in future
 release of Android. Nevertheless, it is suitable for having fun with
 Bluetooth and using external devices such as LEGO robots, scan reader,
 Arduino Bluetooth and so on.

 Library source code, binaries and Javadoc have been published under
 Apache 2.0 License at:

 http://code.google.com/p/android-bluetooth/

 and a sample application (called Bluetooth Samples) has been
 published on the Android Market. I expect to improve the library in
 the next weeks: comments and contributions are welcome.

 Have fun with Android and Bluetooth!

 Ciao,
 Stefano
 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



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 are  options to
 adjust things like gravity, friction, and elasticity.

  The physics engine is a 100% Java port of the open source JigLib
 physics engine.

  However, I only have a Motorola Droid, and I don't know if it will
 work on any other phone.   The project is set to use Android 1.6.

  Before I put it in the market, I was hoping to get some feedback
 from the developer community here.

  If anybody is interested in 3D stuff or physics simulation, you can
 give the app a try.   The link is on the follow page.   There is a
 screen shot there so you can get an idea of what the app is.


 http://www.pieintheskysoftware.com/menuitem-resources-pie-3d-physics-1-0.html

 -Kevin

 --
 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...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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 automatically when we call add() ?
 so i attach alParent.addView(mCameraView);  first and then
 alParent.addView(view);
 so isn't it means mCameraView at index 0, and view at index 1?
 but still i cannot see the opengl object, only camera preview

 when i change   alParent.addView(view);  first and then
 alParent.addView(mCameraView);
 i see the opengl object only...

 On Mar 25, 1:29 pm, rollbak roll...@gmail.com wrote:
  Hello,
 
  If you want one on top of the other you must use a FrameLayout and
  then give different z index to each when adding them as childs.
 
  regards,
 
  Lucas
 
  On Mar 25, 3:07 am, sleith raysle...@gmail.com wrote:
 
   Hi,
   i tried to have a GLSurfaceView on top of camera surface, so that i
   can draw gl objects with camera preview as background.
   I tried but didn't works. the view i has is something like this:
 
  
 
   AbsoluteLayout alParent = new AbsoluteLayout(this);
   alParent.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,
   LayoutParams.FILL_PARENT));
 
   //CameraView extends SurfaceView implements SurfaceHolder.Callback
   mCameraView = new CameraView(this);
   mCameraView.setLayoutParams(new AbsoluteLayout.LayoutParams(
  
 AbsoluteLayout.LayoutParams.FILL_PARENT,
  
 AbsoluteLayout.LayoutParams.FILL_PARENT, 0, 0));
   alParent.addView(mCameraView);
 
   //GLView extends GLSurfaceView
   view = new GLView(this);
   view.setLayoutParams(new AbsoluteLayout.LayoutParams(
  
 AbsoluteLayout.LayoutParams.FILL_PARENT,
  
 AbsoluteLayout.LayoutParams.FILL_PARENT, 0, 0));
   alParent.addView(view);
  
 
 
   it resulting the camera preview only, the opengl is not drawn. ( i
   made sure without camera, the opengl draws cube).
   Anyone have experienced this kind of situation?
   Thanks :)

 --
 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...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 To unsubscribe from this group, send email to android-developers+
 unsubscribegooglegroups.com or reply to this email with the words REMOVE
 ME as the subject.


-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


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 Donald gdon...@gmail.com wrote:

 On Wed, Mar 31, 2010 at 3:15 PM, Abdul Mateen abmat...@gmail.com wrote:
  I said, if Moto having a 60K earning $150, why should not I earn $10/day
  with 10k install base?

 Because there are many other variables you probably aren't
 considering.. ones such as quality of the app/game, placement of the
 ads, content of the ad, fill rates, etc.  I seriously doubt you will
 find a definitive correlation between any two apps with regards to ad
 revenue.  Some of my free apps make more than my paid ones (exact same
 apps just with and without ads), and vice versa.

 I seriously doubt 60K users make anyone $150/day, especially using
 AdMob.  I've been using them for about 6 months now, so I'd have to
 see it to believe it.


 --
 Greg Donald
 destiney.com | gregdonald.com

 --
 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...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using remove me as the subject.


[android-developers] Scaling on Two Webviews

2011-03-16 Thread Marc Lester Tan
Hi,

In my application, i need to display 2 webviews inside a linearlayout in
vertical orientation. The code looks something like this on the onCreate
method of my activity:

LinearLayout container = new LinearLayout(this);
container.setOrientation(LinearLayout.VERTICAL);

WebView mWebView = new WebView(this);
WebView mWebView2 = new WebView(this);

mWebView.loadUrl(http://www.google.com;);
mWebView2.loadUrl(http://www.yahoo.com;);

container.addView(mWebView);
container.addView(mWebView2);
setContentView(container);

Now, Webview has built-in scale gesture listener and if I try to scale the
first webview (mWebView), it will scale properly but then when I try to
scale the second one (mWebview2), it doesn't scale at all but it does
receive the touch events. Note that the two webviews are displayed at the
same time 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 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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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

2011-03-21 Thread Marc Lester Tan
Hi, looks good. I've built a similar one a few months ago using the
andorid-market-api library.

Check it out http://appalert.co


On Mon, Mar 21, 2011 at 12:42 PM, Corey Ledin, LLC
coreyledin...@gmail.comwrote:

 Hi All,

 I have yet to contribute to this group just start off by saying hi and
 if you haven't heard of me I developed Beer Pong Free for the android
 and iPhone etc. Recently I was trying to find a decent app rank
 website for the android like that of all of iPhone pones with not
 really any luck besides that one app. So I said what the heck and
 built my own...
 It is still in beta / testing phase since i only started the project
 with my partner 4 days ago lol. But go check it out!

 http://androidapptracker.com

 Let me know what you think and if you have any ideas.

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Cheers,

*Marc Lester Tan *

Singapore #: +6597896575

http://www.appalert.co
http://www.appcellar.com
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 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

Re: [android-developers] Usage Statistics

2011-05-11 Thread Marc Lester Tan
Take a look at UsageStatsService.java

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=services/java/com/android/server/am/UsageStatsService.java;h=6e8f24823efe88ab649ab5e6ddb9a49e69601bca;hb=HEAD

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=services/java/com/android/server/am/UsageStatsService.java;h=6e8f24823efe88ab649ab5e6ddb9a49e69601bca;hb=HEADIt
monitors all the application resume/pause state and logs into files.

and check how the settings app is using it here:

http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=blob;f=src/com/android/settings/UsageStats.java;h=f67eeec4dd91c4ae5d31c487c61746fe21c02420;hb=HEAD

Not sure though if you can use it in your app.


On Thu, May 12, 2011 at 10:29 AM, TreKing treking...@gmail.com wrote:

 On Wed, May 11, 2011 at 8:01 PM, Edmund chang.edm...@gmail.com wrote:

 For example, if I wanted to know how many times a certain APK was
 launched. How long it was used for. And also, if I wanted to know details
 about how the APK was being used such as how many times they played a
 certain music track in a music player app or passed a certain level in a
 game, can I inject some code into the APK to register this data?


 http://code.google.com/mobile/analytics/docs/android/
 http://www.flurry.com/

 I was wondering about details like where can I retrieve this from and is it
 centralized.
 Like can one APK retrieve this data that is written by all other APKs.


 I'm not really sure what you're asking.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


  --
 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...@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
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 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

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

2011-05-12 Thread Marc Lester Tan
you can use google's tesseract and here's a writeup on how to use it on NDK:

http://www.itwizard.ro/interfacing-cc-libraries-via-jni-example-tesseract-163.html



On Wed, May 11, 2011 at 12:23 AM, Ajit basu...@gmail.com wrote:

 Hello,
 I am developing a project which takes a natural scene image as input
 and detects text,recogniss and converts it to speech. i have done it
 using matlab. now i want it to go real time
 i,e a mobile application, which shd be able to take images from camera
 of phone, and sent it to matlab, the matlab shd process the image,
 return back the text file containing recognised text, and the app shd
 convert the text present in received file to speech(text to speech).
 can it be done??? if yes. pls let me  know..:)
 thank you

 --
 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...@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
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 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

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

http://www.proudlypinoy.org/



On Fri, Sep 23, 2011 at 3:42 AM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 2011/9/22 Nemanja Kovačević nemanja.kovace...@pstech.rs:
  Numerous apps are collecting this data. There are apps for users to see
 how
  much time they've spent on what app, other apps use this data for
  recommendations, and so on. Although I understand your reaction...
 

 Kind of makes you wonder what's behind that full internet access
 permission...

 Kris

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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://moonphase.pendukosoftware.com
http://blogs.marctan.com

http://www.proudlypinoy.org/



On Sun, Jul 3, 2011 at 8:34 AM, Felix Garcia Lainez fgarcialai...@gmail.com
 wrote:

 Ahhh... Ok.. I was thinking on a fixed ranking by country like
 AppStore. If there are more variables like carrier, device, etc then i
 understand is possible that there are not tools for that..

 About searching manually the position i had already thought about
 that :)

 Thanks!

 On 2 jul, 19:38, John Coryat cor...@gmail.com wrote:
  One problem with rank is it can change depending on your location,
 carrier
  or even device.
 
  You can get an idea of what a rank for an app is by going into the
 market,
  selecting all apps and start counting, manually, until you find the app
  your interested in. That's pretty painful, especially if your app is
 beyond
  about 800 in overall rank as that's the maximum (or used to be) number
  listed in the all category.
 
  -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 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


-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en