[android-developers] Re: What is the difference between onOptionsItemSelected and onMenuItemSelected?

2008-12-01 Thread Guillaume Perrot
Just use onOptionsItemSelected if you just want to react on the panel menu
item clicks.

onMenuItemSelected seems to always be called with the featureID
FEATURE_OPTIONS_PANEL, the context menu is handled in another way. So
overriding onOptionsItemSelected is simplier.
onOptionsItemSelected must have been created for convenience purpose (or for
the adapter design pattern purpose).

2008/12/1 monkeypipi [EMAIL PROTECTED]


 Thanks Guillaume.

 onMenuItemSelected() is also implemented in Activity class, right?

 In the notepad tutorials, both methods appeared. Exercise 1 uses the
 onOptionsItemSelected, while Exe 2 uses onMenuItemSelected. I am not
 quite understand how to get the featurID and pass it to
 onMenuItemSelected().

 On Nov 29, 9:29 pm, Guillaume Perrot [EMAIL PROTECTED] wrote:
  onMenuItemSelected comes from the Window.Callback class.
  onOptionsItemSelected is introduced by the Activity class (which
  implements Window.Callback) and is called by the implementation of
  onMenuItemSelected.
  So the difference is the abstracting level.
 
  Copied from doc:
  Default implementation of onMenuItemSelected(int, MenuItem)  for
  activities. This calls through to the new onOptionsItemSelected
  (MenuItem) method for the FEATURE_OPTIONS_PANEL  panel, so that
  subclasses of Activity don't need to deal with feature codes. 
 
  On Nov 29, 10:23 am, monkeypipi [EMAIL PROTECTED] wrote:
 
   Any difference? Thank you for your 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Is it possible to start an remote activity which is loaded by classLoader

2008-12-01 Thread Ernest

Hello,everyone.
   I have a question: I can get an Activity class by classLoader which
can't be declared in the local Manifest.xml.I want to  start the
activity in this way:
  Intent intent = new Intent(this, xxx.class);(xxx.class is the remote
activity which loaded by classLoader)
  startActivity(intent);
But it can't make it work well,because the activity is not declared in
local AndroidManifest.xml.
So how can I start the remote Activity then?Thank you very much.
Best Regards

--~--~-~--~~~---~--~~
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] Re: Whether is android compatible with GWT?

2008-12-01 Thread nanbo jia
On Mon, Dec 1, 2008 at 3:32 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote:


 I write a  simple web application using GWT,  it run successfully
 using IE and firefox, but It always return error when I browse using
 Android, I try to find out problem, but it seems It have not special
 thing.  please give me your comments.
 below is the error hint copy from tomcat's log:
 2008-11-27 23:39:16 org.apache.catalina.core.ApplicationContext log
 ÑÏÖØ: Exception while dispatching incoming RPC call
 java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.extract
 (ServerSerializationStreamReader.java:617)
at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readInt
 (ServerSerializationStreamReader.java:432)
at

 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.prepareToRead
 (AbstractSerializationStreamReader.java:38)
at

 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead
 (ServerSerializationStreamReader.java:383)
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
 (RemoteServiceServlet.java:163)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
 (RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
 (ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
 (ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke
 (StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke
 (StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke
 (StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke
 (ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke
 (StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service
 (CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process
 (Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol
 $Http11ConnectionHandler.process(Http11Protocol.java:584)
at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
 447)
at java.lang.Thread.run(Unknown Source)
 
 I have known, it should update GWT to 1.5.3, I will check this, if ok, I
will mark here for avoiding other guys be puzzled by this.

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



[android-developers] Re: Is it possible to start an remote activity which is loaded by classLoader

2008-12-01 Thread Dianne Hackborn
You don't need any kind of class, just set the desired ComponentName.

On Mon, Dec 1, 2008 at 12:41 AM, Ernest [EMAIL PROTECTED] wrote:


 Hello,everyone.
   I have a question: I can get an Activity class by classLoader which
 can't be declared in the local Manifest.xml.I want to  start the
 activity in this way:
  Intent intent = new Intent(this, xxx.class);(xxx.class is the remote
 activity which loaded by classLoader)
  startActivity(intent);
 But it can't make it work well,because the activity is not declared in
 local AndroidManifest.xml.
 So how can I start the remote Activity then?Thank you very much.
 Best Regards

 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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] Is there any documentation of RIL layer architecture in android

2008-12-01 Thread sunil kumar
Hi
Is there any documentation available on net for RIL layer in android.

Regards
Sunil.

--~--~-~--~~~---~--~~
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] Re: Returning to my application after a call ends

2008-12-01 Thread shimo...@gmail.com

Hi,

Can't I do something while in the CALL_STATE notification callback ?
It's being called no matter what the user did and what app he/she
is in right now.

I was able to launch a 3rd application (the snake game) from within
that callback, but not launch 'myself'.

Thanks.


On Dec 1, 3:35 am, Dianne Hackborn [EMAIL PROTECTED] wrote:
 There probably isn't a way to do this -- during the call, the user could
 have left it, gone to another application, returned to your own, closed it,
 gone home, and hung up the call while not even in the in-call screen.

 On Sun, Nov 30, 2008 at 12:27 AM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote:



  Hi,

  I want to return to my own application after a call originated from
  within it ends.

  I have implemented the notification to get the call state change to
  IDLE, and managed to launch another app from there, but not to launch
  my own app.

  Is this doable ?

  TIA

 --
 Dianne Hackborn
 Android framework engineer
 [EMAIL PROTECTED]

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
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] Re: How to integrate c code with java code

2008-12-01 Thread Amit

I want to know that if i write some piece of code in any languagge
may
be C or even Java,
how can i integrate it in android SDK. How can it be called like
other
android APIs.


For example, if i write some framework like video playback frame work
in any language,
how can it be integrated with android framework so that applications
can make use of it like other APIs.
Are there any specifications for such code to be written.


If it cant be done this way, can u tell me if there is a way possible
for me to integrate it with my local SDK
so that my applications can make use of it. Does eclipse provide any
help in integratiing such source code.


Any Help Appreciated


Thanks  Regards
Amit


On Nov 28, 10:38 pm, Robert Green [EMAIL PROTECTED] wrote:
 You can't.  The device will only run java using the supplied API.

 On Nov 28, 4:00 am, Amit [EMAIL PROTECTED] wrote:



  Hello friends,

  Can u plz tell that if i want to write some piece of code for android
  in c or c++, how can i integrate the code with java code.

  Any help appreciated

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



[android-developers] Wifi Ip Address

2008-12-01 Thread Andrea

How can I get the Ip address assigned by a WiFi network to which my
device is 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: NumberPicker

2008-12-01 Thread Guillaume Perrot

The only way I know is to extract it from the android source code.
http://source.android.com/
Have fun ^^

On Nov 30, 8:47 pm, bw [EMAIL PROTECTED] wrote:
 Hi,

 Is there a way to get the NumberPicker widget used in Date and Time
 pickers?

 -Ben
--~--~-~--~~~---~--~~
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] How to i detect the click on task bar.

2008-12-01 Thread ena

I want to know how to detect the click on task bar???
--~--~-~--~~~---~--~~
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] Re: Media Player Error -38,0

2008-12-01 Thread David Given

Mr Chaloo wrote:
 Hi,
 Have you found the solution of this error?
 I am getting the same problem with mid sound playing.
 Please reply me asap.

This is the generic 'I'm confused, help me' error code. -38 corresponds
in the source code to 'unknown error'. It seems to appear for a whole
variety of reasons. There's no real way of figuring out what's going on
other than to examine your code and make sure you're doing everything in
the right order. Even then the error appear now and again on stream
start, for me; I catch it and reinitialise the MediaPlayer, and the next
time round it usually works.

-- 
David Given
[EMAIL PROTECTED]

--~--~-~--~~~---~--~~
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] Long click on list activity item

2008-12-01 Thread Thao

Hi all,

I have an Activity that implements a ListActivty. In there, I have a
list of item that is wrapped by a custom adapter.

I would like to enable long click on each item in my list, but I can't
figure out how to do this...Could someone give an example please ?

Thank.
--~--~-~--~~~---~--~~
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] Re: How about making an internet-less GPS system?

2008-12-01 Thread Fred Grott(shareme)

Thank you Xavier I did not realize that ..it helps me in my Loopt
clone for Android :)

On Nov 30, 7:28 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
 You Download The Whole Map It Will Work It Also Works With Your GPS.
 Great On BlackBerrys!

 On 11/30/2008, joshv [EMAIL PROTECTED] wrote:





  Xavier, I think the point is to have something that works even when
  data networks are not available.  Google Maps won't work without a
  data network.

  -josh

  On Nov 30, 3:55 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
  But there is also Google Maps on the phones!

  Xavier A. Mathews
  Student/Browser Specialist/Developer/Web-Master
  Google Group Client Based Tech Support Specialist
  Hazel Crest Illinois
  [EMAIL PROTECTED]@[EMAIL PROTECTED]
  Fear of a name, only increases fear of the thing itself.

  On Sun, Nov 30, 2008 at 12:28 AM, Vendetta [EMAIL PROTECTED] wrote:

   Just as normal GPS systems, how about having local area maps saved
   onto the micro SD instead of having to use google maps via internet?

   For instance, I'm lost and somehow 3g doesn't work and I don't have
   any other type of internet access. Wham! I'll use my offline normal
   GPS system!

   I think this app would be awesome, be sure to make one for Dallas, TX
   first! 3

 --
 Xavier A. Mathews
 Student/Browser Specialist/Developer/Web-Master
 Google Group Client Based Tech Support Specialist
 Hazel Crest Illinois
 [EMAIL PROTECTED]@[EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.
--~--~-~--~~~---~--~~
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] Re: How about making an internet-less GPS system?

2008-12-01 Thread Xavier Mathews

No Problem :)

On 12/01/2008, Fred Grott(shareme) [EMAIL PROTECTED] wrote:

 Thank you Xavier I did not realize that ..it helps me in my Loopt
 clone for Android :)

 On Nov 30, 7:28 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
 You Download The Whole Map It Will Work It Also Works With Your GPS.
 Great On BlackBerrys!

 On 11/30/2008, joshv [EMAIL PROTECTED] wrote:





  Xavier, I think the point is to have something that works even when
  data networks are not available.  Google Maps won't work without a
  data network.

  -josh

  On Nov 30, 3:55 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
  But there is also Google Maps on the phones!

  Xavier A. Mathews
  Student/Browser Specialist/Developer/Web-Master
  Google Group Client Based Tech Support Specialist
  Hazel Crest Illinois
  [EMAIL PROTECTED]@[EMAIL PROTECTED]
  Fear of a name, only increases fear of the thing itself.

  On Sun, Nov 30, 2008 at 12:28 AM, Vendetta [EMAIL PROTECTED]
  wrote:

   Just as normal GPS systems, how about having local area maps saved
   onto the micro SD instead of having to use google maps via internet?

   For instance, I'm lost and somehow 3g doesn't work and I don't have
   any other type of internet access. Wham! I'll use my offline normal
   GPS system!

   I think this app would be awesome, be sure to make one for Dallas, TX
   first! 3

 --
 Xavier A. Mathews
 Student/Browser Specialist/Developer/Web-Master
 Google Group Client Based Tech Support Specialist
 Hazel Crest Illinois
 [EMAIL PROTECTED]@[EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.
 



-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.

--~--~-~--~~~---~--~~
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] Re: Android on iPhone

2008-12-01 Thread David Given

Robert Green wrote:
[...]
 1) Like Romain said - Android doesn't need multiple cores nor does the
 G1 have them.  The G1 has a multicore CPU in that it contains a
 discrete CPU and GPU but not 2 CPU cores.  The iPhone has 1 ARM CPU
 (same arch as G1) and 1 discrete GPU.

People may be being confused by the fact that the G1 is kind of phone
normally called a *two-chip* phone --- what this means is that there are
two CPU cores, one of which runs the applications, and one of which runs
the mobile radio stack. (Even though they'll be on the same piece of
silicon.) This is different from *one-chip* phones, where the same CPU
runs both the applications and the radio stack. Most Linux phones are
two-chip systems because Linux doesn't get on well with real-time work,
and mobile radio stuff is about as real-time as it gets.

On the G1, the MSM7201A is a multicore CPU combining:

- an ARM11 core
- an ARM9 core
- a QDSP4000 core
- (possibly a QDSP5000 core as well, the spec sheet is unclear whether
you get both this and the QDSP4000)
- (possibly a 3D acceleration engine; again, the spec sheet is unclear
about whether this is a separate module or just done by the DSP. A lot
of these mobile processors just bolt on a PowerVR core for the 3D
acceleration)

So it might be technically accurate to call the MSM7201A a *five* core CPU.

Regardless, Linux only sees one core, the ARM11. The radio stack runs
its own specialised OS on the ARM9. The DSPs will run *another* tiny OS
to service requests from the other processors. If there is a separate 3D
accelerator it's probably not programmable, which means it's probably
not correct to refer to it as a GPU. And all the processors will share
silicon and physical resources in a deeply incestuous manner, so you may
not be able to draw hard dividing lines between them the way you can
with PC hardware.

So the G1 could plausibly be described as a one-core two-core two-chip
single chip device. If you're used to PCs, the mobile world may seem a
little odd. And believe it or not, this is pretty *standard* for a
smartphone processor.

(Incidentally, if anyone can point me at a real datasheet for the
MSM7201A, I'd be interested to see it. All I can find are marketing puff
pieces.)

--
David Given
[EMAIL PROTECTED]

--~--~-~--~~~---~--~~
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] Re: When an app needs Google account credentials...

2008-12-01 Thread Fred Grott(shareme)

What Xavier is saying is that a server side code is needed to provide
the token currently

Possible solutions is find a 3rd party that already provides a token
via a open 3rd party api, however you may not find one that is
integrated with Google account identity

I know in my own example of Loopt clone  I can use Brightkite API  for
that but they are not integrated with the Google account identity..






On Nov 30, 6:44 pm, androidian [EMAIL PROTECTED] wrote:
 Sorry guys, I have no idea how what you're talking about relates to
 what I was asking.  I'm not talking about making a clone of Android or
 anything like that.  I'm familiar with Android development, and I am
 part the way through coding my application; my question is basically
 where can I obtain the user's authenticated token so that I may
 interact with google services?

 cheers,
 Ian
