[android-beginners] Re: Android 1.5 SDK now available

2009-04-27 Thread Marc Lester Tan
It works perfectly on my ADP! Still playing around with it

-Marc

On Tue, Apr 28, 2009 at 2:12 AM, Xavier Ducrohet  wrote:

>
> Hello developers,
>
> The Android 1.5 SDK, and the 1.5 images for ADP1 are now available for
> download.
>
> More information at
> http://android-developers.blogspot.com/2009/04/android-15-is-here.html
>
>
> Xav
> --
> Xavier Ducrohet
> Android Developer Tools Engineer
> Google Inc.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Rooting ADP1 holiday edition

2009-06-05 Thread Marc Lester Tan
Hi Mina,

It would be better if you head over xda and post your questions there.

http://forum.xda-developers.com/forumdisplay.php?f=448&order=desc&page=2

Regards,
Marc

On Sat, Jun 6, 2009 at 4:02 AM, Mina Shokry  wrote:

>
> Hi,
> I got an ADP1 but not from google (from ebay) and I think it is
> holiday edition that was with a google employee. when I got it, it was
> on version 1.1. In my first day with it, it notified me that an
> upgrade to 1.5 is available and it downloaded and installed it.
> Now, I found myself don't have root on terminal. when executing "adb -
> d root" I get message "adbd cannot run as root in production builds".
> and also I can not access paid applications in the android market!
> I don't know if my phone now is a developer phone or a normal phone?!!
>
> Settings -> About Phone reports this
> Model number: Android Dev Phone 1
> Firmware version: 1.5
> Kernel Version: 2.6.27-00393-g6607056 s...@sandroid #1
> Build number: CRB43
>
> how can I have root permissions on shell? have I to re-flash the
> phone? if yes, what image should I use? will I lose my installed apps
> and my configurations I did on the phone?
>
> thanks in advance.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Google Maps API Key Sign Up Page Is Broken (404)

2009-06-08 Thread Marc Lester Tan
Use this instead:

http://code.google.com/android/maps-api-signup.html

-Marc Tan

On Mon, Jun 8, 2009 at 2:28 AM, Yubr Neapow  wrote:

>
> http://code.google.com/android/add-ons/google-apis/maps-api-signup.html
>
> The link above WORKS but when you hit submit, the form action is a
> 404, not found.
>
> I need an API key for Maps; Android dev.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: 500kb OPML parsing issues

2009-06-10 Thread Marc Lester Tan
or use Pull Parser:

http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html


-Marc


On Wed, Jun 10, 2009 at 3:59 PM, Dave Bordoley  wrote:

>
> Use a SAX parser to parse the XML, see
> http://developer.android.com/reference/javax/xml/parsers/SAXParser.html.
>
> Dave
>
>
> On Tue, Jun 9, 2009 at 7:36 PM,
> renegadea...@googlemail.com wrote:
> >
> > Right this is the problem. I am trying to find specific words within
> > this large OPML file which content is
> >
> > :http://news.bbc.co.uk/rss/feeds.opml
> >
> > The file is a large list of rss feeds for various bbc news items - and
> > I need to parse it to find specific feeds.
> >
> > Currently I am doing it as follows:
> >
> >  http://pastebin.com/m15e0ea5f
> >
> > This is fairly fast if i search for say "celtic" however if you enter
> > "w00f" and run the command it will be disgustingly slow.
> >
> > Can anybody demonstrate how I can parse this opml file using the
> > android xml parsers please - because i have tried, and tried, and
> > tried and cannot get it to do it!
> >
> > Cheers
> >
> > Andy
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Developing on a G2.

2009-07-27 Thread Marc Lester Tan
Just found this on twitter:

http://twitter.com/TMobileOfficial/status/2566382164

"We can confirm that the #HTC  Hero will
now be known as the T-Mobile #G2  Touch
and yes it is planned for later this month!"

-m


On Mon, Jul 27, 2009 at 7:15 PM, Disconnect  wrote:

> Can you do me a favor and send (off the list) a quick pic of the branding?
> (Specifically the 'g2' logo/label.) Tmobile has a trademark on the 'G2' name
> and AFAIK they haven't announced anything. It'd be cool to be able to put
> info up about it..
>
>
> On Mon, Jul 27, 2009 at 12:26 AM, Mike Wolfson  wrote:
>
>>
>> I did a little development on the G2  Lack of a physical keyboard was
>> a problem for some of the tools (like putting the phone in Recovery
>> Mode, etc).
>>
>> Otherwise, for the most part there weren't any significant roadblocks
>> (the SDK works the same on both the G1 and the G2 - ie. the APIs are
>> all the same).
>>
>> I think the problems caused by lack of a physical keyboard will be
>> quickly resolved (but were significant for me).  There were already
>> some tools available that support the virtual keyboard (ie. Terminal
>> apps, etc), it just requires working a little harder to find the ones
>> that will work.
>>
>> As Disconnect mentioned, I don't believe that there is a Dev version
>> of the G2 out yet, but if you are just wanting to use your consumer
>> grade phone for development, it should work.
>>
>> On Jul 26, 6:36 pm, Dale Wiles  wrote:
>> > Is anyone developing code on a G2 phone?  If so have you run into any
>> > real world problems?
>> >
>> > I know I wouldn't be able to flash custom OS's.  Is that a real
>> > problem?  I don't have a clue how often that's needed.
>> >
>> > If anyone has had any successes or failures I'd like to hear them.
>> > I'm sure it would be useful to the rest of the group too.
>> >
>> > - Dale
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: A Racing Car App in Android

2009-09-02 Thread Marc Lester Tan
try this http://nehe.gamedev.net/ and someone already ported the tutorials
to android here http://insanitydesign.com/wp/projects/nehe-android-ports/

-Marc

On Wed, Sep 2, 2009 at 1:48 AM, Maxood  wrote:

>
> I want to develop an application that involves a racing car. The car
> obviously moves forward, backward, left and right in a 3D environment.
> I like to make such an app using OpenGL ES. Can someone refer me a
> tutorial.
>
> Thank you,
> Maxood
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Publish an ADC2 application

2009-09-08 Thread Marc Lester Tan
refactor your app to use a different package name as well as different
title.

On Tue, Sep 8, 2009 at 6:37 PM, jaaaelpumuki  wrote:

>
> HI,
> I'm trying to publish my ADC2 application in the normal market, but it
> throws me this message:
> "You have another application on Market with the same package name. Go
> to that other application, and click upgrade."
>
> So, how do i have to do?
>
> Please...
> On 6 sep, 10:46, jaaaelpumuki  wrote:
> > I published an app in the ADC2, can I publish it in the normal
> > market?
> > do I have to do any change?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Android Charts

2009-10-18 Thread Marc Lester Tan
See if this will work for you:

http://www.achartengine.org

It's free.

Marc

On Fri, Oct 16, 2009 at 8:09 PM, Vinicius Carvalho <
viniciusccarva...@gmail.com> wrote:

>
> Hello there! I'm starting with android, and the app I'm developing is
> gonna need some charts. I've looked and did not find any chart API
> (there's java4less but its too poor to worth anything). First I
> thought  I could use jfreechart, but it is entirely based on
> java.awt.image and that is not supported by android.
>
> Is there a chart api out there? or should I code the charts by hand
> (man I'm doomed)
>
> Regards
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



Re: [android-beginners] Cannot get MSISDN (phone number) but can get IMSI on HTC G3

2009-11-19 Thread Marc Lester Tan
I think some carriers don't provide the MSISDN to the handset so I guess you
shouldn't rely on it. Just use the IMSI and device id to identify the user.

Marc

On Thu, Nov 19, 2009 at 11:40 PM, rodger  wrote:

> I want to use phone number as user ID,so i want to access the phone
> number.
> in my code,  i can get IMSI (International Mobile Subscriber Identity)
> by using getSubscriberId().
> but can not get  MSISDN by using  getLine1Number(),it returns null.
>
>  my test phone is HTC G3,
> anybody can solve the problem?
>
> thanks!
>
>
>  TelephonyManager tm = (TelephonyManager) getSystemService
> (Context.TELEPHONY_SERVICE);
>
>String phoneNumber = tm.getLine1Number();
>if(phoneNumber == null || phoneNumber.trim().equals("")){
>phoneNumber = "cann't get the phone number";
>}
>
>
> // permission has been added in Manifest
>  
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
> To post to this group, send email to android-beginners@googlegroups.com
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

[android-beginners] Displaying Image Gallery

2008-09-29 Thread Marc Lester Tan
Hi folks,

I'm still learning a lot from the tutorials and sample codes. But could
anyone give some example on how to display an Image with a given URL (for
example, link from a flickr). I'm actually planning to create a gallery
pulled from an RSS feed.

Thanks in advance.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@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-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] ImageView Question

2008-09-30 Thread Marc Lester Tan
Hi all,

Can an ImageView load its content from a remote server?

-Marc

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@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-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: ImageView Question

2008-09-30 Thread Marc Lester Tan
Thanks guys, I managed to make it work by using the HttpGet and
BitmapFactory classes. However, isn't this consuming a lot of memory? It
might cause a problem when loading large number of images.

-Marc

On Tue, Sep 30, 2008 at 7:24 PM, Mark Murphy <[EMAIL PROTECTED]>wrote:

>
> Marc Lester Tan wrote:
> > Can an ImageView load its content from a remote server?
>
> Not directly, in that there is no setImage() variant that takes a URL,
> IIRC.
>
> However, I believe others have had success using a combination of
> HttpUrlConnection and BitmapFactory to download a graphic and turn it
> into a Bitmap, which can then be passed to the ImageView. I have yet to
> try this technique myself.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.3 Published!
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@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-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Any good Book on Android?

2008-09-30 Thread Marc Lester Tan
Hi folks,

Any suggestion for a nice, newbie-friendly Android book?

-Marc

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@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-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: ImageView Question

2008-09-30 Thread Marc Lester Tan
Thanks a lot!

On Tue, Sep 30, 2008 at 7:52 PM, Mark Murphy <[EMAIL PROTECTED]>wrote:

>
> Marc Lester Tan wrote:
> > However, isn't this consuming a lot of memory?
>
> Yes.
>
> > It might cause a problem when loading large number of images.
>
> Yes. Of course, that's the case no matter where the images come from. If
> they were on the SD card, for example, they still have to be loaded into
> memory for display purposes.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.3 Published!
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@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-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Landscape mode for the Emulator?

2008-10-05 Thread Marc Lester Tan
Hi folks,

Is it possible to change the emulator's view to landscape?

Thanks in advance.

Marc

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@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-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Displaying CR LF on TextView

2008-10-07 Thread Marc Lester Tan
Hi Folks,

My application needs to display CR LF (new line) on the TextView. Currently
it just display a small square box instead of a new line. My data is coming
from an RSS feed and my application is parsing the text properly. It's just
that the TextView doesn't display CR LF characters property. Any idea on how
to fix this?


Thanks in advance.

Marc

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@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-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: problem in coding

2008-10-12 Thread Marc Lester Tan
if you use IDE and you've used the Adroid wizard to create your project,
then R.java will automagically be generated when you modify your string.xml

-m

On Mon, Oct 13, 2008 at 2:32 PM, baba vali <[EMAIL PROTECTED]> wrote:

>
> hi
> how can we configure strings.xml
> is it that just by saving strings in string.xml
> it will be updated automaticallj in R.java
>
> Regards
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@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-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] no XMPP support?

2008-10-26 Thread Marc Lester Tan
Hi Folks,

I've search Android Docs and it seems there is really no support for XMPP?
Is it possible to use third party library?

-Marc

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@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-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Novice programmers lets build together.

2008-10-29 Thread Marc Lester Tan
Hi folks,

i'm using java for 5 years now though still a newbie in developing for
android and I'm interested to team up with anyone for a project.

Marc



On Tue, Oct 28, 2008 at 11:19 PM, DSKG87 <[EMAIL PROTECTED]> wrote:

>
> hey there,
> i'm new to programming and wanted to know anyone out there thats also
> new or has some experience and want to learn the language together.
> Forums are great but i need immediate stimulation  since i tend to get
> bored easily. Right now, i am almost done reading the java for dummies
> and highly recommend it if your looking for something to really get
> you into understanding the java.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@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-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Soap Xml parsing

2008-11-27 Thread Marc Lester Tan
Hi,

I'm still new with android but hopefully this snippet will help you:

Let's say you have your Service class:

  public class Service{
> private String serviceId
> private String name
> private String deviceId
>
> // GETTERS AND SETTERS omitted
> }
>


then you can use DOM parser to parse your xml:

DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
> DocumentBuilder db = dbf.newDocumentBuilder();
> Document dom = db.parse(is);
>
> List services = parseDocument(dom);
>

   ..

>
>
> private static ArrayList parseDocument(Document dom) {
> ArrayList list = new ArrayList();
>
> Element docEle = dom.getDocumentElement();
> if (docEle != null) {
> NodeList nl = docEle.getElementsByTagName("service");
> if (nl != null && nl.getLength() > 0) {
> for (int i = 0; i < nl.getLength(); i++) {
> Element el = (Element) nl.item(i);
> Service e = getService(el);
> list.add(e);
> }
> }
> }
> return list;
> }
>
>
> private static Service getService(Element ele) {
> Service service = new Service();
> service.setName(getTextValue(ele, "name"));
> service.setServiceId(getTextValue(ele, "serviceid"));
> service.setDeviceId(getTextValue(ele, "deviceid"));
>
> return service;
> }
>
>
> private static String getTextValue(Element ele, String tagName) {
> String textVal = null;
> NodeList nl = ele.getElementsByTagName(tagName);
> if (nl != null && nl.getLength() > 0) {
> Element el = (Element) nl.item(0);
> if(el.getFirstChild() != null){
> textVal = el.getFirstChild().getNodeValue();
> }
> }
>
> return textVal;
> }
>


-Marc

On Thu, Nov 27, 2008 at 4:01 PM, baba vali <[EMAIL PROTECTED]> wrote:

>
>
>
>  hi all,
>>
>> can anyone share the code for parsing Soap Xml to get data from it
>>
>>
>>
>> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="
>> http://www.w3.org/2001/XMLSchema"; xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance"; xmlns="
>> http://schema.cloudengines.com/schema/2008";>
>> 
>> 
>> 
>> 
>> da17923ae45b0b55f89eba6cd850b026
>> 0
>> 1
>> xce:webdav
>> Cloud Engines
>> LINUXKUROPRO0.9.9.62
>> 
>> da17923ae45b0b55f89eba6cd850b026
>> xce:unknown
>> KUROBOX-PRO
>> LINUXKUROPRO0.9.9.62
>> 0
>> 45820d44809cf01d29ede34f3033fc40
>> 
>> 45820d44809cf01d29ede34f3033fc40
>> [EMAIL PROTECTED]
>> [EMAIL PROTECTED]
>> 
>>
>> 1
>> i want to get service id,deviceid,name of service
>>
>> i have written code but i am getting the device name
>>
>> observe which also have same tag name ..
>>
>> i want to get service name
>>
>
>i have also used 2 name variables and displayed one value getting null
>
>>
>> pls anyone can help me out
>>
>> i have been working on this problem since yesterday
>>
>> regards
>>
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@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-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Unable to download Eclipse plugin?

2008-11-30 Thread Marc Lester Tan
got the same problem as well. I just downloaded the zip file and install
from there.

On Sun, Nov 30, 2008 at 10:20 AM, Jesper Lundgren <[EMAIL PROTECTED]>wrote:

> i tried http too, but no luck with that either. I did however find that
> google had a zip dowload of the plugin so i could just install it manually.
>
>
> On Sat, Nov 29, 2008 at 11:01 PM, Ralf <[EMAIL PROTECTED]> wrote:
>
>>
>> Try using http instead of https. Lots of people have this issue.
>>
>> R/
>>
>> On Fri, Nov 28, 2008 at 10:06 AM, Jesper Lundgren <[EMAIL PROTECTED]>
>> wrote:
>> > Hi, i am unable to download the ADT plugin for eclipse from
>> >
>> > https://dl-ssl.google.com/android/eclipse/
>> >
>> >
>> > I was wondering if there was anyone else with this problem? the site
>> seems
>> > down to me.
>> >
>> >
>> > >
>> >
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@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-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] MediaPlayer Volume Range

2009-01-07 Thread Marc Lester Tan
Hi folks,

I just want to ask if somebody knows the usable range for the MediaPLayer's
volume levels? The doc just says it is a raw scalar and the UI should scale
logarithmically. An example would be helpful.

Thanks in advance.

-Marc

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: MediaPlayer Volume Range

2009-01-08 Thread Marc Lester Tan
Thanks Dave. Although when I tried putting 100 in the setVolume method

clickSound.setVolume(100, 100);

The volume level in the emulator seems to be louder when compared to 1.0.
Any idea?

-Marc

On Thu, Jan 8, 2009 at 10:39 AM, Dave Sparks wrote:

>
> The range is 0 to 1. You can use any increment you want to create a
> logarithmic volume scale, just make full volume 1.0. Multiply be a
> scalar less than 1.0 to get the next lower volume. Multiply that
> volume by the same scalar to get the next one. Repeat until you have
> enough values.
>
> The number you choose for your multiplier will vary according to
> purpose. For example, the Android music volume control is much finer
> grained (32 steps?) than the notification volume control (8 steps?).
> To get a smooth fade, you probably want to use 1dB or less (1dB =
> ~0.89).
>
> On Jan 7, 3:04 am, "Marc Lester Tan"  wrote:
> > Hi folks,
> >
> > I just want to ask if somebody knows the usable range for the
> MediaPLayer's
> > volume levels? The doc just says it is a raw scalar and the UI should
> scale
> > logarithmically. An example would be helpful.
> >
> > Thanks in advance.
> >
> > -Marc
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: MediaPlayer Volume Range

2009-01-08 Thread Marc Lester Tan
So should we report that? Any reaction, google employees?

-M


On Fri, Jan 9, 2009 at 11:48 AM, Dave Sparks wrote:

>
> I took a quick look at the code, and it looks like we're not clamping
> the values. If I'm reading the code correctly - not easy because there
> are a lot of layers between the Java client and the audio output - it
> looks like some nasty wrapping effects will occur if you use values
> higher than 1.0. I would consider that a bug in the code.
>
> I suggest sticking to values between 0 and 1.
>
> On Jan 8, 3:41 am, "Marc Lester Tan"  wrote:
> > Thanks Dave. Although when I tried putting 100 in the setVolume method
> >
> > clickSound.setVolume(100, 100);
> >
> > The volume level in the emulator seems to be louder when compared to 1.0.
> > Any idea?
> >
> > -Marc
> >
> > On Thu, Jan 8, 2009 at 10:39 AM, Dave Sparks  >wrote:
> >
> >
> >
> > > The range is 0 to 1. You can use any increment you want to create a
> > > logarithmic volume scale, just make full volume 1.0. Multiply be a
> > > scalar less than 1.0 to get the next lower volume. Multiply that
> > > volume by the same scalar to get the next one. Repeat until you have
> > > enough values.
> >
> > > The number you choose for your multiplier will vary according to
> > > purpose. For example, the Android music volume control is much finer
> > > grained (32 steps?) than the notification volume control (8 steps?).
> > > To get a smooth fade, you probably want to use 1dB or less (1dB =
> > > ~0.89).
> >
> > > On Jan 7, 3:04 am, "Marc Lester Tan"  wrote:
> > > > Hi folks,
> >
> > > > I just want to ask if somebody knows the usable range for the
> > > MediaPLayer's
> > > > volume levels? The doc just says it is a raw scalar and the UI should
> > > scale
> > > > logarithmically. An example would be helpful.
> >
> > > > Thanks in advance.
> >
> > > > -Marc
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---