--~--~-~--~~~---~--~~
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] Re: Media Player Error -38,0

2008-12-01 Thread for android
David is right.I was getting this error,when in one of the conditions,I was
pausing the player,when the player was not playing..

On Mon, Dec 1, 2008 at 5:42 PM, David Given [EMAIL PROTECTED] wrote:


 Mr Chaloo wrote:
  Hi,
  Have you found the solution of this error?
  I am getting the same problem with mid sound playing.
  Please reply me asap.

 This is the generic 'I'm confused, help me' error code. -38 corresponds
 in the source code to 'unknown error'. It seems to appear for a whole
 variety of reasons. There's no real way of figuring out what's going on
 other than to examine your code and make sure you're doing everything in
 the right order. Even then the error appear now and again on stream
 start, for me; I catch it and reinitialise the MediaPlayer, and the next
 time round it usually works.

 --
 David Given
 [EMAIL PROTECTED]

 


--~--~-~--~~~---~--~~
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] Re: When an app needs Google account credentials...

2008-12-01 Thread dar

I'm looking for this as well, to provide access to my google app
engine applications.  I'm guessing they store the session
authorization token from AuthSub somewhere (take a look at AuthSub
here: http://code.google.com/apis/accounts/index.html).  It's probably
just a matter of understanding where the token is stored so it can be
passed into the http calls.

Hopefully Dianne, or someone else, will clarify or correct me if I'm
wrong.

On Nov 30, 7:44 pm, androidian [EMAIL PROTECTED] wrote:
 Sorry guys, I have no idea how what you're talking about relates to
 what I was asking.  I'm not talking about making a clone of Android or
 anything like that.  I'm familiar with Android development, and I am
 part the way through coding my application; my question is basically
 where can I obtain the user's authenticated token so that I may
 interact with google services?

 cheers,
 Ian
--~--~-~--~~~---~--~~
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] (Service == Process)?

2008-12-01 Thread patrick


Hi guys,

I am a little confused about the difference between services and
processes in Android. From what I understood:
 - each package may run as one process
 - therefore an activity is a process
 - a service runs in the main thread of an activity (therefore it
needs to run in the same process)
 - but from what I know a service uses another address space than the
hosting activity
 - because I don't know of another way in Linux to create a new
virtual memory space than by using a new process I assume, that a
service is actually a new process
 - how are AIDL IPC calls synchronized when they are different
processes?

I would very much appreciate any arguments/answers to any of the
statements!

Thanks,
Patrick


--~--~-~--~~~---~--~~
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] Re: When an app needs Google account credentials...

2008-12-01 Thread Fred Grott(shareme)

Looks like the first and second options listed..

Thanks for the link..

Key question is are the hooks to those library apis already in Android
Sdk?



On Dec 1, 7:29 am, dar [EMAIL PROTECTED] wrote:
 I'm looking for this as well, to provide access to my google app
 engine applications.  I'm guessing they store the session
 authorization token from AuthSub somewhere (take a look at AuthSub
 here:http://code.google.com/apis/accounts/index.html).  It's probably
 just a matter of understanding where the token is stored so it can be
 passed into the http calls.

 Hopefully Dianne, or someone else, will clarify or correct me if I'm
 wrong.

 On Nov 30, 7:44 pm, androidian [EMAIL PROTECTED] wrote:

  Sorry guys, I have no idea how what you're talking about relates to
  what I was asking.  I'm not talking about making a clone of Android or
  anything like that.  I'm familiar with Android development, and I am
  part the way through coding my application; my question is basically
  where can I obtain the user's authenticated token so that I may
  interact with google services?

  cheers,
  Ian
--~--~-~--~~~---~--~~
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] Re: SharedPreferences problem

2008-12-01 Thread dar

Is there an exception thrown if the ... next time it is read it is
unable to parse the truncated file.?

If so, we could catch the exception and explain to the users that an
error occurred reading the preferences, therefore we need to collect
them again, or reset their preferences to the defaults.

On Dec 1, 12:41 am, Dianne Hackborn [EMAIL PROTECTED] wrote:
 It means multiple processes, as per:

 http://code.google.com/android/intro/appmodel.html

 What may be happening is that you are writing the new shared preferences at
 the same time as the system kills the process, so the file write is not
 completed, and the next time it is read it is unable to parse the truncated
 file.  So you should only write the shared preferences at a time when you
 know the system is keeping your application around -- in onReceiveIntent(),
 a service, as part of the activity lifecycle, etc.





 On Sun, Nov 30, 2008 at 9:13 PM, joshv [EMAIL PROTECTED] wrote:

  What exactly do the docs mean when they say 'multiple processes'.  Do
  they mean different threads in the same application?  Or do they mean
  for example a background service accessing a shared preference file at
  the same time a foreground process is accessing the same shared
  preference file?

  I am having intermittent issues with one of my apps loosing it's
  shared preferences.  My app uses threads to keep the UI responsive,
  and I just figured I had some sort of synchronization issue with
  saving preferences.  But no, I've locked down the critical sections
  with synchronized blocks and still, very rarely, my app will lose it's
  preferences.  It usually seems to happen when the app is killed by the
  OS, or by the debugger, normal resume/pause events never result in
  loosing the preferences.  But again it's intermittent.

  I have another app that's never lost it's preferences - but it's not
  multi-threaded.

  -josh

  On Nov 19, 1:55 pm, Dianne Hackbod [EMAIL PROTECTED] wrote:

  [snip...]

   I'm not sure I follow your reasoning -- if you are saying that your
   application is all running in one process, why do you think the whole
  caveat
   about not supporting multiple processes even applies?
  [...]

 --
 Dianne Hackborn
 Android framework engineer
 [EMAIL PROTECTED]

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them.- 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Windows driver for HTC G1 phone

2008-12-01 Thread Jon Webb

On the 64-bit driver issue, 
http://forum.xda-developers.com/showthread.php?t=446274
gives a 64-bit version of the Android USB driver. The driver is
unsigned, so you have to run Vista in test mode if you want to use it.
Also, I saw somewhere else on the forum Dan Morrill saying that
Android is working on a 64-bit version of the driver. -- Jon Webb

On Nov 10, 6:23 pm, jedmon [EMAIL PROTECTED] wrote:
 Windows driver not required to access your G drive in your G1. 1st
 step: Plug in your G1 to a computer's USB port. 2nd: On your G1 home
 screen, top portion, the USB connected with a USB icon notification
 pops up. 3rd: Drag the G1 notification downward to view. 4th: Click
 the USB connected notification. 5th: a pop up screen asks you to
 Mount or Don't mount. Select the Mount button. 6th: Browse through
 your My Computer and go in the Removable Disk (G:) to access your
 G1 SD card. Good luck.

 On Oct 6, 1:24 pm, mdashali [EMAIL PROTECTED] wrote:

  I got hold of a G1 and I could find a suitabledriver. Do guys know of
  anydriverforWindows?
  Any suggestions appreciated.

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



[android-developers] unknown socket error -1

2008-12-01 Thread sal

1. Can anyone point me to simple TCP client/server program on
android ??


2. Whenever i try to create socket with port and IPaddress i get
IOException which points to a SocketException which gives a message
unknown socket error -1 , it would be nice if someone could tell the
root cause for this problem. i guess this is something to do with TCP
settings of emulator.

3. Do we need to have any configuration changes to Emulator or
androidmanifest.xml file to eliminate this problem ?


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



[android-developers] Re: Fwd: Supported unicode characters

2008-12-01 Thread Mike Reed
U+2603 is not currently in the android fonts.

FYI -  The default font is DroidSans.ttf (when you don't specify a  
typeface object). All of the UI fonts (there are 7 currently) in turn  
reference DroidSansFallback.ttf for characters that they don't contain.

mike

On Nov 26, 2008, at 8:59 PM, Rui Castro wrote:

Hi,

I already sent this message to android-framework group, but since I  
had no answer there I want to post the problem described bellow here.
Please read the forward message.

Thanks,
Rui

-- Forwarded message --
From: Rui Castro [EMAIL PROTECTED]
Date: Wed, Nov 26, 2008 at 11:52 PM
Subject: Re: Supported unicode characters
To: [EMAIL PROTECTED]


Hi,

Replying to myself, again, I noticed that the font used in the phone  
(the emulator) is not the ones in frameworks/base/data/fonts.
The character ☎ (U+2603) appear differently in the character map and  
in the actual application. See the attached pictures.

So, the question is, where is the default font used in the the phone  
applications?

Thanks,
Rui


On Wed, Nov 26, 2008 at 11:40 PM, Rui Castro [EMAIL PROTECTED]  
wrote:
Hi,

I'm sorry to insist on this, but I can't find an explanation for this  
problem. The Droid Sans font, from Android framework, contains the  
unicode character ⏏ (U+23CF), as the attached screenshot proves, but  
when I use it as the text of a button (in the layout XML file with  
@android:text attribute) what I see is a rectangle as you can see in  
the attached image.

Any ideias about this? What should I do?


On Wed, Nov 26, 2008 at 3:14 AM, Rui Castro [EMAIL PROTECTED]  
wrote:
Hi,

Thanks for the answer.
The characters I want to use are there, but when I use them a  
rectangle appears where the character should be :(

I'm using the strings.xml to put the buttons text, like this:
string name=arrow#x21A8;/string

  and in the layout XML file I reference this text like this
Button android:text=@string/arrow ... /

I'm I doing something wrong? I suppose I'm not, because this method  
work very well with the other characters.

Thanks,
Rui


On Wed, Nov 26, 2008 at 1:24 AM, Dan Bornstein [EMAIL PROTECTED]  
wrote:

On Tue, Nov 25, 2008 at 6:19 PM, Rui Castro [EMAIL PROTECTED]  
wrote:
  Is there a list of supported characters in Android?

You can find the fonts that are part of Android in
frameworks/base/data/fonts in the open source repository.

-dan








Screenshot-Character Map-1.pngScreenshot-Android Emulator  
(5554)_call.png


--~--~-~--~~~---~--~~
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] Re: SharedPreferences problem

2008-12-01 Thread joshv

Ok, then SharePreferences should be ok in multi-threaded applications.

Regarding process death and preferences, I thought the same thing so I
scaled back my persistence code to only save preferences in an onPause
().  It was my understanding that even when a task is killed, the
onPause is called before the process is terminated - is that not the
case?  Can the process be killed in the middle of the onPause()
processing?  Perhaps this is a debugger only phenomenon?

On Nov 30, 11:41 pm, Dianne Hackborn [EMAIL PROTECTED] wrote:
 It means multiple processes, as per:

 http://code.google.com/android/intro/appmodel.html

 What may be happening is that you are writing the new shared preferences at
 the same time as the system kills the process, so the file write is not
 completed, and the next time it is read it is unable to parse the truncated
 file.  So you should only write the shared preferences at a time when you
 know the system is keeping your application around -- in onReceiveIntent(),
 a service, as part of the activity lifecycle, etc.


--~--~-~--~~~---~--~~
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] Re: Standard widget styles

2008-12-01 Thread Andriy Zakharchuk

Yep, that makes sense. Thanks.

However, smth like table of styles still would be useful (style and
screenshot).

On Nov 26, 4:23 pm, Thao [EMAIL PROTECTED] wrote:
 Hello,

 What I could advise is to donwload the android source code. You have
 the source of contact application.
 It would help a lot !

 On 26 nov, 14:03, Andriy Zakharchuk [EMAIL PROTECTED]
 wrote:

  Hello all,

  I'm trying to implement a view similar to the Contact view (screen
  with a contact icon, name, favourite checkbox, dial number and send
  SMS actions) available in the Android emulator. And I'm interesting if
  there are any standard styles available for that. Particularly, I'm
  looking for:

  1. Style for the header view (gray background where an icon and a
  contact name are displayed).

  Well, this probably is used only in Contacts application, so it may be
  not among system styles. But hopefully someone encountered smth like
  this.

  2. Style for list section header (where Dial number, Send SMS/MMS text
  appears), it looks similar to window header. It seems I got smth close
  to that style with:

  TextView labelTitle = new TextView(MyActivity.this, null,
  android.R.attr.windowTitleBackgroundStyle);
  labelTitle.setTextAppearance(MyActivity.this,
  android.R.style.TextAppearance_WindowTitle);

  but background colour looks slightly different. Besides, there are two
  default style attributes are available:
  android.R.attr.windowTitleStyle and
  android.R.attr.windowTitleBackgroundStyle. First is responsible for
  the font size/colour another is responsible for the background. Is
  there any solution to apply them both using constructor only (without
  setting text appearance later)?

  And the last question, have anybody seen the list of all available
  styles in Android with images what do they look like?

  Thank you in advance.
--~--~-~--~~~---~--~~
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] Re: Getting information from the Internet

2008-12-01 Thread loty

Look into HttpClient and related classes

Here is very simple code to get a web page
HttpClient client = new DefaultHttpClient();
HttpGet getMethod = new HttpGet
(strURL);
HttpResponse response = client.execute(getMethod);
String res = EntityUtils.toString(response.getEntity());


On Nov 29, 12:30 pm, Juan David Trujillo C.
[EMAIL PROTECTED] wrote:
 Hi guys!

 I am creating a software application for the Android platform that
 requires getting information from the Internet (getting information
 from a specific Web page, at Facebook).  Does anyone know how could
 this be done?  Perhaps some reference code?

 Thanks in advance for all your help!

 Juan
--~--~-~--~~~---~--~~
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] GridView

2008-12-01 Thread Andriy Zakharchuk

Hello all,

I have a question about grid view: is there any chance to stretch
GridView vertically. What I'm trying to do is to create a screen with
a limited number of items (6). I need exactly 2 columns and 3 rows (or
3x2 in landscape mode) to fill all the screen.

In a grid view I can control columns number, and columns stretching
mode, but not rows. I'm looking into overriding
AbsListView.generateLayoutParams() method, but want to ask first.
Probably, there is some simpler way available.

Thank you in advance.
--~--~-~--~~~---~--~~
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] Re: unknown socket error -1

2008-12-01 Thread Huebi

You need to add the INTERNET permission to your app in the Manifest.
That should solve the issue

On 1 Dez., 15:27, sal [EMAIL PROTECTED] wrote:
 1. Can anyone point me to simple TCP client/server program on
 android ??

 2. Whenever i try to create socket with port and IPaddress i get
 IOException which points to a SocketException which gives a message
 unknown socket error -1 , it would be nice if someone could tell the
 root cause for this problem. i guess this is something to do with TCP
 settings of emulator.

 3. Do we need to have any configuration changes to Emulator or
 androidmanifest.xml file to eliminate this problem ?

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



[android-developers] Re: Starting new Activity vs. setContentPane(newView)

2008-12-01 Thread loty

I'm also not sold on the new Activity for each new screen framework.
Unless your new screen is very generic and can be reused by other
applications (I think this is a very very small minority of all
screens) you are better off using setContentView and/or ViewFlippers.
I first went down the road of new activity for new screens as per
Notepad example but very soon i had a spaghetti of activities - had to
press Back button 10 times to leave my application. Surely that's not
a preferred way to write anything. I scrapped new activity approach
for ViewFlippers and setting contents and couldn't be happier.

On Oct 24, 1:58 pm, Kipling Inscore [EMAIL PROTECTED] wrote:
 On 24 Okt., 19:54, Robert K. [EMAIL PROTECTED] wrote:

  Question: Why is it better to start a new activity if you want to
  change screen to a new view (for example to edit some notes on a
  separate text field)?

 I believe that starting a new activity will give you automatic view
 hierarchy on the back button and setContentView() will not.
 Also, if the screen you want to change to is at all generic, you can
 use an implicit intent so that other programs which do the same thing
 may be chosen if the user prefers. For the example you gave, editing a
 note in a separate text field, ACTION_EDIT with a URI for the note
 text would allow the user to drop in a new text editor application and
 use it to edit notes from your application.
--~--~-~--~~~---~--~~
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] Psssing keys for each value in a list view to another view

2008-12-01 Thread AnuR

hi,

 I have a  list view to list some categories. I need to list the
products under each category in a new list. I used arrayList to the
adapter, I am able to list the category names . but I cant pass the
keys (categoryIds) to the next view for getting the products.

Please help me in this regard.

For Now I am trying to display the categoryId in the produts page, but
i am not suceeding :(


the following is the code I tried

public class Categories extends ListActivity  {

ArrayList CatList   ;
   @Override
   protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
   CatList= GetCategories(); // this returns an Array List
  setContentView(R.layout.categories);
  setListAdapter(new ArrayAdapterString
(this,android.R.layout.simple_list_item_1,CatList));


   }


 @Override
   protected void onListItemClick(ListView l, View v, int position,
long id) {
//   Map map = (Map) l.getItemAtPosition(position);

 //  Intent intent = (Intent) map.get(intent);
//   startActivity(intent);
  // super.onListItemClick(l, v, position, id);
   Intent i = new Intent(this, Products.class);
 //  startActivity(i);
   i.putExtra(categ,CatList.get(position).toString() );
   startActivity(i);
// setContentView(R.layout.products);
   }
public static Arraylist GetCategories() {
code to  get the array List
}
}
/// following is the products.java


public class Products extends ListActivity  {


   @Override
   protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
   setContentView(R.layout.products);
  TextView CategoryIdtext = (TextView) findViewById
(R.id.CategoryId);
  Bundle extras = getIntent().getExtras();
  CategoryIdtext.setText(CAtegoryID:+extras.getString(categ));
}

--~--~-~--~~~---~--~~
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] Re: Theme setting for all applications

2008-12-01 Thread Paul Anders
Thanks for the reply:)I understand that at this point there is no support
for theme switch application which enables an end-user to choice theme from
multiple themes like Windows OS I am looking forward to this feature to be
delivered from Google.

On the other hand, even if we cannot switch themes, I would like to try to
modify default theme. Is it possible to do this by modifying themes.xml in
the Android open source /frameworks/base/core/res/res/values directory and
then making a build to create emulator?

In addition to this, I found themes.xml and other resources
in tools/lib/res/default/values in the Android SDK toolkit directory. I
changed this xml file and other png files in drawable folder, but nothing
changes in Android emulator... Why? Is there something else to do this?

Regards,
/Paul

2008/12/1 Dianne Hackborn [EMAIL PROTECTED]

 There is some architecture work done for this, but a fair amount
 remaining.  At this point finishing the work is not scheduled on the
 roadmap.


 On Sun, Nov 30, 2008 at 4:31 PM, E [EMAIL PROTECTED] wrote:


 I'd like to know about full-OS themes too. It looks like (from the
 developer's kit) that such a thing is already supported in the backend
 (why wouldn't it be, right?), but there doesn't appear to be a system-
 level app that will manage or switch between theme configs.

 If this truly isn't available yet, when will it be?
 thanks,

  -Ethan

 On Nov 22, 11:58 pm, Paul Anders [EMAIL PROTECTED] wrote:
  Hello,
 
  I would like to ask you about how to change application theme. In case
 of
  application-specific theme, it is possible to change theme by asking
 your
  Activity to call setTheme(int theme). On the other hand, how can we
 change
  theme applicable to all applications which does not have their own
 theme? As
  you know, Windows OS has a theme setting which can be changed by an
 end-user
  in the display property of control panel. Does android platform support
 this
  feature?
 
  If Android platform does not support theme setting, I have the following
  solutions from developer point of view.
(1) Modify themes.xml provided by Android framework as default, and
 then
  make a build.
  (/frameworks/base/core/res/res/values/themes.xml)
(2) Change Android open source code to add new APIs for changing theme
 for
  all applications.
 
  Is there any other better solution to change theme for all applications?
 
  Regards,
  /Paul




 --
 Dianne Hackborn
 Android framework engineer
 [EMAIL PROTECTED]

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them.



 


--~--~-~--~~~---~--~~
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] Re: how to start the default music application from my own application

2008-12-01 Thread Payal Amin
hi Peli,
I tried that code where you have to pass the song number from you
content provider

Uri.*withAppendedPath*(MediaStore.Audio.Media.*EXTERNAL_CONTENT_URI*,1);

But what if i want to pass the name of the song with complete path from
sdcard?  Because sending the song id gives me wrong songs sometimes.

also sometimes we have same song at 2 different places in the sdcard, will
the content provider has one entry or two entries for the same song?

Thanks in advance,

Payal





On Tue, Nov 18, 2008 at 12:08 PM, Oskeol [EMAIL PROTECTED] wrote:


 Can you post your solution please???
 I need the same functionality.

 I have some resources in the sdcard.
 If i want to start the song named in da club present in the sdcard
 what should i do???

 Thanks in advance


 On 13 Nov, 16:57, Payal Amin [EMAIL PROTECTED] wrote:
  never mind i solve the problems.
 
  Thanks everybody for your help.
 
  Payal
 
  On Thu, Nov 13, 2008 at 10:05 AM, Payal Amin [EMAIL PROTECTED] wrote:
   Hi Peli,
  One more question,  i want to play the songs from the sdcard, and
 the
   song which will be played is whatever user selects from sdcard.  Can
 you
   help me with this?
 
   Thanks a lot,
   Payal
 
 On Thu, Nov 13, 2008 at 9:43 AM, Payal Amin [EMAIL PROTECTED]
 wrote:
 
   hi Peli,
  Thanks for your reply.  I tried your code and the default media
 player
   in sdk does appear on the emulator, but only for a second and then
 don't
   know it disappears.  Do i have to add anything else in the code?
 
   Thanks,
   Payal
 
  On Thu, Nov 13, 2008 at 7:00 AM, Peli [EMAIL PROTECTED]
 wrote:
 
  http://www.openintents.org/en/node/112
 
   Peli
  www.openintents.org
 
   On Nov 12, 7:56 pm, Payal Amin [EMAIL PROTECTED] wrote:
Hi All,
I want to start the default Music application which is there
 when
   you
run the emulator from my own application say hello world.  Can
   anybody
tell me how can i do so?
 
Thanks,
Payal
 


--~--~-~--~~~---~--~~
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] sdk 1.0 failed to correctly run code

2008-12-01 Thread Mina Ramses
I tried the code below in eclipse using android sdk 1.0, but always can't
get the
application to run correctly neither got any of the testing statements in
the logCat, i used to set appServer as the default activity and tried to run

using Run configurations, i'm asking what's wrong and if i have to run the
appClient first or before appServer, if not then what's wrong ?? also i'm
asking if i have to run each of appServer and appClient on single emulator
instance
and how to do that, and what if i want to run each of them on a different
machine, i know that somehow i need some pointer to a basic concept guide
on running android application , please if you don't mind to help me



Here's the code:

THE SERVER:
package com.northwestradiology.conn;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.UnknownHostException;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

public class appServer extends Activity {

// client goes on emulator-5556
// server goes on emulator-5554
// server requires: redir add tcp:5000:7000
// this redirects traffic inbound to host computer tcp:5000 to
emulator:tcp:7000
// alias 10.0.2.2 is the emulators way of referring to host
computer.
//

public static ServerSocket serverSock;
public static Socket connection;
public static String message;
public static InputStreamReader inStream;
public static OutputStreamWriter outStream;
public static BufferedReader reader;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
message=;

Boolean wait4Data = true;
Log.v(appServer-setUpServer, starting setUpServer);
try {
serverSock = new ServerSocket(7000);
} catch (IOException e) {
Log.v(appServer-setUpServer,serverSocket error
+e.toString());
}
Log.v(appServer-main,before While loop);
while (wait4Data) {
   try {
connection = serverSock.accept();
inStream = new
InputStreamReader(connection.getInputStream());
reader = new BufferedReader(inStream);
Log.v(appServer, connection socket port :
+connection.getLocalPort());
Log.v(appServer, connection socket toString():
+connection.toString());
Log.v(appServer, connection socket isClosed:
+connection.isClosed());
Log.v(appServer, connection socket isConnected: 
+connection.isConnected());
Log.v(appServer, waiting for reader.readLine());
message = reader.readLine();

Log.v(appServer,message:+message+);
if (message ==){
wait4Data=true;
}else {
wait4Data=false;
}
} catch (UnknownHostException e) {
Log.v(appServer-main,reading error:  +e.toString());
} catch (IOException e) {
Log.v(appServer-main,reading error:  +e.toString());
}
} //while wait4Data

Log.v(appServer-main,After While loop);
Log.v(appServer, message read:  + message);

 }
  }

THE CLIENT:
package com.northwestradiology.conn;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.Socket;
import java.net.UnknownHostException;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

public class appClient extends Activity {

public static final String WRITE_THIS_DATA=write this data\n;

public static Socket connection;
public static OutputStreamWriter outStream;
public static PrintWriter writer;
public static InputStreamReader inStream;
public static BufferedReader reader;
public static String wholeMessageIn;
public static String messageIn;

public void setUpNetworking(){
//
// client goes on emulator-5556
// server goes on emulator-5554
// server requires: redir add tcp:5000:7000
// this redirects traffic inbound to development computer
tcp:5000
// to emulator:tcp:7000
// alias 10.0.2.2 is the emulators way of referring to
host
computer.
//

Log.v(setUpNetworking, starting setUpNetworking);
try {
connection = new Socket(10.0.2.2,5000);
writer = new
PrintWriter(connection.getOutputStream());

[android-developers] Re: OutOfMemoryError when switching orientation

2008-12-01 Thread Noam Wolf

I'm not explicitly passing context around at all but I am using a
ContentProvider which calls getContext()... is that something I should
be handling too?

On Dec 1, 1:23 am, Romain Guy [EMAIL PROTECTED] wrote:
  Always delete references to Context or
  anything that you passed the context to on clean-up.  It's a huge one.

 Just to emphasize this: leaking a Context means you will leak *all*
 the views and *all* the resources attached to these views (bitmaps,
 text, etc.)

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



[android-developers] Exchanging Messages between services containing Bundles with self-developed Parcelables

2008-12-01 Thread nimbus83

Hello,

It try to exchange objects of type android.os.Message between services
in different processes. I add a bundle to each message. This bundle
contains MyMessage object, which implements the Parcelable interface.

I do it like this:
Message message = new Message();

Bundle bundle = new Bundle();
MyMessage myMessage = new MyMessage(this is some info, 0);
bundle.putParcelable(message, myMessage);

message.setData(bundle);


The code gets compiled, but at runtime I get the following error in
the AIDL service interface of the service which is invoked:

android.os.BadParcelableException: ClassNotFoundException when
unmarshalling: de.android.examples.handler.probe1.messages.MyMessage

What is wrong? How can I cope with this problem?
Is it possible at all to exchange android.os.Message objects
containing Bundles with self-implemented Parcelables?

Thank you in advance.

Best wishes,
Vladimir
--~--~-~--~~~---~--~~
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] Android Email Notification

2008-12-01 Thread [EMAIL PROTECTED]

Having read several times the topic on Push Notification Techniques
bellow, I still wonder how the current email notification technique on
android works?!

http://groups.google.com/group/android-developers/browse_thread/thread/4778a4e2ed9d49e1/261238ee9cee7859?lnk=gstq=push+notification#261238ee9cee7859

Isn't that technique also periodically utilising the radio just as the
techniques suggested in the post above? I wonder how many hours of
headache would be saved if IPv6 was out there.

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



[android-developers] Re: Android Camera Preview Filter Using Camera.PreviewCallback.onPreviewFrame

2008-12-01 Thread Dave Sparks

The G1 preview format is YUV 420 semi-planar (U and V are subsampled
by 2 in both X and Y). The Y plane is first, followed by UV pairs - I
believe the U sample comes first in the pair.

Technically it's YCbCr 420 semi-planar, but very few people use that
term.

On Nov 26, 6:27 pm, dmanpearl [EMAIL PROTECTED] wrote:
 Hello Blindfold,

 Thanks for your help.  I solved the user interface problems I was
 experiencing by using a separate thread to do my image processing. I'm
 still using an ImageView, and without problems.  Perhaps I will try a
 Canvas in a SurfaceHolder later in this exercise to compare speeds.

 MORE ON THE CAMERA LIVE PREVIEW FILTERED DISPLAY CAPABILITY

 As you know, I want to display live camera data through a custom
 filter.

 I got most of the way through the YCbCr_422_SP data buffer returned to
 Android's Camera.PreviewCallback onCameraFrame() callback function,
 and now I am looking for help decyphering the U, V portion of the
 buffer.  I verified that the first (width*height) bytes are simple Y
 luminance values that can be displayed (via Bitmap and ImageView) to
 make a viable gray-scale image.  The total number of bytes are (width
 * height * 3 / 2).

 The remaining 1/2 image bytes are clearly used to store U, V (Cb, Cr)
 data.  Therefore, there are 1/4 image bytes for each U, V component
 (i.e. each U, V component is used for 4 pixels of the image).  This
 looks like 411 or 420 data, not 422, but we have bigger fish to fry.

 I cannot determine if the U V data is aligned adjacently, in
 alternating rows, or in squares as described in this Wikipedia
 graphical description:  http://en.wikipedia.org/wiki/Image:Yuv420.svg.
 Once I finally determine the structure of the U, V data, I have
 several equations to convert from YUV to RGB and I have tried many
 ways of combining the UV data with the luminance data of the first 2/3
 of the buffer to no avail.  So far I can only display mono-chrome.

 If you or others on this list can decode the Android YCbCr_422_SP
 data, please post the solution as soon as possible.  Your efforts and
 generosity are greatly appreciated.  I am convinced that
 representatives from Google/Android and others monitoring this list
 know how to do this.  Please share the information.  It is crutial to
 our project.  I do not care about the Emulator and it's different
 encoding.  I realize that Google is probably waiting to implement a
 unified solution and share it through an API update, but we cannot
 wait.

  - Thank you, David Manpearl

 On Nov 26, 10:23 am, blindfold [EMAIL PROTECTED] wrote:

  Hi David,

   I can't seem to make coexist: SurfaceHolder for the camera  ImageView
   for the filtered Bitmap to display.

  ...

   Do you know why I can't make the Camera's Surface and an ImageView
   Bitmap simultaneous members of the same active ViewGroup?

  I do not use ImageView myself so I cannot really judge your problem. I
  draw my filtered Bitmap to a Canvas in a SurfaceView. No ImageView
  anywhere.

  Regards
--~--~-~--~~~---~--~~
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] Re: Guitar Tuner

2008-12-01 Thread Dave Sparks

The current audio API's would make this very challenging. Look for
improvements in a future SDK.

On Nov 29, 12:10 pm, Ameer Ashanti [EMAIL PROTECTED] wrote:
 Is there anyone developing a guitar tuner for the android platform? or
 would that even be possible?
--~--~-~--~~~---~--~~
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] searchs in Android

2008-12-01 Thread Peterman

Hi

Someone know how to do a search in android? I would like make a search
that it give me the coordenates of the locations founded. I heard
about the class Geocoder but I don't know to use it or it this class
is the solution.


thanks a lot
--~--~-~--~~~---~--~~
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] Re: Java App UI / Engine C split query

2008-12-01 Thread [EMAIL PROTECTED]



DigitalAirways ( www.digitalairways.com ) use a kind of software
bridge allowing all the Kaleido applications (that are mainly in C/C+
+) to run on Android with very good perfs.
I suppose that you can get in touch with them to get more information.

Franck


On Nov 27, 6:52 pm, Mungbeans [EMAIL PROTECTED] wrote:
 If I have a large existing component alredy developed for another
 platform in C and I want to port it to Android what are the options?

 If I re-write the entire thing in Java that will take a long time and
 also I would be worried about performance issues with everything
 running in the JVM.

 So if I split it so that the UI is in Java and the engine is in C what
 are the available mechanism(s) for making the C API available to the
 Java application?
 How would I debug this i.e. if I run the Java app in Eclipse how can I
 step into the C code?

 Are there other options?

--~--~-~--~~~---~--~~
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] Re: How to enable screen transition when launching Activity

2008-12-01 Thread Jeremy Bornstein

A relevant question might be: if an external developer contributed
high-quality inter-activity transition code to the open source Android
codebase, would it be likely to be accepted?

I do not believe that such a feature is covered by any patents, but it
may be relevant that Google CEO Eric Schmidt is reportedly good
friends with Apple CEO Steve Jobs, and Schmidt sits on Apple's board.
It does not seem totally out of the question that these relationships
would result in certain features being missing from Android for
reasons which are not strictly in the interests of people using the
Android platform.


On Sun, Nov 30, 2008 at 11:43:24AM -0500, Dave Kong wrote:
 Will it be? Is it disabled due to possible bug or patent issues?
 
 On Sun, Nov 30, 2008 at 12:59 AM, Dianne Hackborn [EMAIL PROTECTED]wrote:
 
  Inter-activity transitions are not supported at this point, sorry.
 
  On Tue, Nov 25, 2008 at 11:51 PM, Tomei Ningen [EMAIL PROTECTED]wrote:
 
 
  This question was asked before
 
  http://groups.google.com/group/android-developers/browse_thread/thread/d5baa0831af53d80?q=android+G1+screen+transition#8cb9752ead82d2eb
 
  but I'll ask it again :-)
 
  On earlier Android SDK, when you are in home screen, and you launch an
  app (like Contacts), there's an iphone-like transition effect, where
  the new app is zoomed out.
 
  On G1 phone, this is disabled (probably due to poor performance). Is
  there anyway to turn it back on?
 
  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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to integrate c code with java code

2008-12-01 Thread [EMAIL PROTECTED]

Hi Amit,

DigitalAirways (www.digitalairways.com) does this to allow all the
Kaleido applications to run on Android with great performances and
very limited porting effort.

Franck







On Nov 28, 11:00 am, Amit [EMAIL PROTECTED] wrote:
 Hello friends,

 Can u plz tell that if i want to write some piece of code for android
 in c or c++, how can i integrate the code with java code.

 Any help appreciated

 Thanks
 Amit

--~--~-~--~~~---~--~~
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] Android screen resolution limit

2008-12-01 Thread hill....@gmail.com

Hi,
I have searched this group but couldn't find the answer:
What's the largest screen resolution android support right now?
We are going to port android on rather large size of scree and the
resolution is about 1024X800. Can Android supports this? If not, is
there any setup or configuration file I can change?

thanks,

Hill

--~--~-~--~~~---~--~~
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] Re: Anyone looking at Cell Broadcast on the G1?

2008-12-01 Thread praks

Hello,

I dnt have an android phone with me. So cannot really check out the
cell broadcast messages. But can we capture these messages in our
application? Is there any API?


Thanx...



On Nov 25, 6:42 pm, Mauricio Mayer Soares [EMAIL PROTECTED]
wrote:
 OK but, how to enable this feature on Android?

 Regards

 Mauricio

 On Oct 29, 10:55 pm, Rob Franz [EMAIL PROTECTED] wrote:

  Cell Broadcast is enabled/disabled by the network operator  - T-Mobile here
  in US doesn't enable it.  I don't believe ATT Mobility does either...

  On Wed, Oct 29, 2008 at 8:28 PM, Selmi [EMAIL PROTECTED] wrote:

   can anyone who owns g1 confirm it works?
   because it doesn't work on treo, as far as i know it doesnt work on
   iphone, so i am a bit afraid in fact no usa-made phone i had
   experience with supports it :( and if its not supported i will rather
   keep my old phone and forget about upgrading

   On 30. Okt, 00:15 h., CyberchuckTX [EMAIL PROTECTED] wrote:
Hello:

Is anyone looking at the Cell Broadcast capability (if any) of the
G1?

Mandatory Wikipedia entry on Cell Broadcasthttp://
   en.wikipedia.org/wiki/Cell_Broadcast

Cell Broadcast Forum

Note: cell broadcast is NOT SMS (text messaging). It is a location-
aware/specific broadcast mechanism built in to most modern GSM phones.
And it is *not* in wide use around the world (yet).- 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



Re: Fw: [android-developers] Re: Android and bluetooth

2008-12-01 Thread supernova


I need to use SPP (Serial Port Profile)

--~--~-~--~~~---~--~~
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] How to use SSL23 with HttpsURLConnection ?

2008-12-01 Thread greata...@googlemail.com

Hello

I'm willing to connect to a HTTPS server who only operates with the
SSLv23 protocol.

But, using Android 1.0 SDK, all attempt to connect to the server using
HttpsURLConnection fails with the following exception (see at the end
of this message for complete trackback):
12-01 11:54:14.140: WARN/System.err(174): java.io.IOException: SSL
handshake failure: Failure in SSL library, usually a protocol error
12-01 11:54:14.140: WARN/System.err(174): error:140770FC:SSL
routines:SSL23_GET_SERVER_HELLO:unknown protocol (extlibs/
openssl-0.9.8h/ssl/s23_clnt.c:585 0xaf58a238:0x)

If I try with SSLContext, the exception is thrown exactly at the
moment getInstance is called with the following statements:
SSLContext.getInstance(SSL);
SSLContext.getInstance(SSLv23);
SSLContext.getInstance(SSL23);

So, what I understand from the error message, is that SSL algorithm is
not supported by the SSLContext object. Maybe should I import a
special package, or something like this, but I don't know what
exactly.

Searching on forum didn't helped me a lot, there is no a clear
solution, or if there is, I'll be please to try them.

I've also tried several other approches, trying to force using TLS
with SSLContext.getInstance(TLS) but the server seems to really want
SSL, the subsequent connect fails with the abrove exception.

I'm not a SSL specialist, and never used it with Java, so I might not
do the right thing, but I can't know what.

So far I'm using a webbrowser to go to this Url, but launching a
webbrowser activity from a service is not exactly the most beautiful
code I ever did. I also tryed with a hidden webview, but this
doesn't cross my proxy, althrought all HttpURLConnection and
webbrowser do go throught the proxy correctly (I don't think my
problem is due to the proxy configuration, because of the exception on
the very call of SSLContext.getInstance).

Thanks for all your help

Gaetan

Complete trackback:
12-01 11:54:14.140: WARN/System.err(174): java.io.IOException: SSL
handshake failure: Failure in SSL library, usually a protocol error
12-01 11:54:14.140: WARN/System.err(174): error:140770FC:SSL
routines:SSL23_GET_SERVER_HELLO:unknown protocol (extlibs/
openssl-0.9.8h/ssl/s23_clnt.c:585 0xaf58a238:0x)
12-01 11:54:14.140: WARN/System.err(174): at
org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.nativeconnect
(Native Method)
12-01 11:54:14.150: WARN/System.err(174): at
org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake
(OpenSSLSocketImpl.java:333)
12-01 11:54:14.159: WARN/System.err(174): at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.getSecureSocket
(HttpConnection.java:167)
12-01 11:54:14.159: WARN/System.err(174): at
org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection
$HttpsEngine.connect(HttpsURLConnection.java:398)
12-01 11:54:14.169: WARN/System.err(174): at
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getOutputStream
(HttpURLConnection.java:1129)
12-01 11:54:14.179: WARN/System.err(174): at
org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection.getOutputStream
(HttpsURLConnection.java:262)
12-01 11:54:14.179: WARN/System.err(174): at
com.motorola.socialnetworksdemo.FacebookInterface.doFakeLogin
(FacebookInterface.java:497)
12-01 11:54:14.189: WARN/System.err(174): at
com.motorola.socialnetworksdemo.FacebookInterface.connectToFacebook
(FacebookInterface.java:150)
12-01 11:54:14.189: WARN/System.err(174): at
com.motorola.socialnetworksdemo.FacebookInterface.init
(FacebookInterface.java:85)
12-01 11:54:14.199: WARN/System.err(174): at
com.motorola.socialnetworksdemo.SocialNetworks.getInterface
(SocialNetworks.java:40)
12-01 11:54:14.210: WARN/System.err(174): at
com.motorola.socialnetworksdemo.SocialNetworksService$1.run
(SocialNetworksService.java:103)
12-01 11:54:14.210: WARN/System.err(174): at java.lang.Thread.run
(Thread.java:935)

--~--~-~--~~~---~--~~
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] Debug Boot complete Broadcast event on phone

2008-12-01 Thread mnj

Hi,

I have a class BootTest which extends BroadcastReceiver. I want to
put a breakpoint in onReceive method and debug from Eclipse IDE when
phone(G1) boots up. What I observe is that the onReceive() method is
getting called but the control is not coming to the breakpoint.
Probably the debugger is not yet connected when BOOT_COMPLETE event
is received. This is just my guess.

Has anyone of you tried debugging such scenario where a receiver is
waiting for BOOT_COMPLETE event.

Thanks,
Manoj

--~--~-~--~~~---~--~~
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] Re: socket exception error

2008-12-01 Thread RichardS



On 1 Dec, 11:44, sal123 [EMAIL PROTECTED] wrote:
 Hi All,

 I am getting a socketexception , when i am trying to create a new
 socket. may i know the reason for this


Have you added the permission to your AndroidManifest.xml?  Something
like:

uses-permission android:name=android.permission.INTERNET /


R

--~--~-~--~~~---~--~~
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] Tabactivity pass exras data can't work

2008-12-01 Thread ppy

I have main activity  Mainact,it's a listview.

click the listview,get the item id and putExtras(bundle) to second
activity.

the second tabactivity work fine.


my tabactivity have tab1,tab2,tab3,and tab3 is itemlist.


how can i get main activity's clicked item id  from tab3?



--~--~-~--~~~---~--~~
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] ice-e on Android?

2008-12-01 Thread supernova

Is ist possible to run Ice-e on Android? Maybe with J2ME MIDP Runner?

--~--~-~--~~~---~--~~
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] Re: Checking API: checkapi-last Error when compiling android source code after repo sync in 11/23/2008 Beijing Time

2008-12-01 Thread dakman

I also got the same issue when I did the build Nov29,2008 on my
ubuntu, after the repo sync, I did nothing else except make.

I searched the google groups but did not find the fix for it. could
someone guide me where I can find the discussion on it? thanks.

error 17: Field android.media.AudioManager.ROUTE_ALL has
changed value from 15 to -1


On Nov 23, 5:55 pm, Jeff Hamilton [EMAIL PROTECTED] wrote:
 This should be fixed now.

 -Jeff

 On Sun, Nov 23, 2008 at 1:34 AM, Romain Guy [EMAIL PROTECTED] wrote:

  Either you changed a public API on your copy of the tree, or we broke
  the build :)

  On Sun, Nov 23, 2008 at 1:19 AM, [EMAIL PROTECTED]
  [EMAIL PROTECTED] wrote:

  when i try to repo sync and compile the android source code. A error
  is reported out. Would you like to let me know how to fix it? Thank
  you very much.

  Steps to reproduce the problem:
    1. repo sync
    2. make

  The error log is as below.

  [EMAIL PROTECTED]:/home/thomast/mydroid# make
  build/core/product_config.mk:229: WARNING: adding test OTA key
  build/core/main.mk:177: implicitly installing apns-conf_sdk.xml
  Checking API: checkapi-last
  (unknown): error 17: Fieldandroid.media.AudioManager.ROUTE_ALL has
  changed value from 15 to -1

  **
  You have tried to change the API from what has been previously
  released in
  an SDK.  Please fix the errors listed above.
  **

  make: *** [out/target/common/obj/PACKAGING/checkapi-last-timestamp]
  Error
  38
  [EMAIL PROTECTED]:/home/thomast/mydroid#
  [EMAIL PROTECTED]:/home/thomast/mydroid#

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



[android-developers] Re: Comment spam in android market :(

2008-12-01 Thread SASS Digital

I have to say I agree - we have racist abuse on our comments and as
far as I can tell there's no way to remove it. We've had numerous
emails from people asking us to remove the comment but we're powerless
to do anything!

Google - please take note, allow developers to mark comments as
abusive!


On Nov 26, 8:31 pm, Max Binshtok [EMAIL PROTECTED] wrote:
 Googlers, please read!

 I recently posted my application and while overall the comments were
 very useful, there is abut 30% which arespamand one or two very
 offensive comments.
 If google can't/won't moderate the comments, WHY can't we as
 developers do that? Mystery to me...
 I'll tell you the truth, I'm really got disappointed with how the
 market is managed by Google.
 They are slow, irresponsive to developers and user needs etc... Does
 google become bloated can't do anything without going over 100 heads
 of management people kind of company... I'm really disappointed.

 We are required to pay money to prevent spamapps but google does
 nothing to prevent VERY offensive and irrelevant comments. How's that
 for good judgment?

 Googlers, please read!

 On Nov 11, 12:09 pm, Robert Green [EMAIL PROTECTED] wrote:

  Agreed.  Something needs to be done.  I think google could allocate
  one employee to scanning thecommentsfor now and perhaps banning/
  warning users who made inappropriatecommentsfrom commenting?

  On Nov 11, 8:29 am, Al Sutton [EMAIL PROTECTED] wrote:

   Ratings are always a highly subjective thing which is why AndAppStore
   hasn't included them .

   My 2/5 might be your 3/5 for no other reason than I've seen better
   elsewhere that you haven't, your 4/5 may be my 2/5 just because you like
   a colour scheme that I don't. You can't say people can only rate lower
   than 3 if they type a longcommentbecause you'll end up with junk
  commentsjust to pad the space, and if you're going to say 300
   characters for below 3, why not 300 characters for above 3 so people
   have to justify high rating to avoid attempts to bump apps to the top of
   the popular list.

   Al.

   Protocol-X wrote:
Yes it is rediculous,
There is swearing, racial slurs,commentsabout body parts, all
randomly out of nowhere.  Google needs to kill thecommentsfrom being
displayed so that only the app creator can see them and the rating
system is defunk as well because people are ratting 1;'s because they
dont understand apps or there is a german online book being rated ones
because people are commenting its stupud because its in german... what
do u expect even the descripion is German if u cannot see this was in
German dont rate it poorly.. these are all situations and issue that
need to be worked out.  or require atleast a 300 charactercomment
inorder to rate lower than a 3 so people are not just rated unfairly
because of immature people.

On Nov 11, 5:56 am, Al Sutton [EMAIL PROTECTED] wrote:

I can see this as a good idea so I'vecommentratings into
AndAppStore.com, sorted the displayedcommentsby ranking, and show 5 at
a time.

It took me a couple of hours to put the code together, so I'd hope that
the guys at google can do something similar for marketplace in the next
few days.

Al.

plusminus wrote:

   Commentswith bad ratings get hidden and need to be expanded by the
user -- Almost no one will see them anymore

+1 forComment-Rating-System

On 11 Nov., 00:10, zl25drexel [EMAIL PROTECTED] wrote:

well the ratings/commentsnow are just the same as the ratings/
   commentson youtube. does any1 ever reads them?

On Nov 10, 4:29 pm, Andrew Burgess [EMAIL PROTECTED] wrote:

On Mon, Nov 10, 2008 at 4:18 PM, Disconnect [EMAIL PROTECTED] 
wrote:

..or just punt out users for ToS violations.

On Sat, Nov 8, 2008 at 3:24 PM, ryaninc [EMAIL PROTECTED] wrote:

I wholeheartedly agree. Thecommentsare invaluable for determining
how well an application works, but it's almost to the point where 
the
   commentsare worthless because there's so muchspamand completely 
   off-
topic discussion.

While I don't likecommentmoderation as a whole, there should be
automatic filtering at the very least. Maybe Google could 
implement a
filter that would deletecommentswith swear words, or even just 
turn
them into asterisks.

There really needs to be a solution to this, it's really getting
bad. :-(

Perhaps an implementation similar to many online retailers where 
users can
say whether a review was helpful.  Commentsthat others found 
helpful in
making their decision could be floated to the top (or at least 
supply a
sorting option/preference) so that it's easier to find more useful
information.  Similarly, acommentwith enough bad feedback could be 
put up
for some sort of review, and if deemed acceptable, the offending 
user could
havecommentprivileges banned for some period of 

[android-developers] Re: Ringtone.isPlaying problem

2008-12-01 Thread Dave Sparks

The phone application uses the RingtoneManager to play ringtones, so
it definitely works in that application. That doesn't mean it doesn't
have a bug, but I would suggest you check your code first.

On Nov 29, 3:41 pm, Selmi [EMAIL PROTECTED] wrote:
 hi, i hope there is someone who has some experience with ringtones

 in short, i open RingtoneManager and i choose ringtone from it using:

 mRingtone=mRingtoneManager.getRingtone(position);
 mRingtone.play();

 after some time i make following test:
 if(mRingtone!=null  mRingtone.isPlaying())
 {
 mRingtone.stop();
 mRingtone=null;}

 else
 {
   some action

 }

 problem is that mRingtone.isPlaying() always returns false, even if
 sound is still played!
 is it some problem in api, or did i misunderstood anything?
--~--~-~--~~~---~--~~
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] Re: Sending DTMF

2008-12-01 Thread Dave Sparks

The documentation for the ToneGenerator class clearly states that it
is for the purpose of generating tones on the near end. This is so the
user hears the tones when they push the digits on the keypad.

If you want to generate DTMF tones on the far end, you need to use the
PhoneManager API.

On Nov 30, 5:12 am, legerb [EMAIL PROTECTED] wrote:
 This actually didn't work on the real device.
 The tones can be heard playing on the handset, but not at the
 destination end.
 Using STREAM_VOICE_CALL did sound logic, but it doesn't work, and in
 that case i don't understand the purpose of it.

 On Nov 6, 12:11 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

  Hi,

  Did this actually work ?

  Did you try this on a real device ?
  (we dont have access to G1 devices here in Israel)

  TIA

  On Oct 5, 2:36 pm, legerb [EMAIL PROTECTED] wrote:

   I'm trying to send DTMF tones during outgoing call this way in my
   PhoneStateListener.
   Is this the right way to send DTMF - using the STREAM_VOICE_CALL.
   Also i want to send the DTMF sequence after the call is answered, so
   CALL_STATE_OFFHOOK doesn't seem to be right, what should be the
   appropriate state for sending?

   public void onCallStateChanged(int state, String incomingNumber) {
   // TODO Auto-generated method stub
   super.onCallStateChanged(state, incomingNumber);

   switch (state)
   {
   case TelephonyManager.CALL_STATE_OFFHOOK:

   ToneGenerator toneGenerator = new
   ToneGenerator(AudioManager.STREAM_VOICE_CALL,
   ToneGenerator.MAX_VOLUME1);
   
   toneGenerator.startTone(ToneGenerator.TONE_DTMF_1);
   toneGenerator.stopTone();
   
   toneGenerator.startTone(ToneGenerator.TONE_DTMF_2);
   toneGenerator.stopTone();
   break;
   }

   }

   On Oct 2, 11:02 am, legerb [EMAIL PROTECTED] wrote:

Is it possible to make a call and then send DTMF sequence in android
sdk 1.0?
I've seen the ToneGenerator and PhoneNumberUtils classes, but couldn't
find an option of sending DTMF...
--~--~-~--~~~---~--~~
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] Re: Error generating final archive: null

2008-12-01 Thread nialloc

Running eclipse as sudo should solve this issue

On Nov 18, 10:16 pm, Alam [EMAIL PROTECTED] wrote:
 When I save the manifest file I get

 [2008-11-18 22:13:18 - DeleteMe]Errorgeneratingfinalarchive:null

 I am using Eclipse Ganymede on Ubuntu 8.04.
 Any ideas why I am getting thiserror.

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



[android-developers] Re: MediaPlayer seek on startup

2008-12-01 Thread Dave Sparks

I can't think of any alternative solution at this time. The code that
handles this is in the OpenCore engine and not something you can
address with a Java API.

Perhaps this is something we can address in a future release.

On Nov 28, 1:22 pm, David Given [EMAIL PROTECTED] wrote:
 David Given wrote:
  I'm trying to play streaming music. The user has previously requested
  that the stream start a certain way into the stream. How do I do this?

 [...]

 Does anyone have any suggestions on how do this? If I can't make this
 work, my app is basically stuffed, and nothing I've tried is working.

 Brief summary: I need to be able to tell MediaPlayer to start playing
 from somewhere in the middle of the stream, not the start. If I call
 seekTo() after prepare() then the user has to wait for the buffer to be
 filled twice, which can take up to thirty seconds, and they're not going
 to put up with that.

 Is there a way to tell it to prepare the stream (reading the stream
 header, etc) but *not* to fill the buffer until I tell it to start
 playing? That would work.

 --
 ┌─── dg@cowlark.com ─http://www.cowlark.com─
 │
 │ ⍎'⎕',∊N⍴⊂S←'←⎕←(3=T)⋎M⋏2=T←⊃+/(V⌽⊂M),(V⊝M),(V,⌽V)⌽(V,V←1⎺1)⊝⊂M)'
 │ --- Conway's Game Of Life, in one line of APL

  signature.asc
  1KViewDownload
--~--~-~--~~~---~--~~
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] Can one application removes files of other application?

2008-12-01 Thread John Jiang
I tried following methods, but looks like all of them are infeasible:
1) From Android official documents, I did't find proper permission to be added 
to application manifest;
2) I want to use 'setuid su' security hole, but that is fixed on Android RC30.

Is it possible to remove files of other application?



  ___ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: when will android support/have Speech Recognition System??

2008-12-01 Thread Dave Sparks

There is a speech reco engine in Android 1.0, but it is limited to use
in the voice dialer. The source code is available on
source.android.com.

On Nov 27, 6:18 am, Hui Tianshu (Risker) [EMAIL PROTECTED]
wrote:
 does anyone know any latest update for voice recognition in Android
 (android.speech.recognition) ?For sure Android 1.0 does not have it.

 Thanks
 Risker Hui

 On Oct 24, 1:02 am, Jakob Sachse [EMAIL PROTECTED] wrote:

  yesterday android was made open source, as you may know for sure.
  The websitehttp://source.android.comwasalso put online then.

  There is a youtube movie on the frontpage (http://www.youtube.com/
  watch?v=7Y4thikv-OM)
  that at 2:24min explicitly mentionsspeechrecognition,
  why would they do this if its not yet included?

  On 1 Okt., 18:51, hackbod [EMAIL PROTECTED] wrote:

   Nospeechrecognition in 1.0.

   On Oct 1, 7:02 am, Wesley [EMAIL PROTECTED] wrote:

Are u mean android not going to supportspeechrecognition???
But I saw a folder callspeechinside android.jar wo???
Others is working on???
Means I should ask...
Anyone is working on this system???
Can anyone share out??? Or open sources???

but if android have this system... I believe it will b very great new
to all the developer... Including me...

may I know... when can we have this system on hand inside android???

your attention is much appreciated... Thanks...

wesley.

On 10/1/08, MrSnowflake [EMAIL PROTECTED] wrote:

 I believe someone was working on such a library, but I've read it a
 couple months ago, so I'm not sure how it was called.

 On 30 sep, 03:51, Wesley Sagittarius [EMAIL PROTECTED] wrote:
 hi,

 when will android support/haveSpeechRecognition System??
 anyone have any ideas???

 Wesley.

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



[android-developers] Re: mp3s for games?

2008-12-01 Thread Dave Sparks

Decoding a single MP3 for a background audio track is not too bad. On
the G1, OGG is a better format, less memory overhead and startup
latency, plus you get seamless looping which MP3 does not do.

I don't recommend using compressed audio like MP3 or OGG if you have
lots of sound effects, because of the CPU overhead in decompressing
them.

On Nov 27, 10:18 am, Craig [EMAIL PROTECTED] wrote:
 I'm making a game, and I have an mp3 I would like to use to play in a
 loop for this game. This mp3 is several times larger than a midi file
 would be, but recreating my mp3 as a midi has proven to be a non-
 trivial task.

 What would the effects be of just using an mp3 of a few hundred kb in
 size instead of a midi file of around 10kb in size? I.e., would
 downloading the larger game be much of an issue? Would there be any
 significant penalties in performance or resource usage?
--~--~-~--~~~---~--~~
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] Re: Guitar Tuner

2008-12-01 Thread Robert Green

I think it would be ok if all you wanted is an app that can play
EADGBE tones.  Just make 6 media players, set them to loop and have
the UI control starting and stopping them.  If you want a tuner that
can listen to the guitar and display the tuning like a real guitar
tuner does, that will not be possible because the android API does not
currently have real-time sound input processing.

On Dec 1, 10:58 am, Dave Sparks [EMAIL PROTECTED] wrote:
 The current audio API's would make this very challenging. Look for
 improvements in a future SDK.

 On Nov 29, 12:10 pm, Ameer Ashanti [EMAIL PROTECTED] wrote:

  Is there anyone developing a guitar tuner for the android platform? or
  would that even be possible?


--~--~-~--~~~---~--~~
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] Re: Problems with ListView using buttons on each row

2008-12-01 Thread Nickname

For your reference, one way to work around this constraint of Android
ListView is to redirect an onClick event on a listview rwo to the
button on the row by means of calling performClick() in the onClick()
of the GetView() of the listview adapter class.

On Nov 29, 7:52 am, Stefan [EMAIL PROTECTED] wrote:
 I have an issue with a list view that has buttons (more precisely
 ImageButton) on each row. (The list view is similar to the one used in
 the Amazon MP3 application included in the G1 where you can see the
 song/album name and press a button with the price to purchase it.)

 I need to be able to perform 2 actions for each row - one when you
 click on the row and different when you click on the row's button.

 Adding the button itself to the row and handling the button clicks
 works fine, the problem is that for every row that has a button, you
 can't click on the row itself anymore. You can click on the row's
 button, but clicking on the rest of the row does not generate
 ItemClick event for that row in the list view.

 You can select the row using the navigation keys and press Enter and
 that correctly generates the ItemClick even on the row, but clicking
 on the row itself does nothing. If I hide the buttons on some of the
 rows, the row without a button clicking starts to work correctly, but
 the rows with buttons still don't work. It seems like the existence of
 a button on the row renders the row itself unclickable.

 Oddly enough, if you use a RatingBar on the row instead of the Button
 you can click on both the row and the rating bar independently and
 they all work correctly as expected.

 Does anyone know why would the Button behave differently than the
 RatingBar and what is the correct way to make both the button and row
 be independently clickable.

 Stefan
--~--~-~--~~~---~--~~
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] Re: Is there any documentation of RIL layer architecture in android

2008-12-01 Thread Xavier Mathews
http://www.mail-archive.com/android-developers@googlegroups.com/msg12887.html

Other than this i don't think sonot yet!

Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.










On Mon, Dec 1, 2008 at 3:38 AM, sunil kumar [EMAIL PROTECTED] wrote:

 RIL layer in android

--~--~-~--~~~---~--~~
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] Re: Wifi Ip Address

2008-12-01 Thread Xavier Mathews
IP Address?

Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.










On Mon, Dec 1, 2008 at 4:49 AM, Andrea [EMAIL PROTECTED] wrote:


 How can I get the Ip address assigned by a WiFi network to which my
 device is 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Wifi Ip Address

2008-12-01 Thread Ed

You could use the browser to access sites like http://www.showipaddress.com/

On Dec 1, 12:18 pm, Andrea [EMAIL PROTECTED] wrote:
 Yes, the ip address that the dhcp server of a wifi net assigns to my
 device.

 Xavier Mathews wrote:
  IP Address?

  Xavier A. Mathews
  Student/Browser Specialist/Developer/Web-Master
  Google Group Client Based Tech Support Specialist
  Hazel Crest Illinois
  [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
  Fear of a name, only increases fear of the thing itself.

  On Mon, Dec 1, 2008 at 4:49 AM, Andrea [EMAIL PROTECTED] wrote:

   How can I get the Ip address assigned by a WiFi network to which my
   device is 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: mp3s for games?

2008-12-01 Thread Xavier Mathews
Was there any other phone you wanted to do this for?

Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.










On Mon, Dec 1, 2008 at 11:21 AM, Dave Sparks [EMAIL PROTECTED]wrote:


 Decoding a single MP3 for a background audio track is not too bad. On
 the G1, OGG is a better format, less memory overhead and startup
 latency, plus you get seamless looping which MP3 does not do.

 I don't recommend using compressed audio like MP3 or OGG if you have
 lots of sound effects, because of the CPU overhead in decompressing
 them.

 On Nov 27, 10:18 am, Craig [EMAIL PROTECTED] wrote:
  I'm making a game, and I have an mp3 I would like to use to play in a
  loop for this game. This mp3 is several times larger than a midi file
  would be, but recreating my mp3 as a midi has proven to be a non-
  trivial task.
 
  What would the effects be of just using an mp3 of a few hundred kb in
  size instead of a midi file of around 10kb in size? I.e., would
  downloading the larger game be much of an issue? Would there be any
  significant penalties in performance or resource usage?
 


--~--~-~--~~~---~--~~
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] Re: (Service == Process)?

2008-12-01 Thread Mark Murphy

patrick wrote:
 I am a little confused about the difference between services and
 processes in Android. From what I understood:
  - each package may run as one process

At minimum. A package might have more than one process, though that is 
discouraged.

  - therefore an activity is a process

No, because a package may have more than one activity.

  - a service runs in the main thread of an activity (therefore it
 needs to run in the same process)

If it is a local service, yes. Or, in your AndroidManifest.xml file, you 
could specify that the service is to run in another process.

  - but from what I know a service uses another address space than the
 hosting activity

A local service shares the address space with anything else in that 
process, including, possibly, one or more activities.

  - because I don't know of another way in Linux to create a new
 virtual memory space than by using a new process I assume, that a
 service is actually a new process

Only if you set it up that way in AndroidManifest.xml. And, again, this 
is discouraged.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~-~--~~~---~--~~
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] Re: ice-e on Android?

2008-12-01 Thread Xavier Mathews
Possible yes but with runner i don't think so!

Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.










On Mon, Dec 1, 2008 at 7:28 AM, supernova [EMAIL PROTECTED] wrote:


 Is ist possible to run Ice-e on Android? Maybe with J2ME MIDP Runner?

 


--~--~-~--~~~---~--~~
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] Re: Wifi Ip Address

2008-12-01 Thread Xavier Mathews
I am nt sure you can change it. Which IP?

Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.










On Mon, Dec 1, 2008 at 12:22 PM, Ed [EMAIL PROTECTED] wrote:


 You could use the browser to access sites like
 http://www.showipaddress.com/

 On Dec 1, 12:18 pm, Andrea [EMAIL PROTECTED] wrote:
  Yes, the ip address that the dhcp server of a wifi net assigns to my
  device.
 
  Xavier Mathews wrote:
   IP Address?
 
   Xavier A. Mathews
   Student/Browser Specialist/Developer/Web-Master
   Google Group Client Based Tech Support Specialist
   Hazel Crest Illinois
   [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
   Fear of a name, only increases fear of the thing itself.
 
   On Mon, Dec 1, 2008 at 4:49 AM, Andrea [EMAIL PROTECTED]
 wrote:
 
How can I get the Ip address assigned by a WiFi network to which my
device is 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Parsing RSS feeds, encoding problems

2008-12-01 Thread Xavier Mathews
Ok Great!

Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.










On Mon, Dec 1, 2008 at 12:58 AM, ChisterNordvik [EMAIL PROTECTED] wrote:


 It's been added:
 http://code.google.com/p/android/issues/detail?id=1398

 -Christer

 On 1 Des, 01:55, Xavier Mathews [EMAIL PROTECTED] wrote:
  Same Problem Here. Post It In The Issue Tracker!
 
  On 11/30/2008, [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:
 
 
 
 
 
   Yes, I have also encountered the same problem. Any suggestions?
 
   On Nov 30, 10:53 pm, ChisterNordvik [EMAIL PROTECTED] wrote:
   Hi!
 
   Does anyone have a workingRSSparser with Android? I tried doing
   simple DOM parsing of the XML but the character encoding isn't handled
   properly so the norwegian characters aren't displayed. I have tried
   everything but when I get the description element I just get the text
   until the norwegian character. Any sample code of parsing
   internationalRSSfeeds would be very welcome!
 
   Here is the feed that I am having problems
   with:http://www.dagbladet.no/rss/fotball/
 
   -Christer
 
   Sample code that I started out with (have tried lots of encoding
   tricks to no avail):
 
   Feed feed = createFeed(this,
   new
   java.net.URI(http://www.dagbladet.no/rss/fotball/;));
   ...
   public Feed createFeed(Context ctx, URI rssurl) {
   Feed feed = new Feed();
   try {
DocumentBuilder builder =
 
DocumentBuilderFactory.newInstance().newDocumentBuilder();
Document doc =
   builder.parse(rssurl.toURL().openStream());
 
NodeList nodes =
 doc.getElementsByTagName(item);
for (int i = 0; i  nodes.getLength(); i++) {
  Element element = (Element) nodes.item(i);
 
  NodeList title =
   element.getElementsByTagName(title);
  Element line = (Element) title.item(0);
 
  String feedTitle =
   getCharacterDataFromElement(line);
  String url = getCharacterDataFromElement
   (element.getElementsByTagName(link).item(0));
  Article art = new Article();
  art.title = feedTitle;
  art.url = url;
  art.description = getCharacterDataFromElement
   (element.getElementsByTagName(description).item(0));
  feed.articles.add(art);
 
}
  }
  catch (Exception e) {
 e.printStackTrace();
  }
  return feed;
   }
   public static String getCharacterDataFromElement(Node e) {
  Node child = e.getFirstChild();
  if(child == null)
  return ?;
  if (child instanceof CharacterData) {
CharacterData cd = (CharacterData) child;
  return cd.getData();
}
  return ?;
}
 
  --
  Xavier A. Mathews
  Student/Browser Specialist/Developer/Web-Master
  Google Group Client Based Tech Support Specialist
  Hazel Crest Illinois
  [EMAIL PROTECTED]@[EMAIL PROTECTED]
  Fear of a name, only increases fear of the thing itself.
 


--~--~-~--~~~---~--~~
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] Re: (Service == Process)?

2008-12-01 Thread Dianne Hackborn
On Mon, Dec 1, 2008 at 5:41 AM, patrick [EMAIL PROTECTED] wrote:

  - therefore an activity is a process
   - but from what I know a service uses another address space than the
 hosting activity


If there is anything in
http://code.google.com/android/intro/appmodel.htmlor the other docs
leading you to this conclusion, please let me know what
that is so we can fix it. :)


 - how are AIDL IPC calls synchronized when they are different
 processes?


There is a special driver in the kernel called binder that takes care of
these IPCs.

-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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] Re: How to enable screen transition when launching Activity

2008-12-01 Thread Xavier Mathews
This needs to go to the issue tracker!

Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.










On Sun, Nov 30, 2008 at 4:45 PM, Jeremy Bornstein [EMAIL PROTECTED] wrote:


 A relevant question might be: if an external developer contributed
 high-quality inter-activity transition code to the open source Android
 codebase, would it be likely to be accepted?

 I do not believe that such a feature is covered by any patents, but it
 may be relevant that Google CEO Eric Schmidt is reportedly good
 friends with Apple CEO Steve Jobs, and Schmidt sits on Apple's board.
 It does not seem totally out of the question that these relationships
 would result in certain features being missing from Android for
 reasons which are not strictly in the interests of people using the
 Android platform.


 On Sun, Nov 30, 2008 at 11:43:24AM -0500, Dave Kong wrote:
  Will it be? Is it disabled due to possible bug or patent issues?
 
  On Sun, Nov 30, 2008 at 12:59 AM, Dianne Hackborn [EMAIL PROTECTED]
 wrote:
 
   Inter-activity transitions are not supported at this point, sorry.
  
   On Tue, Nov 25, 2008 at 11:51 PM, Tomei Ningen [EMAIL PROTECTED]
 wrote:
  
  
   This question was asked before
  
  
 http://groups.google.com/group/android-developers/browse_thread/thread/d5baa0831af53d80?q=android+G1+screen+transition#8cb9752ead82d2eb
  
   but I'll ask it again :-)
  
   On earlier Android SDK, when you are in home screen, and you launch an
   app (like Contacts), there's an iphone-like transition effect, where
   the new app is zoomed out.
  
   On G1 phone, this is disabled (probably due to poor performance). Is
   there anyway to turn it back on?
  
   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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: searchs in Android

2008-12-01 Thread Xavier Mathews
How To Search Using Android?
Search On Android?
Search In Android?

Which One? I am not understanding the question!

Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.










On Mon, Dec 1, 2008 at 10:58 AM, Peterman [EMAIL PROTECTED] wrote:


 Hi

 Someone know how to do a search in android? I would like make a search
 that it give me the coordenates of the locations founded. I heard
 about the class Geocoder but I don't know to use it or it this class
 is the solution.


 thanks a lot
 


--~--~-~--~~~---~--~~
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] Re: Android screen resolution limit

2008-12-01 Thread Dianne Hackborn
Hi, please post these types of questions to android-porting, thanks!

On Sun, Nov 30, 2008 at 7:30 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote:


 Hi,
 I have searched this group but couldn't find the answer:
 What's the largest screen resolution android support right now?
 We are going to port android on rather large size of scree and the
 resolution is about 1024X800. Can Android supports this? If not, is
 there any setup or configuration file I can change?

 thanks,

 Hill

 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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] Re: Can one application removes files of other application?

2008-12-01 Thread Dianne Hackborn
On Mon, Dec 1, 2008 at 3:56 AM, John Jiang [EMAIL PROTECTED] wrote:

 2) I want to use 'setuid su' security hole, but that is fixed on Android
 RC30.


This wasn't usable by applications, anyway, you had to press the physical
keys.


 Is it possible to remove files of other application?


No.

-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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] Re: Checking API: checkapi-last Error when compiling android source code after repo sync in 11/23/2008 Beijing Time

2008-12-01 Thread Dianne Hackborn
Please move this to one of the open-source groups.

On Sun, Nov 30, 2008 at 5:34 PM, dakman [EMAIL PROTECTED] wrote:


 I also got the same issue when I did the build Nov29,2008 on my
 ubuntu, after the repo sync, I did nothing else except make.

 I searched the google groups but did not find the fix for it. could
 someone guide me where I can find the discussion on it? thanks.

 error 17: Field android.media.AudioManager.ROUTE_ALL has
 changed value from 15 to -1


 On Nov 23, 5:55 pm, Jeff Hamilton [EMAIL PROTECTED] wrote:
  This should be fixed now.
 
  -Jeff
 
  On Sun, Nov 23, 2008 at 1:34 AM, Romain Guy [EMAIL PROTECTED]
 wrote:
 
   Either you changed a public API on your copy of the tree, or we broke
   the build :)
 
   On Sun, Nov 23, 2008 at 1:19 AM, [EMAIL PROTECTED]
   [EMAIL PROTECTED] wrote:
 
   when i try to repo sync and compile the android source code. A error
   is reported out. Would you like to let me know how to fix it? Thank
   you very much.
 
   Steps to reproduce the problem:
 1. repo sync
 2. make
 
   The error log is as below.
 
   [EMAIL PROTECTED]:/home/thomast/mydroid# make
   build/core/product_config.mk:229: WARNING: adding test OTA key
   build/core/main.mk:177: implicitly installing apns-conf_sdk.xml
   Checking API: checkapi-last
   (unknown): error 17: Fieldandroid.media.AudioManager.ROUTE_ALL has
   changed value from 15 to -1
 
   **
   You have tried to change the API from what has been previously
   released in
   an SDK.  Please fix the errors listed above.
   **
 
   make: *** [out/target/common/obj/PACKAGING/checkapi-last-timestamp]
   Error
   38
   [EMAIL PROTECTED]:/home/thomast/mydroid#
   [EMAIL PROTECTED]:/home/thomast/mydroid#
 
   --
   Romain Guy
  www.curious-creature.org

 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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] Re: Wifi Ip Address

2008-12-01 Thread Andrea

Yes, the ip address that the dhcp server of a wifi net assigns to my
device.

Xavier Mathews wrote:
 IP Address?

 Xavier A. Mathews
 Student/Browser Specialist/Developer/Web-Master
 Google Group Client Based Tech Support Specialist
 Hazel Crest Illinois
 [EMAIL PROTECTED]@[EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.










 On Mon, Dec 1, 2008 at 4:49 AM, Andrea [EMAIL PROTECTED] wrote:

 
  How can I get the Ip address assigned by a WiFi network to which my
  device is 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Theme setting for all applications

2008-12-01 Thread Dianne Hackborn
You can modify any of the resources however you want if you are rebuilding
the system.  These will be used without having to do anything.

Note that we are calling this skinning and generally does NOT involve
modifying theme resources; theme resources are used by applications to
specify the specific theme they want (dark background, light background,
dialog, etc).  Changing the global look of the UI will usually involve just
changing the resources for things like the button image, screen background,
etc.

On Mon, Dec 1, 2008 at 8:00 AM, Paul Anders [EMAIL PROTECTED]wrote:


 Thanks for the reply:)I understand that at this point there is no support
 for theme switch application which enables an end-user to choice theme from
 multiple themes like Windows OS I am looking forward to this feature to be
 delivered from Google.

 On the other hand, even if we cannot switch themes, I would like to try to
 modify default theme. Is it possible to do this by modifying themes.xml in
 the Android open source /frameworks/base/core/res/res/values directory and
 then making a build to create emulator?

 In addition to this, I found themes.xml and other resources
 in tools/lib/res/default/values in the Android SDK toolkit directory. I
 changed this xml file and other png files in drawable folder, but nothing
 changes in Android emulator... Why? Is there something else to do this?

 Regards,
 /Paul

 2008/12/1 Dianne Hackborn [EMAIL PROTECTED]

 There is some architecture work done for this, but a fair amount
 remaining.  At this point finishing the work is not scheduled on the
 roadmap.


 On Sun, Nov 30, 2008 at 4:31 PM, E [EMAIL PROTECTED] wrote:


 I'd like to know about full-OS themes too. It looks like (from the
 developer's kit) that such a thing is already supported in the backend
 (why wouldn't it be, right?), but there doesn't appear to be a system-
 level app that will manage or switch between theme configs.

 If this truly isn't available yet, when will it be?
 thanks,

  -Ethan

 On Nov 22, 11:58 pm, Paul Anders [EMAIL PROTECTED] wrote:
  Hello,
 
  I would like to ask you about how to change application theme. In case
 of
  application-specific theme, it is possible to change theme by asking
 your
  Activity to call setTheme(int theme). On the other hand, how can we
 change
  theme applicable to all applications which does not have their own
 theme? As
  you know, Windows OS has a theme setting which can be changed by an
 end-user
  in the display property of control panel. Does android platform support
 this
  feature?
 
  If Android platform does not support theme setting, I have the
 following
  solutions from developer point of view.
(1) Modify themes.xml provided by Android framework as default, and
 then
  make a build.
  (/frameworks/base/core/res/res/values/themes.xml)
(2) Change Android open source code to add new APIs for changing
 theme for
  all applications.
 
  Is there any other better solution to change theme for all
 applications?
 
  Regards,
  /Paul




 --
 Dianne Hackborn
 Android framework engineer
 [EMAIL PROTECTED]

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them.






 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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] Re: How to draw an image on top of another drawable?

2008-12-01 Thread Xavier Mathews
Yeah you can't do that even with xml when the program was written it was
scripted somewhere in there so its kinda like blocking and other abnormal
adjustments to itself from and user or program exe. The only way to do this
would be too rewrite it on windows platform or hack it using a unblocking
code for the script embedded!

Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.










On Mon, Dec 1, 2008 at 1:42 AM, Romain Guy [EMAIL PROTECTED] wrote:


 You have to use a LayerDrawable but it can be used only from XML (for
 now.) You can also simply create your own Drawable, it's pretty easy.

 On Sun, Nov 30, 2008 at 11:40 PM, Kakyoin [EMAIL PROTECTED] wrote:
 
  Hi.
 
  I'm playing with the Home sample (the one that is bundled with the
  SDK)
 
  I can change the Home screen background using this:
 
 
  getWindow().setBackgroundDrawable(image_mountain);
 
  Now I have a mountain as a background of my Home screen.
 
  Now let's assume I have a picture of a moon. (image_moon)
 
 
 
  Question: Is it possible to...
 
  1. programmatically put the moon on my mountain image.
  2. then set the new drawable: Mountain with the Moon on top as my
  Home screen background?
 
  I've explored the LayerDrawable class but it doesn't seem to solve my
  problem.
 
  Thank you in advance.
 
 
  
 



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



[android-developers] Re: Theme setting for all applications

2008-12-01 Thread Dianne Hackborn
Btw, discussion about modifying the open-source platform should be moved to
one of the open-source groups.

On Mon, Dec 1, 2008 at 11:09 AM, Dianne Hackborn [EMAIL PROTECTED]wrote:

 You can modify any of the resources however you want if you are rebuilding
 the system.  These will be used without having to do anything.

 Note that we are calling this skinning and generally does NOT involve
 modifying theme resources; theme resources are used by applications to
 specify the specific theme they want (dark background, light background,
 dialog, etc).  Changing the global look of the UI will usually involve just
 changing the resources for things like the button image, screen background,
 etc.


 On Mon, Dec 1, 2008 at 8:00 AM, Paul Anders [EMAIL PROTECTED]wrote:


 Thanks for the reply:)I understand that at this point there is no support
 for theme switch application which enables an end-user to choice theme from
 multiple themes like Windows OS I am looking forward to this feature to be
 delivered from Google.

 On the other hand, even if we cannot switch themes, I would like to try to
 modify default theme. Is it possible to do this by modifying themes.xml in
 the Android open source /frameworks/base/core/res/res/values directory and
 then making a build to create emulator?

 In addition to this, I found themes.xml and other resources
 in tools/lib/res/default/values in the Android SDK toolkit directory. I
 changed this xml file and other png files in drawable folder, but nothing
 changes in Android emulator... Why? Is there something else to do this?

 Regards,
 /Paul

 2008/12/1 Dianne Hackborn [EMAIL PROTECTED]

 There is some architecture work done for this, but a fair amount
 remaining.  At this point finishing the work is not scheduled on the
 roadmap.


 On Sun, Nov 30, 2008 at 4:31 PM, E [EMAIL PROTECTED] wrote:


 I'd like to know about full-OS themes too. It looks like (from the
 developer's kit) that such a thing is already supported in the backend
 (why wouldn't it be, right?), but there doesn't appear to be a system-
 level app that will manage or switch between theme configs.

 If this truly isn't available yet, when will it be?
 thanks,

  -Ethan

 On Nov 22, 11:58 pm, Paul Anders [EMAIL PROTECTED] wrote:
  Hello,
 
  I would like to ask you about how to change application theme. In case
 of
  application-specific theme, it is possible to change theme by asking
 your
  Activity to call setTheme(int theme). On the other hand, how can we
 change
  theme applicable to all applications which does not have their own
 theme? As
  you know, Windows OS has a theme setting which can be changed by an
 end-user
  in the display property of control panel. Does android platform
 support this
  feature?
 
  If Android platform does not support theme setting, I have the
 following
  solutions from developer point of view.
(1) Modify themes.xml provided by Android framework as default, and
 then
  make a build.
  (/frameworks/base/core/res/res/values/themes.xml)
(2) Change Android open source code to add new APIs for changing
 theme for
  all applications.
 
  Is there any other better solution to change theme for all
 applications?
 
  Regards,
  /Paul




 --
 Dianne Hackborn
 Android framework engineer
 [EMAIL PROTECTED]

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them.






 



 --
 Dianne Hackborn
 Android framework engineer
 [EMAIL PROTECTED]

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them.




-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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] Re: SharedPreferences problem

2008-12-01 Thread Dianne Hackborn
On Mon, Dec 1, 2008 at 5:59 AM, dar [EMAIL PROTECTED] wrote:

 Is there an exception thrown if the ... next time it is read it is
 unable to parse the truncated file.?

 If so, we could catch the exception and explain to the users that an
 error occurred reading the preferences, therefore we need to collect
 them again, or reset their preferences to the defaults.


No, there is no exception, and really even if you tell the user why they
lost all of their preferences that doesn't make anything better for them.
Best to not let it happen at all.

-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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] Re: Theme setting for all applications

2008-12-01 Thread Xavier Mathews
Well It Was Not About Open Source at first but now it is. Still Android is
an open source!

Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.










On Mon, Dec 1, 2008 at 1:12 PM, Dianne Hackborn [EMAIL PROTECTED] wrote:

 Btw, discussion about modifying the open-source platform should be moved to
 one of the open-source groups.


 On Mon, Dec 1, 2008 at 11:09 AM, Dianne Hackborn [EMAIL PROTECTED]wrote:

 You can modify any of the resources however you want if you are rebuilding
 the system.  These will be used without having to do anything.

 Note that we are calling this skinning and generally does NOT involve
 modifying theme resources; theme resources are used by applications to
 specify the specific theme they want (dark background, light background,
 dialog, etc).  Changing the global look of the UI will usually involve just
 changing the resources for things like the button image, screen background,
 etc.


 On Mon, Dec 1, 2008 at 8:00 AM, Paul Anders [EMAIL PROTECTED]wrote:


 Thanks for the reply:)I understand that at this point there is no
 support for theme switch application which enables an end-user to choice
 theme from multiple themes like Windows OS I am looking forward to this
 feature to be delivered from Google.

 On the other hand, even if we cannot switch themes, I would like to try
 to modify default theme. Is it possible to do this by modifying themes.xml
 in the Android open source /frameworks/base/core/res/res/values directory
 and then making a build to create emulator?

 In addition to this, I found themes.xml and other resources
 in tools/lib/res/default/values in the Android SDK toolkit directory. I
 changed this xml file and other png files in drawable folder, but nothing
 changes in Android emulator... Why? Is there something else to do this?

 Regards,
 /Paul

 2008/12/1 Dianne Hackborn [EMAIL PROTECTED]

 There is some architecture work done for this, but a fair amount
 remaining.  At this point finishing the work is not scheduled on the
 roadmap.


 On Sun, Nov 30, 2008 at 4:31 PM, E [EMAIL PROTECTED] wrote:


 I'd like to know about full-OS themes too. It looks like (from the
 developer's kit) that such a thing is already supported in the backend
 (why wouldn't it be, right?), but there doesn't appear to be a system-
 level app that will manage or switch between theme configs.

 If this truly isn't available yet, when will it be?
 thanks,

  -Ethan

 On Nov 22, 11:58 pm, Paul Anders [EMAIL PROTECTED] wrote:
  Hello,
 
  I would like to ask you about how to change application theme. In
 case of
  application-specific theme, it is possible to change theme by asking
 your
  Activity to call setTheme(int theme). On the other hand, how can we
 change
  theme applicable to all applications which does not have their own
 theme? As
  you know, Windows OS has a theme setting which can be changed by an
 end-user
  in the display property of control panel. Does android platform
 support this
  feature?
 
  If Android platform does not support theme setting, I have the
 following
  solutions from developer point of view.
(1) Modify themes.xml provided by Android framework as default, and
 then
  make a build.
  (/frameworks/base/core/res/res/values/themes.xml)
(2) Change Android open source code to add new APIs for changing
 theme for
  all applications.
 
  Is there any other better solution to change theme for all
 applications?
 
  Regards,
  /Paul




 --
 Dianne Hackborn
 Android framework engineer
 [EMAIL PROTECTED]

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them.










 --
 Dianne Hackborn
 Android framework engineer
 [EMAIL PROTECTED]

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them.




 --
 Dianne Hackborn
 Android framework engineer
 [EMAIL PROTECTED]

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  All such questions should be posted on public
 forums, where I and others can see and answer them.


 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Fw: [android-developers] Re: Android and bluetooth

2008-12-01 Thread Robert Green

I would like to add multiplayer support to Light Racer using bluetooth
so whatever allows device discovery, pairing and then streaming
transfer is what I need :)

On Dec 1, 7:20 am, supernova [EMAIL PROTECTED] wrote:
 I need to use SPP (Serial Port Profile)
--~--~-~--~~~---~--~~
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] Re: SharedPreferences problem

2008-12-01 Thread Dianne Hackborn
On Mon, Dec 1, 2008 at 6:36 AM, joshv [EMAIL PROTECTED] wrote:

 Regarding process death and preferences, I thought the same thing so I
 scaled back my persistence code to only save preferences in an onPause
 ().  It was my understanding that even when a task is killed, the
 onPause is called before the process is terminated - is that not the
 case?  Can the process be killed in the middle of the onPause()
 processing?  Perhaps this is a debugger only phenomenon?


There is nothing called before the process is terminated, if you are
thinking of it as the system thinks it needs to kill something, so politely
asks it to get ready and then kills it.  What actually happens it that
onPause is called when the system is going to put the process in a
background state, and from there at whatever point the system needs to get
rid of the process it will just kill it, no questions asked.

While onPause() is running, the process is in a foreground state, so it will
not be killed unless the system is so low on memory it needs to kill that
process to continue to have memory for the core system processes...  which
should only happen if the app is just using all of the available memory so
that not even background things can run.  Basically never for non-buggy
apps.

However, your process can get killed if you are installing an update to it,
because the first thing the system does is cleanup and kill all existing
code of the process before installing the update.  We should probably do
something to make this a little more clean for users installing updates.
And this same thing happens every time you run your app from eclipse, since
all it is really doing is telling the system to update to your current
version of the app.

-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
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] Re: Exchanging Messages between services containing Bundles with self developed Parcelables

2008-12-01 Thread Xavier Mathews
You Can't Reprogram it...What are you trying to do?

Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.










On Mon, Dec 1, 2008 at 10:24 AM, nimbus83 [EMAIL PROTECTED] wrote:


 Hello,

 It try to exchange objects of type android.os.Message between services
 in different processes. I add a bundle to each message. This bundle
 contains MyMessage object, which implements the Parcelable interface.

 I do it like this:
 Message message = new Message();

 Bundle bundle = new Bundle();
 MyMessage myMessage = new MyMessage(this is some info, 0);
 bundle.putParcelable(message, myMessage);

 message.setData(bundle);

 The code gets compiled, but at runtime I get the following error:
 android.  Class not found when unmarshalling:
 de.android.examples.handler.probe1.messages.MyMessage


 


--~--~-~--~~~---~--~~
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] Re: Camera Settings

2008-12-01 Thread Mark K

These features are supported by the G1 QCamera and driver, but they
haven't been implemented at the API level for Android 1.0, hopefully
some of these features will be supported in Android version 1.1.

Mark

On Nov 30, 1:47 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
 Hold On Are We Talking About G1 Or Apple IPhone Which Can Android?

 Xavier A. Mathews
 Student/Browser Specialist/Developer/Web-Master
 Google Group Client Based Tech Support Specialist
 Hazel Crest Illinois
 [EMAIL PROTECTED]@[EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.

 On Sun, Nov 30, 2008 at 3:29 PM, blindfold [EMAIL PROTECTED]wrote:





  There are such settings, but they are apparently not supported. See

 http://groups.google.com/group/android-developers/browse_thread/threa...

  On Nov 30, 4:24 pm, StarLog [EMAIL PROTECTED] wrote:
   There seems to be no settings for the camera, as far a lighting, i.e.
   setting day or night, setting flourescent or incadesent. Most cell
   phones with cameras have more options then this one, can we get a bit
   more control of the camera. My biggest concern is taking pictures in
   doors, and the lighitng is not sufficient to produce a viewable
   picture.

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



[android-developers] Re: HTTP compression lost when using 3G connection

2008-12-01 Thread Michael


If by Browser you mean the web browser on an Android device then
no, it's just a web browser.

But of course you can write your own application for Android that does
TCP/IP sockets to connect to some other service.

(also, maybe post a new thread next time?)
--~--~-~--~~~---~--~~
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] RatingBar ratingBarStyleSmall

2008-12-01 Thread chapp007

I am trying to put a RatingBar in a ListView with some text to the
left. I need the RatingBar to be small and read-only. I have looked in
the R.attr class and there seems to be a ratingBarStyleSmall
attribute. I have no idea how to set this attribute. I have tried

RatingBar android:id=@+id/rating
android:layout_width=wrap_content
android:layout_height=wrap_content ratingBarStyleSmall=true 
/

and I have also tried declaring a String resource with the hex value
that is described in the javadoc(this is the page I am referring to:
http://code.google.com/android/reference/android/R.attr.html#ratingBarStyleSmall).

It seems like setting an attribute on an object should be a trivial
thing but I have spent almost two days trying to figure this out.

Thanks for your time,

Josh

--~--~-~--~~~---~--~~
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] What happened to this API?

2008-12-01 Thread AlCapwn

I was looking at the Email app in Eclipse, but it seems some packages
have been removed from the SDK, especially android.text.util.Regex so
Eclipse starts spitting out errors.

Anyone know what the alternative to this API is or what happened to
the regex package? Take a look at MessageView.java to see what I mean:
http://android.git.kernel.org/?p=platform/packages/apps/Email.git;a=blob;f=src/com/android/email/activity/MessageView.java;h=851e54827e085d83c0a8ebd11c0b8cccb6955f05;hb=8978aac1977408b05e386ae846c30920c7faa0a6;#l28

--~--~-~--~~~---~--~~
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] What happened to this API?

2008-12-01 Thread AlCapwn

I was looking at the Email app in Eclipse, but it seems some packages
have been removed from the SDK, especially android.text.util.Regex so
Eclipse starts spitting out errors.

Anyone know what the alternative to this API is or what happened to
the regex package? Take a look at MessageView.java to see what I mean:
http://android.git.kernel.org/?p=platform/packages/apps/Email.git;a=blob;f=src/com/android/email/activity/MessageView.java;h=851e54827e085d83c0a8ebd11c0b8cccb6955f05;hb=8978aac1977408b05e386ae846c30920c7faa0a6;#l28

--~--~-~--~~~---~--~~
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] return types for java call from javascript with addjavascriptinterface

2008-12-01 Thread denzel

Hi,

I posted this message earlier in the Android beginners group, but
without any response. Maybe someone here could help me out.

WIth the addJavaScriptInterface method in WebView it's possible to
access Java methods from javascript. I'm wondering which types can be
returned by these methods? When you call a Java method from Javascript
that returns certain complex type like another Java class object, is
this object automatically binded to the webview, or do you have to
bind it yourself and how do you do this?

For I know, it doesn't work, but it's hard to debug, and I think it
should be possible though...

Kind regards,

Denzel

--~--~-~--~~~---~--~~
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] Re: When an app needs Google account credentials...

2008-12-01 Thread Semprebon

The first option (Client Login API) still requires your app to get the
google userid and password from the user. The second option (OAuth/
AuthSub) only applies to web apps (although I suppose you could launch
a browser session). What would be real nice from my standpoint would
be some way to store/retrieve data on google from your android app,
and then access it from a web app using OAuth. This would make it very
simple to sync data between the android app and web app without the
user having to set up anything on the android side of things.

On Dec 1, 8:51 am, Fred Grott(shareme) [EMAIL PROTECTED] wrote:
 Looks like the first and second options listed..

 Thanks for the link..

 Key question is are the hooks to those library apis already in Android
 Sdk?

 On Dec 1, 7:29 am, dar [EMAIL PROTECTED] wrote:

  I'm looking for this as well, to provide access to my google app
  engine applications.  I'm guessing they store the session
  authorization token from AuthSub somewhere (take a look at AuthSub
  here:http://code.google.com/apis/accounts/index.html).  It's probably
  just a matter of understanding where the token is stored so it can be
  passed into the http calls.

  Hopefully Dianne, or someone else, will clarify or correct me if I'm
  wrong.

  On Nov 30, 7:44 pm, androidian [EMAIL PROTECTED] wrote:

   Sorry guys, I have no idea how what you're talking about relates to
   what I was asking.  I'm not talking about making a clone of Android or
   anything like that.  I'm familiar with Android development, and I am
   part the way through coding my application; my question is basically
   where can I obtain the user's authenticated token so that I may
   interact with google services?

   cheers,
   Ian

--~--~-~--~~~---~--~~
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] Issues while using the VideoView

2008-12-01 Thread Nilangini

Hi,

1. I have used the following code related to VideoView.

mVideoView = (VideoView)findViewById(R.id.myvideoview);

mVideoView.setVideoPath(strVideoURL);
mVideoView.setMediaController(new MediaController(this));

This code is called from OnCreate as well as from a button click
event.
I do not want the video to start playing until user clicks on the play
button.
But, in this case, when the code is executed from OnCreate, the video
starts automatically.
Once we stop the video from playing and then click on a button, the
video does not start on its own.

2. As a result of the above code, the media controller appers near
the bottom of the screen whereas, the VideoView is placed near the top
of the screen.
Is there any way to get the mediaplayer on top of the VideoView?

3. Is there a way to make the media controller look smaller?

4. What is the best way to show a still alternate image (or the
first frame of the video if possible) when the video is not playing? I
get a black rectangle when the video is not playing (after the above
code statements are executed from a button click event).

Thanking you for all your suggestions,
Nilangini

--~--~-~--~~~---~--~~
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] Re: Camera Settings

2008-12-01 Thread Xavier Mathews
Ok thxs for letting me know!

Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.










On Mon, Dec 1, 2008 at 1:25 PM, Mark K [EMAIL PROTECTED] wrote:


 These features are supported by the G1 QCamera and driver, but they
 haven't been implemented at the API level for Android 1.0, hopefully
 some of these features will be supported in Android version 1.1.

Mark

 On Nov 30, 1:47 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
  Hold On Are We Talking About G1 Or Apple IPhone Which Can Android?
 
  Xavier A. Mathews
  Student/Browser Specialist/Developer/Web-Master
  Google Group Client Based Tech Support Specialist
  Hazel Crest Illinois
  [EMAIL PROTECTED]@[EMAIL PROTECTED]
  Fear of a name, only increases fear of the thing itself.
 
  On Sun, Nov 30, 2008 at 3:29 PM, blindfold [EMAIL PROTECTED]
 wrote:
 
 
 
 
 
   There are such settings, but they are apparently not supported. See
 
  http://groups.google.com/group/android-developers/browse_thread/threa.
 ..
 
   On Nov 30, 4:24 pm, StarLog [EMAIL PROTECTED] wrote:
There seems to be no settings for the camera, as far a lighting, i.e.
setting day or night, setting flourescent or incadesent. Most cell
phones with cameras have more options then this one, can we get a bit
more control of the camera. My biggest concern is taking pictures in
doors, and the lighitng is not sufficient to produce a viewable
picture.
 
Thanks for this excellent phone.- 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: RatingBar ratingBarStyleSmall

2008-12-01 Thread Mark Murphy

chapp007 wrote:
 I am trying to put a RatingBar in a ListView with some text to the
 left. I need the RatingBar to be small and read-only. I have looked in
 the R.attr class and there seems to be a ratingBarStyleSmall
 attribute. I have no idea how to set this attribute.

It's a style, not an attribute, despite appearing in R.attr.

Try adding style=?android:attr/ratingBarStyleSmall to your RatingBar 
in the XML.

You can see an example of this in ApiDemos/res/layout/ratingbar_1.xml, 
in the samples/ folder of your SDK installation.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 Available!

--~--~-~--~~~---~--~~
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] Re: RatingBar ratingBarStyleSmall

2008-12-01 Thread Xavier Mathews
When using the rating bar do you have to register certain sites for it to
rate or is it automatic? And i think you need a code form Google to get it
on a website that you want and i thought it rates by search engine
standards!
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.










On Mon, Dec 1, 2008 at 1:32 PM, Mark Murphy [EMAIL PROTECTED] wrote:


 chapp007 wrote:
  I am trying to put a RatingBar in a ListView with some text to the
  left. I need the RatingBar to be small and read-only. I have looked in
  the R.attr class and there seems to be a ratingBarStyleSmall
  attribute. I have no idea how to set this attribute.

 It's a style, not an attribute, despite appearing in R.attr.

 Try adding style=?android:attr/ratingBarStyleSmall to your RatingBar
 in the XML.

 You can see an example of this in ApiDemos/res/layout/ratingbar_1.xml,
 in the samples/ folder of your SDK installation.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 1.9 Available!

 


--~--~-~--~~~---~--~~
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] Re: Getting information from the Internet

2008-12-01 Thread Xavier Mathews
HttpClient client = new DefaultHttpClient();
   HttpGet getMethod = new HttpGet
(strURL);
   HttpResponse response = client.execute(getMethod);
   String res = EntityUtils.toString(response.getEntity());

Who's Code Would That Be? And what about the difference between http and htp
is there a code for each one?

Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.










On Mon, Dec 1, 2008 at 8:45 AM, loty [EMAIL PROTECTED] wrote:

 HttpClient client = new DefaultHttpClient();
HttpGet getMethod = new HttpGet
 (strURL);
HttpResponse response = client.execute(getMethod);
String res = EntityUtils.toString(response.getEntity());


--~--~-~--~~~---~--~~
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] Re: RatingBar ratingBarStyleSmall

2008-12-01 Thread Mark Murphy

Xavier Mathews wrote:
 
 When using the rating bar do you have to register certain sites for it 
 to rate or is it automatic? 

RatingBar is a widget, like Button or EditText or ListView.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 Available!

--~--~-~--~~~---~--~~
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] Re: GridView

2008-12-01 Thread Xavier Mathews
Where are you trying to stretch this? I believe you can if you are talking
about android i can go see for you.

Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.










On Mon, Dec 1, 2008 at 8:47 AM, Andriy Zakharchuk 
[EMAIL PROTECTED] wrote:


 Hello all,

 I have a question about grid view: is there any chance to stretch
 GridView vertically. What I'm trying to do is to create a screen with
 a limited number of items (6). I need exactly 2 columns and 3 rows (or
 3x2 in landscape mode) to fill all the screen.

 In a grid view I can control columns number, and columns stretching
 mode, but not rows. I'm looking into overriding
 AbsListView.generateLayoutParams() method, but want to ask first.
 Probably, there is some simpler way available.

 Thank you in advance.
 


--~--~-~--~~~---~--~~
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] Re: RatingBar ratingBarStyleSmall

2008-12-01 Thread Xavier Mathews
Right but are there add-on rate bars?

Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.










On Mon, Dec 1, 2008 at 1:45 PM, Mark Murphy [EMAIL PROTECTED] wrote:


 Xavier Mathews wrote:
 
  When using the rating bar do you have to register certain sites for it
  to rate or is it automatic?

 RatingBar is a widget, like Button or EditText or ListView.

 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 1.9 Available!

 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



  1   2   >