[android-developers] Native code is being called successfully but not executed properly

2009-09-09 Thread pink 444

hai folks,

In Android , Native code is written as follows.

JNIEXPORT void JNICALL Java_com_android_Test_show(JNIEnv *env, jobject
obj)
{
  printf(THIS IS TEST);
}

JNIEXPORT jint JNI_OnLoad(JavaVM *vm, void *reserved)
{
JNIEnv *env;
JNINativeMethod meth;
jclass k;
jint r;

r = (*vm)-GetEnv (vm, (void **) env, JNI_VERSION_1_4);
k = (*env)-FindClass (env, com.android.Test.show);


meth.name = show;
meth.signature = ()V;
meth.fnPtr = Java_com.android.Test.show;
r = (*env)-RegisterNatives (env, k, meth, 1);
return JNI_VERSION_1_4;



}


JNIEXPORT void JNI_OnUnload(JavaVM *vm, void *reserved)
{
JNIEnv *env;
jclass k;
jint r;
r = (*vm)-GetEnv (vm, (void **) env, JNI_VERSION_1_4);
k = (*env)-FindClass (env, com.android.Test.show);
(*env)-UnregisterNatives(env, k);


}


While executing on Android the following messages are obeserved in adb
logcat.

JNI (  524): Trying to load jni .so
I/System.out(  524): /system/lib
D/dalvikvm(  524): Trying to load lib /data/libjnilibs.so 0x433f22d0
D/dalvikvm(  524): Added shared lib /data/libjnilibs.so 0x433f22d0
I/ActivityManager(   50): Displayed activity
com.android.helloactivity

But THIS IS TEST is not being displayed, which is displayed in
native code.

There are no errors regarding loading shared library and calling
native code.Then why is the message is not displayed in logging.

Am i doing any mistake.If JNI_OnLoad and JNI_OnUnLoad are not
implemented i am getting errors in Logging.If i do as above i not
getting that native code message.


Any help would be appreciated highly.

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



[android-developers] Security framework available on android??

2009-09-09 Thread Sudeep Jha
Which security framework is available or can be ported to
android ?

Warm Regards,
Sudeep

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



[android-developers] Multiple data for an intent

2009-09-09 Thread Dexter#39;s Brain

Hi All,

I was just wondering if it is possible to give the intent a set of
data, instead of just one. A particular scenario where this could be
applicable would be a music application.

You select a list of songs, and pass all these data (file path) to the
Music Player's application.

Another scenario: You need to plot more than one address on the Google
Maps. You launch the application with a set of data for the intent.

Is this possible??

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



[android-developers] Re: Multiple data for an intent

2009-09-09 Thread AJ

You could put all data in Bundle and send this Bundle with the Intent.
This will solve your problem.

Thanks,
AJ

On Sep 10, 10:02 am, Dexter#39;s Brain coomar@gmail.com
wrote:
 Hi All,

 I was just wondering if it is possible to give the intent a set of
 data, instead of just one. A particular scenario where this could be
 applicable would be a music application.

 You select a list of songs, and pass all these data (file path) to the
 Music Player's application.

 Another scenario: You need to plot more than one address on the Google
 Maps. You launch the application with a set of data for the intent.

 Is this possible??

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



[android-developers] Is there any method to read sms and gmail?

2009-09-09 Thread 楊健

Hey everybody!

Is there any method to read sms and gmail?
It seems there is not any  provider to read sms and gmail.
But in Manifest.permission  I found READ_SMS(Allows an application
to read SMS messages.).
The android.telephony.gsm.SmsManager class allow us to sent a sms but
read.
If possible I want to read sms and gmail.

Thanks!


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



[android-developers] Re: Multiple data for an intent

2009-09-09 Thread Dexter's Brain

But, I don't have control over the target application. Suppose, I want
to send 3 geo points info to the google maps application, will this
solve my problem?

Thanks,
Dexter.

On Sep 10, 10:20 am, AJ ajeet.invinci...@gmail.com wrote:
 You could put all data in Bundle and send this Bundle with the Intent.
 This will solve your problem.

 Thanks,
 AJ

 On Sep 10, 10:02 am, Dexter#39;s Brain coomar@gmail.com
 wrote:

  Hi All,

  I was just wondering if it is possible to give the intent a set of
  data, instead of just one. A particular scenario where this could be
  applicable would be a music application.

  You select a list of songs, and pass all these data (file path) to the
  Music Player's application.

  Another scenario: You need to plot more than one address on the Google
  Maps. You launch the application with a set of data for the intent.

  Is this possible??

  Thanks,
  Dexter.


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



[android-developers] Re: Security framework available on android??

2009-09-09 Thread Roman ( T-Mobile USA)

The Bouncy Castle framework is part of Android. You can find it in
the  dalvik/libcore. If you want to use bouncy castle on SDK level you
can download a jar package from http://www.bouncycastle.org/

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

On Sep 9, 9:46 pm, Sudeep Jha sudeep.neti...@gmail.com wrote:
 Which security framework is available or can be ported to
 android ?

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



[android-developers] Re: Supported Media Formats Programmatically

2009-09-09 Thread kk

Hi Ajeet,

Thanks for the reply.

This is great information, but unfortunately does not address my
question.

I am not certain that querying the Webkit interface gurantees that the
mimetype is support on across the platform, let alone via Webkit based
applications.

Documentation to sparse to determine.

Regards,

KK


On Sep 9, 5:37 pm, Ajeet Singh ajeet.invinci...@gmail.com wrote:
 See the class MimeTypeMap.java (frameworks\base\core\java\android
 \webkit)

 Hope this helps you.

 AJ



 kk wrote:
  How do I determine programmatically which Media MimeTypes/Formats are
  supported on a specific device/platform?

  There doesn't appear to be any methods in Media Store or Media
  Managers to determine supported types on device.

  Is this by design or can we expect to see support in future releases?

  Regards,

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



[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-09 Thread broc.seib

For ADC2 I created BabelSnap! for the Travel category. You use the
device's camera to snap a bit of text, whether from a public sign, a
menu, or newspaper, etc.  The image is fed through an OCR, and the
resulting plain text can be translated to any language.

  http://babelsnap.com/   (Yes, the demo video has the world's
cheesiest and generic music. :-)  Maybe I should have left it with no
audio! )

I attended GoogleIO at the end of May where I first learned about
ADC2, and received one of the Google Ion devices. Substantial prize
money plus free device -- I could not ignore the opportunity to
participate. That prize money could afford me some more help, and
maybe some better OCR that recognizes non-latin characters, and maybe
help pay some bills too! :-)

I built BabelSnap in about 5 weeks. I had all the basic stuff
functioning in about half that time. The other half I spent learning
the idiosyncrasies of an android app -- like what happens when someone
presses the back button or home button while your background thread
(not your UI thread) is still doing processing...  And having to do
manual garbage collection when manipulating/copying large images from
the camera And the camera API itself -- could use some
improvements in documentation, and in the API itself. (That is another
topic.)

The version of BabelSnap I submitted to ADC works well if you can
acquire a good image for the OCR. But this takes a bit of practice,
holding the camera steady while focusing, framing the text properly,
and hitting the shutter button all at once. I want it to work a little
more casually, and not require so much practice. The revision I am
currently working on will permit the user to assist in picking out the
relevant bits of the snapped pic that contain the text they want to
translate, by simply touching/dragging across that part of the image.

In all, I have a very positive experience in creating an Android app.
I am impressed with what I could assemble in such a short period of
time.

As for the deadline and submitting updates.  Google *had* the draw
the line somewhere. I could have gone on indefinitely fixing things
up. I was glad to have a hard deadline, and sad to give up some
functions that I wish could have been present for the judging. I do
like the approach of continuing to make revisions available in the
Market independent of the ADC submission.

I also think Google has the right approach in trying to cultivate new
mobile app ideas -- everyone loves a little competition. And Google
seems serious; they've put forth a great deal of cash and hardware.

Good luck to all. I look forward to trying out your new apps.

-broc



On Sep 2, 12:41 am, Lout lout.r...@googlemail.com wrote:
 While you developers relax... would you mind sharing what apps to
 expect through this challenge.. and anything else you wish to share
 about ADC2 submissions... well anything including the fact: 'thank
 God, no more sleep less nights'!

 Am collecting information about the challenge (ADC2) for a news
 article as am with cnet (and AP). Pitch your app if you have already
 published or would soon publish on the market too.

 Your app name and description, web link if any, experience with
 ADC2, ... anything would be useful for our article(s).

 And do you feel that there would have been more submissions than in
 ADC1?
 Is the competition going to be tougher or less profound as you were
 allowed to put up apps not published before 1st Aug only?

 Do you think that all apps that didn't try for ADC1 should have had a
 chance?

 Congratulations on your submissions while you wait for the next
 phase.
 Thanks,
 Lout Reilly
 ps: Moderators we request you to let this through so that you too get
 some feedback.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Ethernet / IP over USB connection?

2009-09-09 Thread Chris Stratton

Usb ethernet dongles will not work at all, the current android phones
are usb devices themselves, and do not (yet) support connection to usb
devices, only to usb hosts.

The usb through to pc idea is workable to an extent, but it will
likely only be custom applications on the phone that are able to use
it, as the stock system images don't as far as I know support adding
additional network interfaces - you'd be limited to doing something
like ppp or http proxy over an adb port forward, unless you are are
allowed to change the system image to add kernel modules and
associated configuration.

On Sep 8, 9:43 pm, JavaNut i...@chiralsoftware.net wrote:
 Thanks Roman.  Sounds non-trivial.  I'm going to see if we can
 convince the customer to go with a plain old USB Ethernet adapter,
 which seems like it would be a lot easier to work with.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: manually restart an activity

2009-09-09 Thread Dianne Hackborn
Sorry there isn't really a way to do that right now.

On Tue, Sep 8, 2009 at 10:58 PM, jonathan topcod...@gmail.com wrote:


 Is there a way to restart an activity? The reason is that need to
 change the theme dynamically, and the activity needs to be restarted
 and redraw itself after the change.

 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android WVGA support

2009-09-09 Thread gasolin

Hello,

I was thinking there are plenty of hardware constrains in upcoming
android devices,
not only the screen resolution. There will be some devices without
compass, wifi, g-sensor... ,etc.

It will be nice that developer could pre-claimed the app requirement
and user could be notified before they install the app and feel bad
while the app hang (mostly without notice).

Donut's  'supports-screens' tag could be easily extend to this
suggested architecture if google guys think its helpful.
http://code.google.com/p/android/issues/detail?id=3693

Please 'Star' this issue in the above link if you think it's good for
android ecosystem.


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



[android-developers] Supported Media Formats Programmatically

2009-09-09 Thread kk

How do I determine programmatically which Media MimeTypes/Formats are
supported on a specific device/platform?

There doesn't appear to be any methods in Media Store or Media
Managers to determine supported types on device.

Is this by design or can we expect to see support in future releases?


Regards,

KK


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



[android-developers] Re: Android WVGA support

2009-09-09 Thread Dianne Hackborn
Supporting a wider variety of hardware has been an ongoing processes, and
was already started with 1.5 with the introduction of soft keyboards and
corresponding mechanisms for applications to declare they require hard
keyboards etc.  This will continue after Donut as well.

We are not going to drop a hardware requirement without having a mechanism
for applications to specify that they need the hardware and a strategy for
grand-fathering existing applications into the filtering.

On Tue, Sep 8, 2009 at 11:26 PM, gasolin gaso...@gmail.com wrote:


 Hello,

 I was thinking there are plenty of hardware constrains in upcoming
 android devices,
 not only the screen resolution. There will be some devices without
 compass, wifi, g-sensor... ,etc.

 It will be nice that developer could pre-claimed the app requirement
 and user could be notified before they install the app and feel bad
 while the app hang (mostly without notice).

 Donut's  'supports-screens' tag could be easily extend to this
 suggested architecture if google guys think its helpful.
 http://code.google.com/p/android/issues/detail?id=3693

 Please 'Star' this issue in the above link if you think it's good for
 android ecosystem.


 regards
 --
 gasolin
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: manually restart an activity

2009-09-09 Thread Jonas Petersson

Dianne Hackborn wrote:
 Sorry there isn't really a way to do that right now.
 
 On Tue, Sep 8, 2009 at 10:58 PM, jonathan topcod...@gmail.com 
 mailto:topcod...@gmail.com wrote:
 
 
 Is there a way to restart an activity? The reason is that need to
 change the theme dynamically, and the activity needs to be restarted
 and redraw itself after the change.

Suggestion for a workaround:

How about that you have little splash screen or similar minimal activity 
that starts up first and then start your main activity waiting för a 
result? The returned result could indicate whether the main activity 
needs to be restarted or not.

Best / Jonas


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



[android-developers] Re: manually restart an activity

2009-09-09 Thread Dianne Hackborn
Another possible one -- call startActivity() to start a new instance of your
activity and then call finish() in the current instance.  Trying to
propagate our current instance state would be very tricky though.

On Tue, Sep 8, 2009 at 11:36 PM, Jonas Petersson jonas.peters...@xms.sewrote:


 Dianne Hackborn wrote:
  Sorry there isn't really a way to do that right now.
 
  On Tue, Sep 8, 2009 at 10:58 PM, jonathan topcod...@gmail.com
  mailto:topcod...@gmail.com wrote:
 
 
  Is there a way to restart an activity? The reason is that need to
  change the theme dynamically, and the activity needs to be restarted
  and redraw itself after the change.

 Suggestion for a workaround:

 How about that you have little splash screen or similar minimal activity
 that starts up first and then start your main activity waiting för a
 result? The returned result could indicate whether the main activity
 needs to be restarted or not.

Best / Jonas


 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to get webview's content into a bitmap?

2009-09-09 Thread Ajeet Singh

Hi All,

I am trying to get the webview's content on a bitmap so that i can
save it as a image. But I am unable to so. I am getting the BLACK
image save instead. All content is missing :(

Anybody can help me regarding this.

Here is my code

~~

//create a webview
WebView w = new WebView(this);

//Loads the url
w.loadUrl(http://www.yahoo.com;);

//After loading completely, take its picture
Picture picture = w.capturePicture();

//Create a new canvas
Canvas mCanvas = new Canvas();

//Draw the Picture into the Canvas
picture.draw(mCanvas);

//Create a Bitmap
Bitmap sreenshot = Bitmap.createBitmap(picture.getWidth(),
picture.getHeight(),Config.ARGB_);

//copy the content fron Canvas to Bitmap
mCanvas.drawBitmap(mBitmapScreenshot, 0, 0, null);

//Save the Bitmap to local filesystem
if(sreenshot != null) {
ByteArrayOutputStream mByteArrayOpStream = new
ByteArrayOutputStream();
screenshot.compress(Bitmap.CompressFormat.JPEG, 90,
mByteArrayOpStream);
try {
fos = openFileOutput(yahoo.jpg,
MODE_WORLD_WRITEABLE);
fos.write(mByteArrayOpStream.toByteArray());
fos.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}

}

~~



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



[android-developers] how to get events out of a service.

2009-09-09 Thread sdphil

i understand how to call methods on a service (aidl, etc...), but how
does a service event information out.  how does it generate events
back to the application?

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



[android-developers] porting android

2009-09-09 Thread tica

If I want to porting Android to a new hardware platform, Is there any
basic reqirments of the hardware?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Layout editor , framework library reference

2009-09-09 Thread GPU

Hi ,


Which jar file the Layout editor uses to process the views?.

I am using eclipse . I added the new android.jar in library path .But
the framework changes not

reflected in in layout editor. So where i need to update the library
for layout editor?


Thanks  Regards

Gopu

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



[android-developers] How to display an arraylist

2009-09-09 Thread sweet

Hello i'm new to android developping and i've done a function which
return an arraylist type ArrayListArrayList.
I would like to display this array list for see if my function work.
Can you help me ?
Thanks
Sweet
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: USIM and ISIM Support

2009-09-09 Thread Android Development
USIM or ISIM applications will reside on the UICC card. For the ISIM
application, and the interface it exposes, please refer to the 3GPP
standards.

On Fri, Aug 28, 2009 at 10:13 AM, santosh kumar santosh.1...@gmail.comwrote:


 Hi Suziki,

 Thanks for quick reply.

 Can you please tell me where can i find in Android Source Code?

 Thanks
 Santosh

 On Aug 28, 9:28 am, suziki suziki790...@gmail.com wrote:
  Hi santosh kumar:I think using API mapping RIL /AT command (CPIN) for
 check
  is sim card
  using CRSM = CLA(0x00=3G) check is USIM, in ISIM card, please using Open
  channel command packet in CRSM or CSIM for
  enter to open a new logical  channel,
  using CSIM =read command (EFdir) for get ISIM aid.
 
  2009/8/28 santosh kumar santosh.1...@gmail.com
 
 
 
 
 
   Hi All,
 
   I have gone through the Android Source Code, I did't find any API to
   read ISIM information from the SIM Card.
 
   when does Android Support USIM and ISIM ?
 
   Can any body clarify me in this regard?
 
   Thanks
   Santosh- Hide quoted text -
 
  - Show quoted text -
 


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



[android-developers] Re: SQLlite issue

2009-09-09 Thread tstanly

thanks for reply,

I foud sqlite that can use .import to import csv file.



On 9月9日, 下午1時39分, Desu Vinod Kumar vinny.s...@gmail.com wrote:
 HI Here for exporting is there go through this and do that by using thias i
 think

 public class DatabaseAssistant
 {
 private static final String EXPORT_FILE_NAME = /sdcard/export.xml;

 private Context _ctx;
 private SQLiteDatabase _db;
 private Exporter _exporter;

 public DatabaseAssistant( Context ctx, SQLiteDatabase db )
 {
 _ctx = ctx;
 _db = db;

 try
 {
 // create a file on the sdcard to export the
 // database contents to
 File myFile = new File( EXPORT_FILE_NAME );
 myFile.createNewFile();

 FileOutputStream fOut =  new FileOutputStream(myFile);
 BufferedOutputStream bos = new
 BufferedOutputStream( fOut );

 _exporter = new Exporter( bos );
 }
 catch (FileNotFoundException e)
 {
 e.printStackTrace();
 }
 catch (IOException e)
 {
 e.printStackTrace();
 }
 }

 public void exportData( )
 {
 log( Exporting Data );

 try
 {
 _exporter.startDbExport( _db.getPath() );

 // get the tables out of the given sqlite database
 String sql = SELECT * FROM sqlite_master;

 Cursor cur = _db.rawQuery( sql, new String[0] );
 Log.d(db, show tables, cur size  + cur.getCount() 
 );
 cur.moveToFirst();

 String tableName;
 while ( cur.getPosition()  cur.getCount() )
 {
 tableName = cur.getString( 
 cur.getColumnIndex( name ) );
 log( table name  + tableName );

 // don't process these two tables since they 
 are used
 // for metadata
 if ( ! tableName.equals( android_metadata ) 
 
 ! tableName.equals( sqlite_sequence 
 ) )
 {
 exportTable( tableName );
 }

 cur.moveToNext();
 }
 _exporter.endDbExport();
 _exporter.close();
 }
 catch (IOException e)
 {
 e.printStackTrace();
 }
 }

 private void exportTable( String tableName ) throws IOException
 {
 _exporter.startTable(tableName);

 // get everything from the table
 String sql = select * from  + tableName;
 Cursor cur = _db.rawQuery( sql, new String[0] );
 int numcols = cur.getColumnCount();

 log( Start exporting table  + tableName );

 //  // logging
 //  for( int idx = 0; idx  numcols; idx++ )
 //  {
 //  log( column  + cur.getColumnName(idx) );
 //  }

 cur.moveToFirst();

 // move through the table, creating rows
 // and adding each column with name and value
 // to the row
 while( cur.getPosition()  cur.getCount() )
 {
 _exporter.startRow();
 String name;
 String val;
 for( int idx = 0; idx  numcols; idx++ )
 {
 name = cur.getColumnName(idx);
 val = cur.getString( idx );
 log( col ' + name + ' -- val ' + val + 
 ' );

 _exporter.addColumn( name, val );
 }

 _exporter.endRow();
 cur.moveToNext();
 }

 cur.close();

 _exporter.endTable();
 }

 private void log( String msg )
 {
 Log.d( DatabaseAssistant, msg );
 }

 class Exporter
 {
 private static final String CLOSING_WITH_TICK = ';
 private static final String START_DB = export-database 
 name=';
 private static final String END_DB = /export-database;
 private static final String START_TABLE = table 

[android-developers] Re: Android IMS support

2009-09-09 Thread Android Development
I have tried to contact the developers, as i wanted to contribute to this
project. However, i have not heard from them yet.

On Wed, Aug 26, 2009 at 12:38 AM, Roman ( T-Mobile USA) 
roman.baumgaert...@t-mobile.com wrote:


 The IMS code which you find on sourceforge is far from being
 completed. Based on the latest changes I doubt that the project is
 still active.

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

 On Aug 25, 6:20 am, Rayan Aryaan rayan.ary...@gmail.com wrote:
  Hi,
 
  As per the following link, Android already developed IMShttp://
 code.google.com/p/android-ims/
 
  Does it support JSR 281 and IMS SIP stack.
 
  Do Android have any plan to release this within Android 2.0 DONUT sdk?
 
  Please help.
 
  Thanks  Regards,
  Aryaan
 


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



[android-developers] simple notification crashing with IllegalArgumentException

2009-09-09 Thread sdphil

onCreate() --
nm = (NotificationManager) 
getSystemService(NOTIFICATION_SERVICE);


someOtherCall() --
Notification notification = new Notification(R.drawable.icon, 
some
text, System.currentTimeMillis());
nm.notify(NOTIFY_ID, notification);

crashes with Illegal Argument Exception

ideas?

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



[android-developers] Re: DatePicker throw java.lang.StackOverflowError when embbeded with TableRow

2009-09-09 Thread drago

Have the same problem, with only one difference. In my case EditText
is used as child of TableLayout (without TableRow).

Exception:
Uncaught handler: thread main exiting due to uncaught exception
java.lang.StackOverflowError
at android.text.method.ReplacementTransformationMethod
$SpannedReplacementCharSequence.getSpans
(ReplacementTransformationMethod.java:184)
at android.text.Styled.each(Styled.java:43)
at android.text.Styled.foreach(Styled.java:249)
at android.text.Styled.measureText(Styled.java:371)
at android.text.Layout.measureText(Layout.java:1477)








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



[android-developers] Re: DatePicker throw java.lang.StackOverflowError when embbeded with TableRow

2009-09-09 Thread Romain Guy

You have too many levels of views in your hierarchy. Remove some of them.

On Wed, Sep 9, 2009 at 12:54 AM, dragosdrag...@gmail.com wrote:

 Have the same problem, with only one difference. In my case EditText
 is used as child of TableLayout (without TableRow).

 Exception:
 Uncaught handler: thread main exiting due to uncaught exception
 java.lang.StackOverflowError
 at android.text.method.ReplacementTransformationMethod
 $SpannedReplacementCharSequence.getSpans
 (ReplacementTransformationMethod.java:184)
 at android.text.Styled.each(Styled.java:43)
 at android.text.Styled.foreach(Styled.java:249)
 at android.text.Styled.measureText(Styled.java:371)
 at android.text.Layout.measureText(Layout.java:1477)
 







 




-- 
Romain Guy
Android framework engineer
romain...@android.com

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



[android-developers] finishFromChild does not called

2009-09-09 Thread Atif

My child activity X is called from Parent activity P through
startActivity(intent).

I want to close P when X called its finish() method.

I override a method finishFromChild(Activity child) in P and called
finish() in it.

But this functions (finishFromChild(Activity child))  is not being
called after X finish()



Is it a known bug or I am missing some thing? I googled and also
searched the groups but no help.

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



[android-developers] Re: simple notification crashing with IllegalArgumentException

2009-09-09 Thread sdphil

rtfm - http://developer.android.com/guide/topics/ui/notifiers/notifications.html

On Sep 9, 12:52 am, sdphil phil.pellouch...@gmail.com wrote:
 onCreate() --
                 nm = (NotificationManager) 
 getSystemService(NOTIFICATION_SERVICE);

 someOtherCall() --
                 Notification notification = new Notification(R.drawable.icon, 
 some
 text, System.currentTimeMillis());
                 nm.notify(NOTIFY_ID, notification);

 crashes with Illegal Argument Exception

 ideas?

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



[android-developers] Re: Deep sleep behaviour

2009-09-09 Thread Lee

You can detect screen off and set an alarm every 5 seconds to poke the
service if you want to keep it doing something.
While the service is busy, make sure you hold a partial wake lock.
Have a look at the SMSPopup for an example of wakelock management.

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



[android-developers] Re: DatePicker and TimePicker CAN NOT be skined/themed !!

2009-09-09 Thread Lee

Really annoying that Date/Time are final classes as well so you can't
extend them.

Lee

On Sep 8, 8:46 pm, Armond Avanes armond...@yahoo.com wrote:
 Thanks for your answer... Yes, copying the source code will be the worse
 case but how about the future changes and improvements to these components?
 The change management will be a headache.

 After all, why is it so? Almost all components are skinnable... why not
 these ones? Does this mean that one can not develop a complete new theme
 (just theme!) for all components of Android? One has to pack some specific
 components as well.

 FYI, AlertDialog's button-bar has the same problem. I had to make my own
 AlertDialog derived directly from Dialog and do all the tricks there. Dialog
 themes are not automatically affected by the theme you set in
 AndroidManifest.xml.

 Best Regards,
 Armond

  -Original Message-
  From: android-developers@googlegroups.com [mailto:android-
  develop...@googlegroups.com] On Behalf Of Yusuf Saib (T-Mobile USA)
  Sent: Tuesday, September 08, 2009 11:49 PM

  You could always roll you own skinnable version, borrowing from the
  original source code.

  Yusuf Saib
  Android
  ·T· · ·Mobile· stick together
  The views, opinions and statements in this email are those of the
  author solely in their individual capacity, and do not necessarily
  represent those of T-Mobile USA, Inc.

  On Sep 8, 11:28 am, Armond Avanes armond...@yahoo.com wrote:
   Hi Guys,

   Is it just me or Android theme-ing system does not allow to set a theme
  for
   DatePicker and TimePicker? Searching themes.xml and styles.xml in
   Android source code (v1.5), I couldn't find anything related to these
  two
   components!

   Aren't they really skinable?

   Cheersss,
   Armond


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



[android-developers] Re: How to get webview's content into a bitmap?

2009-09-09 Thread Ajeet Singh

Hi gjs,

Thanks for pointing that error. But that was a type error. Now I am
pasting the correct code here.




WebView w = new WebView(this);
w.loadUrl(http://www.yahoo.com;);
Bitmap mBitmap  = null;
ByteArrayOutputStream mByteArrayOpStream= null;

//get the picture from the webview
Picture picture = w.capturePicture();

//Create the new Canvas
Canvas mCanvas = new Canvas();

//Copy the view canvas to a bitmap
try{
//w.draw(mCanvas);
//mCanvas.save();
//picture.draw(mCanvas);
mCanvas.drawPicture(picture);
//int restoreToCount =mCanvas.save();
//mCanvas.drawPicture(picture);
//mCanvas.restore();
}
catch (Exception e) {
e.printStackTrace();
}

mBitmap = Bitmap.createBitmap(w.getWidth(), w.getHeight
(),Config.ARGB_);
mCanvas.drawBitmap(mBitmap, 0, 0, null);

if(mBitmap!= null) {
mByteArrayOpStream = new ByteArrayOutputStream();
mBitmap.compress(Bitmap.CompressFormat.JPEG, 90,
mByteArrayOpStream);
try {
fos = openFileOutput(yahoo.jpg, MODE_WORLD_WRITEABLE);
fos.write(mByteArrayOpStream.toByteArray());
fos.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}




Thanks,
Ajeet Singh


On Sep 9, 12:29 pm, gjs garyjamessi...@gmail.com wrote:
 Hi,

 the code you posted refers to mBitmapScreenshotonce, how did you
 instantiate this, what is it content ? black maybe...

 your code also refers to screenshot but the only time you access is
 when you attempt to compress it into a byte array, what is it
 content ? black maybe...

 Regards

 PS you won't get much help here, if you can't be bothered to check
 your own code...

 On Sep 9, 4:40 pm, Ajeet Singh ajeet.invinci...@gmail.com wrote:

  Hi All,

  I am trying to get the webview's content on a bitmap so that i can
  save it as a image. But I am unable to so. I am getting the BLACK
  image save instead. All content is missing :(

  Anybody can help me regarding this.

  Here is my code

  ~~

  //create a webview
  WebView w = new WebView(this);

  //Loads the url
  w.loadUrl(http://www.yahoo.com;);

  //After loading completely, take its picture
  Picture picture = w.capturePicture();

  //Create a new canvas
  Canvas mCanvas = new Canvas();

  //Draw the Picture into the Canvas
  picture.draw(mCanvas);

  //Create a Bitmap
  Bitmap sreenshot = Bitmap.createBitmap(picture.getWidth(),
  picture.getHeight(),Config.ARGB_);

  //copy the content fron Canvas to Bitmap
  mCanvas.drawBitmap(mBitmapScreenshot, 0, 0, null);

  //Save the Bitmap to local filesystem
  if(sreenshot != null) {
          ByteArrayOutputStream mByteArrayOpStream = new
  ByteArrayOutputStream();
          screenshot.compress(Bitmap.CompressFormat.JPEG, 90,
  mByteArrayOpStream);
          try {
                  fos = openFileOutput(yahoo.jpg,
  MODE_WORLD_WRITEABLE);
                  fos.write(mByteArrayOpStream.toByteArray());
                  fos.close();
          } catch (FileNotFoundException e) {
                  e.printStackTrace();
          } catch (IOException e) {
                  e.printStackTrace();
          }

  }

  ~~

  Thanks,
  AJ


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



[android-developers] Custom java view and custom attributes or parameters from the XML

2009-09-09 Thread Efor18

Hi, I'm trying to make a libray which has a custom view, as a library
is not an android project  else a java project. I can't especify the
attributes or parameters in a xml file like in a usual android
project.

Are there any way to create custom parametres or attributes for a
custom view using only java?

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



[android-developers] A question about mediaplayer could not play rtsp?

2009-09-09 Thread yjshi


I create a mplayer to play the rtsp on the emulator . when the
mplayer play the http ,it is ok.
--
MediaPlayer mplayer = new MediaPlayer();
mplayer.setDataSource(rtsp://test.intra.3g.sina.com.cn/streaming/
20090313/wenjiabao1.mp4);
mplayer.prepare();
mplayer.start();
--
but when it play  the rtsp, it does'nt work.the Wireshark shows UDP
CHECKSUM INCORRECT.

 80689.93080310.4.70.24125.76.233.38
UDPSource port: 59211  Destination port: 6971 [UDP CHECKSUM
INCORRECT]
--
Then I let the mplayer worked on the device,but it is also has some
problems.Just like working on the emulator ,it doesn't play .Because
it is in the device ,I could not use the Wireshark to catch the
packets. I will be appreciate if anyone  could give me a suggestion .
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Supported Media Formats Programmatically

2009-09-09 Thread Ajeet Singh

See the class MimeTypeMap.java (frameworks\base\core\java\android
\webkit)

Hope this helps you.

AJ

kk wrote:
 How do I determine programmatically which Media MimeTypes/Formats are
 supported on a specific device/platform?

 There doesn't appear to be any methods in Media Store or Media
 Managers to determine supported types on device.

 Is this by design or can we expect to see support in future releases?


 Regards,

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



[android-developers] Running Application as Service

2009-09-09 Thread javame_android

Hi,

I want the application to run in background. This application should
run continuously and should never get killed. Will running application
as Service solve this issue? The application should get started
automatically on start up. I don't need any GUI for this application.
The main issue is Service getting Killed. Does service get killed ?
and in what conditions will that happen?

Hope to get a reply soon.




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



[android-developers] Re: Deep sleep behaviour

2009-09-09 Thread Android Development
I also have a query regarding this.
I have two questions:

1) Suppose, i want my service to go into deep sleep initially. If my phone
receives an incoming VoIP call (over the underlying IP connectivity, which
may be WiFi), then i wish to start an activity, and alert one of my services
to handle  the incoming call. Is there an alarm for which i can register,
for implementing this use case ?

2) My second question is, that is it possible for me to poll for the status
of Data connection states of the Android device using the states defined for
TelephonyManager ? If i wish to be notified somehow, when the data
connection is lost, connected or suspended etc asynchronously, how do i go
about it ? Or will i need to spawn a background thread that checks for the
data status constantly and notifies my application if any major event takes
place ?

Thanks in advance..


On Wed, Sep 9, 2009 at 1:47 PM, Lee lee.wil...@googlemail.com wrote:


 You can detect screen off and set an alarm every 5 seconds to poke the
 service if you want to keep it doing something.
 While the service is busy, make sure you hold a partial wake lock.
 Have a look at the SMSPopup for an example of wakelock management.

 Lee
 


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



[android-developers] Re: DatePicker and TimePicker CAN NOT be skined/themed !!

2009-09-09 Thread Armond Avanes

Lee,

Take a look at android.widget.DatePicker and android.widget.TimePicker
source codes, and you'll notice that they're using date_picker.xml and
time_picker.xml as they layouts. So far so good! Now take a look at
date_picker.xml source code and see those
com.android.internal.widget.NumberPicker components. The same story for
time_picker.xml. Even the worse is that DatePicker and TimePicker are both
referring to NumberPicker component in their codes.

So by extending these two classes, I can't see a way to do what I want. I
have to somehow deal with those internal API, unless I copy the whole code
and deal with my own version of DatePicker/TimePicker/NumberPicker from
scratch. Correct me if I'm wrong...

Armond


 -Original Message-
 From: android-developers@googlegroups.com [mailto:android-
 develop...@googlegroups.com] On Behalf Of Lee
 Sent: Wednesday, September 09, 2009 12:50 PM
 
 Really annoying that Date/Time are final classes as well so you can't
 extend them.
 
 Lee
 
 On Sep 8, 8:46 pm, Armond Avanes armond...@yahoo.com wrote:
  Thanks for your answer... Yes, copying the source code will be the worse
  case but how about the future changes and improvements to these
 components?
  The change management will be a headache.
 
  After all, why is it so? Almost all components are skinnable... why not
  these ones? Does this mean that one can not develop a complete new theme
  (just theme!) for all components of Android? One has to pack some
 specific
  components as well.
 
  FYI, AlertDialog's button-bar has the same problem. I had to make my own
  AlertDialog derived directly from Dialog and do all the tricks there.
 Dialog
  themes are not automatically affected by the theme you set in
  AndroidManifest.xml.
 
  Best Regards,
  Armond
 
   -Original Message-
   From: android-developers@googlegroups.com [mailto:android-
   develop...@googlegroups.com] On Behalf Of Yusuf Saib (T-Mobile USA)
   Sent: Tuesday, September 08, 2009 11:49 PM
 
   You could always roll you own skinnable version, borrowing from the
   original source code.
 
   Yusuf Saib
   Android
   ·T· · ·Mobile· stick together
   The views, opinions and statements in this email are those of the
   author solely in their individual capacity, and do not necessarily
   represent those of T-Mobile USA, Inc.
 
   On Sep 8, 11:28 am, Armond Avanes armond...@yahoo.com wrote:
Hi Guys,
 
Is it just me or Android theme-ing system does not allow to set a
 theme
   for
DatePicker and TimePicker? Searching themes.xml and styles.xml
 in
Android source code (v1.5), I couldn't find anything related to
 these
   two
components!
 
Aren't they really skinable?
 
Cheersss,
Armond
 
 
 

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



[android-developers] Re: Deep sleep behaviour

2009-09-09 Thread Android Development
I got the answer to question number 2 here:
http://developer.android.com/reference/android/telephony/PhoneStateListener.html
http://developer.android.com/reference/android/telephony/PhoneStateListener.htmlOnly
question 1 remains now.


On Wed, Sep 9, 2009 at 2:15 PM, Android Development indodr...@gmail.comwrote:

 I also have a query regarding this.
 I have two questions:

 1) Suppose, i want my service to go into deep sleep initially. If my phone
 receives an incoming VoIP call (over the underlying IP connectivity, which
 may be WiFi), then i wish to start an activity, and alert one of my services
 to handle  the incoming call. Is there an alarm for which i can register,
 for implementing this use case ?

 2) My second question is, that is it possible for me to poll for the status
 of Data connection states of the Android device using the states defined for
 TelephonyManager ? If i wish to be notified somehow, when the data
 connection is lost, connected or suspended etc asynchronously, how do i go
 about it ? Or will i need to spawn a background thread that checks for the
 data status constantly and notifies my application if any major event takes
 place ?

 Thanks in advance..


 On Wed, Sep 9, 2009 at 1:47 PM, Lee lee.wil...@googlemail.com wrote:


 You can detect screen off and set an alarm every 5 seconds to poke the
 service if you want to keep it doing something.
 While the service is busy, make sure you hold a partial wake lock.
 Have a look at the SMSPopup for an example of wakelock management.

 Lee
 



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



[android-developers] Re: Android WVGA support

2009-09-09 Thread Al Sutton

Dianne,

In the blog post can you cover how to produce one app which will run
on cupcake and donut and support multiple resolutions.

As I understand things at the moment developers will need at least two
versions of the same app listed in Market to cover both bases; One
with minSDK=4 and the supports-screens manifest tag and a separate
one for cupcake devices because cupcake won't run apps with minSDK 
3. If there is also a lite  paid for version you're then into 4 app
listings for the same app (lite, paid-for, multi-resolution lite,
multi-resolution paid-for), which seems like its' going to be a it of
a pain.

Thanks,

Al.


On Sep 9, 7:35 am, Dianne Hackborn hack...@android.com wrote:
 Supporting a wider variety of hardware has been an ongoing processes, and
 was already started with 1.5 with the introduction of soft keyboards and
 corresponding mechanisms for applications to declare they require hard
 keyboards etc.  This will continue after Donut as well.

 We are not going to drop a hardware requirement without having a mechanism
 for applications to specify that they need the hardware and a strategy for
 grand-fathering existing applications into the filtering.



 On Tue, Sep 8, 2009 at 11:26 PM, gasolin gaso...@gmail.com wrote:

  Hello,

  I was thinking there are plenty of hardware constrains in upcoming
  android devices,
  not only the screen resolution. There will be some devices without
  compass, wifi, g-sensor... ,etc.

  It will be nice that developer could pre-claimed the app requirement
  and user could be notified before they install the app and feel bad
  while the app hang (mostly without notice).

  Donut's  'supports-screens' tag could be easily extend to this
  suggested architecture if google guys think its helpful.
 http://code.google.com/p/android/issues/detail?id=3693

  Please 'Star' this issue in the above link if you think it's good for
  android ecosystem.

  regards
  --
  gasolin

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Decent AdMob revenue... Anyone?

2009-09-09 Thread Armond Avanes

Hi Guys,

Currently the country where I am is not supported by Google for selling
apps, so my second option is to use AdMob. But first I would like to hear
about your experiences with AdMob revenue generation... Does it generate any
decent revenue for your app(s)? Is it worth?

As well, if you know of any other way to monetize Android apps, please let
me know...

Thank you,
Armond


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



[android-developers] Re: Threads and Screen Orientation Change

2009-09-09 Thread Android Development
Hello,
From the conversation above, i understand that having a static reference to
the activity can be used by background threads (that we may spawn), to send
callbacks to the activity (which can then render stuff on the UI).

However, It would be helpful, if someone can also provide an example of
using Handlers.

For my understanding so far, I am posting some pseudo code below. Please
feel free to correct me/enhance the code, so that i may understand this
concept better.

I can create a static handler reference in my activity class like this:

private static MyHandler handler = new MyHandler();

My handler class may have the following structure (assuming that MyHandler
is an inner class of my Activity class):

public class MyHandler extends Handler
{
   public void processCallConnectedEvent ( Message m)
{
   // do stuff here..show a dialog that displays Call Connected on the
Activity's UI
  //sleep here for sometime, say 2 seconds..
 // dismiss the dialog.
}

   public void processCallDisconectedEvent (Message m)
{
   // Do the needful here, pop a dialog that displays Call
Disconnected
}

   public void processCallTimedOutEvent (Message m)
{
   // Do the needful here, pop a dialog that displays Call Attempt
timed out
}

}

On Tue, Sep 1, 2009 at 10:27 PM, Streets Of Boston
flyingdutc...@gmail.comwrote:


 You're welcome :-)

 And you can make your show/dismissDialogSmart 'static'. Then you never
 need a reference to an Activity at all. Just call
 OrientationAwareActivity.showDialogSmart(id)


 On Aug 31, 5:44 pm, CraigsRace craig...@gmail.com wrote:
   I deal with these situations by just keeping a public static reference
   around to the currently active activity. E.g.
 
  Brilliant idea!!!  That's the solution!
 
  And you could abstract it out into a sub class like this (I wish
  showDialog/dismissDialog weren't marked as final!):
 
  public class OrientationAwareActivity extends Activity {
  private static OrientationAwareActivity ACTIVE_INSTANCE;
 
  @Override
  protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
 
  ACTIVE_INSTANCE = this;
  }
 
  @Override
  protected void onDestroy() {
  super.onDestroy();
 
  ACTIVE_INSTANCE = null;
  }
 
  public void showDialogSmart(int id) {
  if (ACTIVE_INSTANCE != null) {
  ACTIVE_INSTANCE.showDialog(id);
  }
  }
 
  public void dismissDialogSmart(int id) {
  if (ACTIVE_INSTANCE != null) {
  ACTIVE_INSTANCE.dismissDialog(id);
  }
  }
 
 
 
  }- Hide quoted text -
 
  - Show quoted text -
 


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



[android-developers] Re: Threads and Screen Orientation Change

2009-09-09 Thread Android Development
oops. forgot to override handleMessage ( ) in the pseudo code above. Let us
assume, that in the handleMessage ( ), we decide which processxyz to call,
depending on the message received !
sorry..


On Wed, Sep 9, 2009 at 3:01 PM, Android Development indodr...@gmail.comwrote:

 Hello,
 From the conversation above, i understand that having a static reference to
 the activity can be used by background threads (that we may spawn), to send
 callbacks to the activity (which can then render stuff on the UI).

 However, It would be helpful, if someone can also provide an example of
 using Handlers.

 For my understanding so far, I am posting some pseudo code below. Please
 feel free to correct me/enhance the code, so that i may understand this
 concept better.

 I can create a static handler reference in my activity class like this:

 private static MyHandler handler = new MyHandler();

 My handler class may have the following structure (assuming that MyHandler
 is an inner class of my Activity class):

 public class MyHandler extends Handler
 {
public void processCallConnectedEvent ( Message m)
 {
// do stuff here..show a dialog that displays Call Connected on
 the Activity's UI
   //sleep here for sometime, say 2 seconds..
  // dismiss the dialog.
 }

public void processCallDisconectedEvent (Message m)
 {
// Do the needful here, pop a dialog that displays Call
 Disconnected
 }

public void processCallTimedOutEvent (Message m)
 {
// Do the needful here, pop a dialog that displays Call Attempt
 timed out
 }

 }

 On Tue, Sep 1, 2009 at 10:27 PM, Streets Of Boston 
 flyingdutc...@gmail.com wrote:


 You're welcome :-)

 And you can make your show/dismissDialogSmart 'static'. Then you never
 need a reference to an Activity at all. Just call
 OrientationAwareActivity.showDialogSmart(id)


 On Aug 31, 5:44 pm, CraigsRace craig...@gmail.com wrote:
   I deal with these situations by just keeping a public static reference
   around to the currently active activity. E.g.
 
  Brilliant idea!!!  That's the solution!
 
  And you could abstract it out into a sub class like this (I wish
  showDialog/dismissDialog weren't marked as final!):
 
  public class OrientationAwareActivity extends Activity {
  private static OrientationAwareActivity ACTIVE_INSTANCE;
 
  @Override
  protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
 
  ACTIVE_INSTANCE = this;
  }
 
  @Override
  protected void onDestroy() {
  super.onDestroy();
 
  ACTIVE_INSTANCE = null;
  }
 
  public void showDialogSmart(int id) {
  if (ACTIVE_INSTANCE != null) {
  ACTIVE_INSTANCE.showDialog(id);
  }
  }
 
  public void dismissDialogSmart(int id) {
  if (ACTIVE_INSTANCE != null) {
  ACTIVE_INSTANCE.dismissDialog(id);
  }
  }
 
 
 
  }- Hide quoted text -
 
  - Show quoted text -
 



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



[android-developers] Re: A question about mediaplayer could not play rtsp?

2009-09-09 Thread tstanly

this issue was still un-solute for a long time.

the only possiable answer I know,
is the stream must be a progressive stream.


so you can try a stream server that can support progressive.


On 9月9日, 下午4時29分, yjshi shiyaju...@gmail.com wrote:
 I create a mplayer to play the rtsp on the emulator . when the
 mplayer play the http ,it is ok.
 ---­---
 MediaPlayer mplayer = new MediaPlayer();
 mplayer.setDataSource(rtsp://test.intra.3g.sina.com.cn/streaming/
 20090313/wenjiabao1.mp4);
 mplayer.prepare();
 mplayer.start();
 ---­---
 but when it play  the rtsp, it does'nt work.the Wireshark shows UDP
 CHECKSUM INCORRECT.

  806        89.930803        10.4.70.24        125.76.233.38
 UDP        Source port: 59211  Destination port: 6971 [UDP CHECKSUM
 INCORRECT]
 ---­---
 Then I let the mplayer worked on the device,but it is also has some
 problems.Just like working on the emulator ,it doesn't play .Because
 it is in the device ,I could not use the Wireshark to catch the
 packets. I will be appreciate if anyone  could give me a suggestion .
 Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: I want to create the layout sample like settings in Andriod

2009-09-09 Thread Lance Nanek

On Sep 8, 11:58 pm, andymoris andymori...@gmail.com wrote:
 How can i create layout style similar to settings in Andriod
 emulator?

PreferenceActivity looks like that, I think. There are some examples
in the API demos. Using all code:
http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/app/PreferencesFromCode.html

Using XML:
http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/app/PreferencesFromXml.html
http://developer.android.com/guide/samples/ApiDemos/res/xml/preferences.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: N00b: Do I really need the official developer hardware kit?

2009-09-09 Thread Lance Nanek

On Sep 8, 9:42 pm, Mawg some.m...@gmail.com wrote:
 There are Chinese Android 'phones on eBay

Be careful. Some of the Chinese phones have a UI that looks like
Android, but not the actual OS:
http://www.engadget.com/2009/04/25/keepin-it-real-fake-part-ccii-meticulous-g1-clone-forgets-the/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: A question about mediaplayer could not play rtsp?

2009-09-09 Thread 石亚军
progressive stream is a address begin with http://;. And now
MediaPlayer could play the progressive streaming.

My question is how to play the real-time streaming.

I found some people have said that it could play the rtsp://.But I have
never done it successfully so far. So I want to know  the reason why if
could not play.If anyone else has played the real-time streaming ,please
give me a suggestion to solve this problem.  Thanks.

2009/9/9 tstanly tsai.sta...@gmail.com


 this issue was still un-solute for a long time.

 the only possiable answer I know,
 is the stream must be a progressive stream.


 so you can try a stream server that can support progressive.


 On 9月9日, 下午4時29分, yjshi shiyaju...@gmail.com wrote:
  I create a mplayer to play the rtsp on the emulator . when the
  mplayer play the http ,it is ok.
 
 ---­---
  MediaPlayer mplayer = new MediaPlayer();
  mplayer.setDataSource(rtsp://test.intra.3g.sina.com.cn/streaming/
  20090313/wenjiabao1.mp4);
  mplayer.prepare();
  mplayer.start();
 
 ---­---
  but when it play  the rtsp, it does'nt work.the Wireshark shows UDP
  CHECKSUM INCORRECT.
 
   80689.93080310.4.70.24125.76.233.38
  UDPSource port: 59211  Destination port: 6971 [UDP CHECKSUM
  INCORRECT]
 
 ---­---
  Then I let the mplayer worked on the device,but it is also has some
  problems.Just like working on the emulator ,it doesn't play .Because
  it is in the device ,I could not use the Wireshark to catch the
  packets. I will be appreciate if anyone  could give me a suggestion .
  Thanks.
 


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



[android-developers] Re: TabHost and startActivityForResult

2009-09-09 Thread Gavin

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



[android-developers] Re: onReceive not triggering for SEND / image

2009-09-09 Thread EnnaN

I know i'm bumping this, but i really think it's something simple i've
missed. Trying to avoid definitions i might be using incorrectly:

This is what i have:
An app that turns up in the share menu of the gallery.
Selecting my app starts it as if you would start it normally

This is what i don't have:
A way to react to the image i was looking at: i do not know where to
define code to do stuff with the picture.

Just a small nudge in the right direction is enough hopefully,
please? :D

Nanne.

On Sep 2, 1:51 pm, EnnaN nhui...@gmail.com wrote:
 Thanks!
 THen i'm just confused about how to react to the intent - at some
 point the images i'm sharing should be triggering some sort of event,
 so i can handle it. That's what i was trying to do with the receiver.
 Could you point me how to have a functions that reacts as an event-
 handler of the received 'SEND'?

 Nanne.

 On Sep 2, 8:52 am, Dianne Hackborn hack...@android.com wrote:

  SEND is an activity action.  All you need to do is have it in your manifest
  for an activity, as you have shown, and you know it is working because you
  see it in the share menu, and when you select your item in the share menu
  your activity will be launched with the intent.  That is all there is to
  it.  There is no broadcast receiver involved at all, anywhere.

  On Tue, Sep 1, 2009 at 11:42 PM, EnnaN nhui...@gmail.com wrote:

   FOr some more information: I did try to add the intent to an
   receiver in the manifest XML on a tip i got, but this not only
   didn't work to start my receiver class, it also removed the share
   option from the image i was trying to do something with... So not so
   big a succes.
   I'm sure it's a small thing i've missed (i hope ;) ), so if anyone can
   point me towards how what where?

    activity android:name=.TestingApp
              android:label=@string/app_name
        intent-filter
            action android:name=android.intent.action.MAIN /
            category android:name=android.intent.category.LAUNCHER /
        /intent-filter
     /activity
    receiver android:name=.ImageReceiver
        intent-filter
          action android:name=android.intent.action.SEND /
          category android:name=android.intent.category.DEFAULT /
          data android:mimeType=image/* /
          /intent-filter
     /receiver
   /application

   On Aug 31, 9:21 pm, EnnaN nhui...@gmail.com wrote:
There are a number of posts about getting your intent to actually
register, but unfortunately i was not able to distill a sollution from
them. The simple concept of getting an image and doing something with
it seems to be too much at the moment :(

I have the following in my manifest.xml:

application android:icon=@drawable/icon android:label=@string/
app_name android:theme=@android:style/Theme.NoTitleBar
        activity android:name=.TestingApp
                  android:label=@string/app_name
            intent-filter
                action android:name=android.intent.action.MAIN /
                category
android:name=android.intent.category.LAUNCHER /
            /intent-filter
            intent-filter
                        action 
android:name=android.intent.action.SEND
   /
                        category
   android:name=android.intent.category.DEFAULT /
                        data android:mimeType=image/* /
                        /intent-filter
        /activity
    /application

And this does what i thought it should do: when i press share on a
picture, i get my application as an option.
Now, to act on this selecting, i thought to do this:

registerReceiver(new BroadcastReceiver(){
            @Override
                public void onReceive(Context context, Intent intent) {
                   //do some stuff
                 }
        }, new IntentFilter(android.intent.action.SEND,image/*));

Now i've tried this with a seperate class, without the second argument
on the intentfilter, and with several variations of the intent
action.SEND, but it doesn't seem to fire when i share my picture.
Could anyone point me somewheres? Do i need an extra permission for
this intent maybe?

  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com

  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Map Overlays

2009-09-09 Thread Neilz

Ok well I've programmed question 2 myself, even though I'm sure the
API must provide a means to do it.

I still am puzzled about the Strings in the constructor. Maybe Android
maps don't work like they do on the web. For example, when you click
on a marker on GoogleMaps, an info panel pops up. I want to do that
here - but maybe that isn't possible? Do I have to use a simple Toast
or something similar from within the onTap() method?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Problem with launcher icon on update

2009-09-09 Thread MIMRAN D

Hi,

I have a problem with the launcher icon when I update my application
from 1.0 to 1.1.
I have the right launcher icon in 1.0 but not in 1.1 just after an
update. But, if I reboot my devices, it's ok.

In the manifest, I just increase the android:versionCode and
android:versionName but didn't change anything about my android:icon.
But, I have new image in the folder drawable in 1.1.

Here a copy of my manifest:

?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=bla
  android:versionCode=2
  android:versionName=1.1

application
android:label=@string/app_name
android:icon=@drawable/icon
android:allowClearUserData=true
android:debuggable=false 
activity android:name=.bla android:label=@string/
app_name android:screenOrientation=portrait
android:launchMode=singleTask android:icon=@drawable/icon
intent-filter android:icon=@drawable/icon
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
activity android:icon=@drawable/icon android:name=.bla
android:screenOrientation=portrait android:launchMode=singleTask/
activity
activity android:icon=@drawable/icon
android:name=.blb android:screenOrientation=portrait/
activity
activity android:icon=@drawable/icon
android:name=.blc android:screenOrientation=portrait
android:launchMode=singleTask/activity
activity android:icon=@drawable/icon android:name=.bld
android:screenOrientation=landscape/activity
activity android:icon=@drawable/icon android:name=.ble
android:screenOrientation=portrait/activity
activity android:icon=@drawable/icon android:name=.blf
android:screenOrientation=portrait android:launchMode=singleTask/
activity
activity android:icon=@drawable/icon android:name=.blg
android:screenOrientation=portrait/activity
activity android:icon=@drawable/icon android:name=.blh
android:screenOrientation=portrait/activity
/application

uses-sdk android:minSdkVersion=3 /
uses-permission android:name=android.permission.INTERNET /

/manifest

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



[android-developers] Re: Linking Directly To An App In The Market?

2009-09-09 Thread Jason Van Anden

Was this ever resolved.  I am looking to link to the Market from my
webpage - ie: someone visits my webpage, I tell them to download from
the market ... how exactly?  Do I tell them to just do a search when
they get there?

Jason Van Anden
http://www.bubblebeats.com


On Tue, Feb 24, 2009 at 3:17 AM, Jon Colverson jjc1...@gmail.com wrote:

 On Feb 24, 5:26 am, Peter Sankauskas pas...@gmail.com wrote:
 I have been researching the same thing and have not yet found an
 answer. Has anyone else discovered how to write a link that goes to an
 app in the android market?

 If you do a link like this:
 market://search?q=pname:com.example.package

 then it doesn't take you straight to the app listing, but it shows you
 a search list with just one result.

 --
 Jon

 


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



[android-developers] Re: N00b: Do I really need the official developer hardware kit?

2009-09-09 Thread Mark Murphy

Mawg wrote:
 The answer is probably yes, so I guess that what I am asking is if the
 official HDK makes life (significantly) easier for me.

Only if you are modifying the firmware. For ordinary application
(SDK-level) development, I would use any phone *other* than the ADP1.

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

Android App Developer Training: http://commonsware.com/training.html

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



[android-developers] Using Broadcast Receivers

2009-09-09 Thread Android Development
Hello everyone,

I had one question:
Is it feasible to use a BroadcastReceiver as a glue layer between the user
interface and the underlying business logic ?

Example use case:

Suppose i am maintaining the state of a call, and providing callbacks to the
UI by invoking sendBroadcast with the relevant intent. Similarly, my
underlying business logic can send broadcasts to the activity that has
registered for receiving it on certain events ( like call connected,
connecting, timed out etc).

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



[android-developers] Hero SDK

2009-09-09 Thread AndroidKing

I am getting the value 3 from android.os.Build.VERSION.SDK on Hero
phone

but I noticed that the contacts.db has changed schema

how do we identify the hero sdk from the cupcake 1.5??


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



[android-developers] Re: DatePicker and TimePicker CAN NOT be skined/themed !!

2009-09-09 Thread Lee

 So by extending these two classes, I can't see a way to do what I want. I
 have to somehow deal with those internal API, unless I copy the whole code
 and deal with my own version of DatePicker/TimePicker/NumberPicker from
 scratch. Correct me if I'm wrong...

No, sure, I agree.

I was just carping that they weren't even extendable anyway (I would
have liked to
change the functionallity a little for my own purposes).

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



[android-developers] Re: how to get events out of a service.

2009-09-09 Thread Mark Murphy

sdphil wrote:
 i understand how to call methods on a service (aidl, etc...), but how
 does a service event information out.  how does it generate events
 back to the application?

Option #1: Broadcast an Intent using sendBroadcast()

Option #2: Implement a callback mechanism, where the client creates an
AIDL interface and sends a corresponding object to the service, which
uses that object to communicate back to the client

You can see examples of the latter in the RemoteClientEx and
RemoteServiceEx examples from my Advanced Android book:

http://github.com/commonsguy/cw-advandroid/tree/e50e087577f8b28e727355c55097a5da2577d6d3/AdvServices

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

Need help for your Android OSS project? http://wiki.andmob.org/hado

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



[android-developers] Re: porting android

2009-09-09 Thread Mark Murphy

tica wrote:
 If I want to porting Android to a new hardware platform, Is there any
 basic reqirments of the hardware?

The [android-porting] Google Group is probably a better place for
questions about porting:

http://source.android.com/discuss

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

Need help for your Android OSS project? http://wiki.andmob.org/hado

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



[android-developers] Re: Running Application as Service

2009-09-09 Thread Mark Murphy

javame_android wrote:
 I want the application to run in background. This application should
 run continuously and should never get killed.

Strictly speaking, that is not possible.

 Will running application as Service solve this issue?

Not really. Services can be killed by Android (e.g., low memory
conditions) or by the user (e.g., Force Close button in Manage
Applications).

You can roll your own firmware and create daemons and such that are not
subject to being killed.

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

Need help for your Android OSS project? http://wiki.andmob.org/hado

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



[android-developers] Re: Using Broadcast Receivers

2009-09-09 Thread Mark Murphy

Android Development wrote:
 Is it feasible to use a BroadcastReceiver as a glue layer between the
 user interface and the underlying business logic ? 

Yes, but bear in mind that broadcast Intents are not private. Anyone who
figures out an appropriate Intent filter can listen in. Depending on
the nature of your application, this may or may not be acceptable to you.

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

Need help for your Android OSS project? http://wiki.andmob.org/hado

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



[android-developers] Re: Issues with installing subclipse and android plugin

2009-09-09 Thread akitto

I have the same issue but have ubuntu 9.04.

I have installed subclipse 1.6 and it work fine by without android
installed. Install the Andriod plug-in and then neither work.

Same but the other way round is also true

Install the android plugin then subclipse and neither work again.

I have also tried using some connector stuff in eclipse but I did not
have android plugin installed at that point nor did I get the
connector stuff working...



On Aug 17, 6:37 pm, Vince vince@gmail.com wrote:
 Anyone having issues with getting galileo eclipse for java working on
 Ubuntu with both subclipse and the android plugin?

 I can get the android plugin working when subclipse is not installed
 in eclipse, but as soon as I install subclipse all the configuration
 options for android plugin disappears from eclipse.

 The jar files for the android plugin are still in the ~/.eclipse/
 org.eclipse.platform_3.5.0_1328626006/plugins directory.

 I'm running the following version of ubuntu:

 No LSB modules are available.
 Distributor ID: Ubuntu
 Description:    Ubuntu 8.04.3 LTS
 Release:        8.04
 Codename:       hardy

 Here's the information about my eclipse:

 Eclipse IDE for Java Developers
 Build id: 20090619-0625

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



[android-developers] Re: Hero SDK

2009-09-09 Thread Mark Murphy

AndroidKing wrote:
 I am getting the value 3 from android.os.Build.VERSION.SDK on Hero
 phone
 
 but I noticed that the contacts.db has changed schema

Did they change the API for the Contacts content provider? If not, why
does it matter what the schema is, since you cannot access the
underlying database?

 how do we identify the hero sdk from the cupcake 1.5??

Tactically, Build.MODEL will hopefully distinguish a Hero from other
devices. I do not have a Hero, so I do not know what Build.MODEL reports.

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

Need help for your Android OSS project? http://wiki.andmob.org/hado

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



[android-developers] third party permission

2009-09-09 Thread Honest

Hello,

I need to get recently visited web pages  so i am using following
permission. I got its reference from
http://github.com/android/platform_packages_apps_browser/blob/0cb2af7646d0a41c0543a086021df3042bfc814a/AndroidManifest.xml.
But it is giving me error. can some one tell me what is wrong in it ?


uses-permission
android:name=com.android.browser.permission.READ_HISTORY_BOOKMARKS/
uses-permission
android:name=com.android.browser.permission.WRITE_HISTORY_BOOKMARKS/


!-- Allows an application to read the user Browser's history and
bookmarks. --

permission
android:name=com.android.browser.permission.READ_HISTORY_BOOKMARKS
android:permissionGroup=android.permission-
group.PERSONAL_INFO
android:label=string/permlab_readHistoryBookmarks
android:description=string/permdesc_readHistoryBookmarks
android:protectionLevel=dangerous /

!-- Allows an application to write (but not read) the user
Browser's history and bookmarks. --

permission
android:name=com.android.browser.permission.WRITE_HISTORY_BOOKMARKS
android:permissionGroup=android.permission-
group.PERSONAL_INFO
android:label=string/permlab_writeHistoryBookmarks
android:description=string/permdesc_writeHistoryBookmarks
android:protectionLevel=dangerous /



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



[android-developers] Re: CompareEverywhere

2009-09-09 Thread paultwa

hi Jeff,
Over the last month I 've been read your blog [http://jsharkey.org/
blog/ ],
and found some tips on how writing Android apps from your opensource,
such as 'Forecast' and 'GroupHome'.

Thanks

On Sep 8, 4:05 pm, Jeff Sharkey jshar...@android.com wrote:
 I've been meaning to open-source it, but haven't had the free time to
 pull together all the loose ends.  :)

 Is there something in particular you're looking to do?

 j

 On Tue, Sep 8, 2009 at 12:38 AM, paultwapaultwa2...@gmail.com wrote:

  hi,
     Is the project ‘CompareEverywhere’  the OpenSource one?
     If it is the OpenSource one, where can download it?

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



[android-developers] Re: Decent AdMob revenue... Anyone?

2009-09-09 Thread Donn Felker

Advertising revenue directly corresponds to traffic and CTR (clicks).
Any advertising venue will generate revenue if you get enough
traffic.

So, if your app is popular, yes. You will make some money. This is
probably a better question for the Admob Group:
http://groups.google.com/group/admob-publisher-discuss



On Sep 9, 4:27 am, Armond Avanes armond...@yahoo.com wrote:
 Hi Guys,

 Currently the country where I am is not supported by Google for selling
 apps, so my second option is to use AdMob. But first I would like to hear
 about your experiences with AdMob revenue generation... Does it generate any
 decent revenue for your app(s)? Is it worth?

 As well, if you know of any other way to monetize Android apps, please let
 me know...

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



[android-developers] Re: How to display an arraylist

2009-09-09 Thread sweet

Nobody can help me ?

On 9 sep, 09:30, sweet brou...@gmail.com wrote:
 Hello i'm new to android developping and i've done a function which
 return an arraylist type ArrayListArrayList.
 I would like to display this array list for see if my function work.
 Can you help me ?
 Thanks
 Sweet
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: A question about mediaplayer could not play rtsp?

2009-09-09 Thread Moto

I believe rstp supports only 3gp file format? I might be wrong...

On Sep 9, 5:55 am, 石亚军 shiyaju...@gmail.com wrote:
 progressive stream is a address begin with http://;. And now
 MediaPlayer could play the progressive streaming.

 My question is how to play the real-time streaming.

 I found some people have said that it could play the rtsp://.But I have
 never done it successfully so far. So I want to know  the reason why if
 could not play.If anyone else has played the real-time streaming ,please
 give me a suggestion to solve this problem.  Thanks.

 2009/9/9 tstanly tsai.sta...@gmail.com



  this issue was still un-solute for a long time.

  the only possiable answer I know,
  is the stream must be a progressive stream.

  so you can try a stream server that can support progressive.

  On 9月9日, 下午4時29分, yjshi shiyaju...@gmail.com wrote:
   I create a mplayer to play the rtsp on the emulator . when the
   mplayer play the http ,it is ok.

  ---­---
   MediaPlayer mplayer = new MediaPlayer();
   mplayer.setDataSource(rtsp://test.intra.3g.sina.com.cn/streaming/
   20090313/wenjiabao1.mp4);
   mplayer.prepare();
   mplayer.start();

  ---­---
   but when it play  the rtsp, it does'nt work.the Wireshark shows UDP
   CHECKSUM INCORRECT.

    806        89.930803        10.4.70.24        125.76.233.38
   UDP        Source port: 59211  Destination port: 6971 [UDP CHECKSUM
   INCORRECT]

  ---­---
   Then I let the mplayer worked on the device,but it is also has some
   problems.Just like working on the emulator ,it doesn't play .Because
   it is in the device ,I could not use the Wireshark to catch the
   packets. I will be appreciate if anyone  could give me a suggestion .
   Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: N00b: Do I really need the official developer hardware kit?

2009-09-09 Thread Phred

I went to ebay and got my self an unlocked T-Mobile G1 for about $319
CDN.  Went into settings and enabled the developer settings and boom
ready to roll.  Install Eclipse, the Android SDK and your set!

Avoid the Chinese crap... more than likely knockoffs!  If it looks to
good to be true... it's usually because it is!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Probing for an already set Alarm?

2009-09-09 Thread Walles

I'll use a Service instead of an Alarm and keep it running in the
background.  That way I can keep track of it myself.

Thanks for the input!

  Cheers /J

On 8 Sep, 07:34, Walles johan.wal...@gmail.com wrote:
 Hi!

 How can I probe for whether a specific alarm has been set?  I set the
 alarm as illustrated below, but how can I ask the OS whether or not
 the below code has been called?  The point is not to overwrite an
 existing alarm with a new one.

     public static void scheduleNextUpdate(Context context, long
 delay_seconds) {
         Intent intent = new Intent(context, Updater.class);
         PendingIntent pendingIntent =
             PendingIntent.getBroadcast(context, 0, intent, 0);
         AlarmManager alarmManger =
             (AlarmManager)context.getSystemService
 (Context.ALARM_SERVICE);

         long now = System.currentTimeMillis();
         long later = now + delay_seconds * 1000;
         Log.d(DrainOMeter.LOGGING_TAG, Scheduling next update in 
               + delay_seconds
               + s at 
               + new Date(later));
         alarmManger.set(AlarmManager.RTC, later, pendingIntent);
     }

 Full sources available 
 athttp://bazaar.launchpad.net/~walles/drain-o-meter/trunk/annotate/head...
 if needed.

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



[android-developers] Re: How to display an arraylist

2009-09-09 Thread Casper Bang

You can always log the content and use LogCat to view the ouput.

Or you could create a test Intent for the purpose:

public class DumpArray extends ListActivity{
public void onCreate(Bundle savedInstance){
super.onCreate(savedInstance);
setListAdapter( new ArrayAdapterString(this,
android.R.layout.simple_list_item_1, myArray);
}
}

/Casper

On 9 Sep., 16:18, sweet brou...@gmail.com wrote:
 Nobody can help me ?

 On 9 sep, 09:30, sweet brou...@gmail.com wrote:

  Hello i'm new to android developping and i've done a function which
  return an arraylist type ArrayListArrayList.
  I would like to display this array list for see if my function work.
  Can you help me ?
  Thanks
  Sweet
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to display an arraylist

2009-09-09 Thread Casper Bang

Oops, that should say Activity rather than Intent:

 Or you could create a test Intent for the purpose:

Double oops, I did not see you wanted to display ArrayListArrayList?
.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Popup list (similar to Spinner)

2009-09-09 Thread Jonas


Hi,

How can I pop up a list of items much like a Spinner but I don't wan't
the Spinner widgets itself (the drop down item).
I only like to pop up a list of items and select one item, what type
of widget can I use?

Also see my post Popup a spinner when clicking on a TextView .
I tried to change android.R.layout.simple_list_item_1 to get rid of
the Spinner dropdown widget, and only display the list of items, with
no luck.

Many thanks and regards Jonas.

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



[android-developers] Re: Popup list (similar to Spinner)

2009-09-09 Thread Mark Murphy

Jonas wrote:
 How can I pop up a list of items much like a Spinner but I don't wan't
 the Spinner widgets itself (the drop down item).
 I only like to pop up a list of items and select one item, what type
 of widget can I use?

A Button and an AlertDialog.

Or, a Button and a ListView, the latter of which has visibility of GONE
until the button is clicked. Use a RelativeLayout or FrameLayout to
allow the ListView to float over top other widgets in the activity.

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

_Android Programming Tutorials_ Version 1.0 In Print!

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



[android-developers] Re: A question about mediaplayer could not play rtsp?

2009-09-09 Thread yj shi
Also I have tried the 3gp,also something wrong happened.
Have you done it before ?
If you konw it could play ,please give me an example ,or piont my mistake
,or give me some suggestions. Thanks .

2009/9/9 Moto medicalsou...@gmail.com


 I believe rstp supports only 3gp file format? I might be wrong...

 On Sep 9, 5:55 am, 石亚军 shiyaju...@gmail.com wrote:
  progressive stream is a address begin with http://;. And now
  MediaPlayer could play the progressive streaming.
 
  My question is how to play the real-time streaming.
 
  I found some people have said that it could play the rtsp://.But I have
  never done it successfully so far. So I want to know  the reason why if
  could not play.If anyone else has played the real-time streaming ,please
  give me a suggestion to solve this problem.  Thanks.
 
  2009/9/9 tstanly tsai.sta...@gmail.com
 
 
 
   this issue was still un-solute for a long time.
 
   the only possiable answer I know,
   is the stream must be a progressive stream.
 
   so you can try a stream server that can support progressive.
 
   On 9月9日, 下午4時29分, yjshi shiyaju...@gmail.com wrote:
I create a mplayer to play the rtsp on the emulator . when the
mplayer play the http ,it is ok.
 
  
 ---­---
MediaPlayer mplayer = new MediaPlayer();
mplayer.setDataSource(rtsp://test.intra.3g.sina.com.cn/streaming/
20090313/wenjiabao1.mp4);
mplayer.prepare();
mplayer.start();
 
  
 ---­---
but when it play  the rtsp, it does'nt work.the Wireshark shows UDP
CHECKSUM INCORRECT.
 
 80689.93080310.4.70.24125.76.233.38
UDPSource port: 59211  Destination port: 6971 [UDP CHECKSUM
INCORRECT]
 
  
 ---­---
Then I let the mplayer worked on the device,but it is also has some
problems.Just like working on the emulator ,it doesn't play .Because
it is in the device ,I could not use the Wireshark to catch the
packets. I will be appreciate if anyone  could give me a suggestion .
Thanks.
 


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



[android-developers] Re: Probing for an already set Alarm?

2009-09-09 Thread Mark Murphy

Walles wrote:
 I'll use a Service instead of an Alarm and keep it running in the
 background.  That way I can keep track of it myself.

Please don't. For starters, it won't work, since the service may get
killed off by the user or the system. Also, while the service is in
memory, you are taking up one process' worth of RAM.

If you could explain to us what the effect is you are trying to achieve
(versus low-level technical statements, like not to overwrite an
existing alarm with a new one), we might be able to suggest alternative
patterns.

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

_Android Programming Tutorials_ Version 1.0 In Print!

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



[android-developers] Re: key lisener

2009-09-09 Thread dilli rao
By implementingonKeyDown   you can control key events


may be this will help you

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
// TODO Auto-generated method stub
//return super.onKeyDown(keyCode, event);
Log.i(getClass().getSimpleName(),  onKeyDown(int keyCode, KeyEvent event)
called ** );
if(keyCode == KeyEvent.KEYCODE_BACK)
{
Log.i(getClass().getSimpleName(), back key pressed   );
}
return true;
}

Thank you,

Dilli Rao


On Tue, Sep 8, 2009 at 3:36 PM, sasi kumar sasikumar.it1...@gmail.comwrote:

 use key lisener..


 On Tue, Sep 8, 2009 at 3:34 PM, sasi kumar sasikumar.it1...@gmail.comwrote:

 can any one give example for key lisener

 --
 Thanks  Regards
 Sasi Kumar.S




 --
 Thanks  Regards
 Sasi Kumar.S

 


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



[android-developers] Re: custom list view

2009-09-09 Thread dilli rao
see API demos   package : com.example.android.apis.view
file :   list14.java  example   in that you can modify the text view
properties as you need..

Thank you,
Dilli Rao

On Tue, Sep 8, 2009 at 11:21 AM, Sasi Kumar sasikumar.it1...@gmail.comwrote:


 I need a custom list view.

 For reducing the list view font size.

 I need a code for that..

 can any one help for this.

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



[android-developers] Re: A question about mediaplayer could not play rtsp?

2009-09-09 Thread dindin

On Sep 9, 4:55 am, 石亚军 shiyaju...@gmail.com wrote:
 progressive stream is a address begin with http://;. And now
 MediaPlayer could play the progressive streaming.

 My question is how to play the real-time streaming.



To my knowledege the current Android platform does not support Real-
time streaming - I am assuming by real-time, you mean Live here. If
play an MP4 file off a server, then RTSP and HTTP should give you
similar experience but the network profile will not be the same -
RTSP can control the bit stream rate and buffering along with RTCP.
For live support, would have to have an open ended file support such
as TS or segmented MP4.


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



[android-developers] Re: Text View issue....

2009-09-09 Thread Sudeep Sharma
Hi Mark Murphy,
 Please let me know the resolution for this..

Thanks in advance for your help.

~Sudeep...



On 9/9/09, Sudeep sudeep.andr...@gmail.com wrote:


 Hi,
   I have a list view with diffrent widgets(Text View , check box,
 togglebutton etc). I know in touch mode that  text view need not get
 focussed if user touches the text view as this is expected behaviour
 of Android framework.

 The problem I am facing is that when i click on the textview, it
 should show a momentary orange highlight to show the user what the
 user has clicked, but this is not happening for me and simply the
 functionality expected by that touch is performed. What I am
 missing...??

 Can anybody help please in this that how do i get this textview
 momentary highlighted in orange colour on touching it so that user
 knows that he has made touch selection for this textview.???

 Thanks and  Regards,
 Sudeep
 


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



[android-developers] Re: How to display an arraylist

2009-09-09 Thread sweet

Thank a lot for your help Casper yes i want to display this ArrayList:

public  ArrayListArrayList renvoi_liste_recette_xml() throws
Exception{

ArrayListArrayList aTableRetour = new ArrayListArrayList();
URL myURL = new URL(http://benji.roullet.free.fr/testXml.xml;);
  DocumentBuilderFactory fabrique = DocumentBuilderFactory.newInstance
();
  DocumentBuilder constructeur = fabrique.newDocumentBuilder();
  Document document = constructeur.parse(myURL.openStream());
  Element racine = document.getDocumentElement();
  NodeList liste = racine.getElementsByTagName(Contact);
  for(int i=0; iliste.getLength(); i++){
  ArrayListString aTableauTmp =  new ArrayListString();
  Element E1= (Element) liste.item(i);
  aTableauTmp.addAll((Collection? extends String)
E1.getElementsByTagName(nom));
  aTableRetour.add(aTableauTmp);
  }

return aTableRetour;

}


On 9 sep, 16:37, Casper Bang casper.b...@gmail.com wrote:
 Oops, that should say Activity rather than Intent:

  Or you could create a test Intent for the purpose:

 Double oops, I did not see you wanted to display ArrayListArrayList?

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



[android-developers] Problem in horizontal scroll in android

2009-09-09 Thread mudit

hello...

i am using a table layout in a screen. i need to have both horizontal
and vertical scrolls.
By default i am able to get vertical scroll in the view but horizontal
scroll is not working.

i am using android SDK 1.5 r3
i hv already tried android:scrollbars = horizontal.

i hv read on some forums that in cupcake update horizontal scroll is
possible in andorid.

please help..am i doing sumthing wrong.. or is there any other way
round to it??


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



[android-developers] Re: A question about mediaplayer could not play rtsp?

2009-09-09 Thread dillirao malipeddi
please start the player on  onPreparedListener()

On Wed, Sep 9, 2009 at 1:59 PM, yjshi shiyaju...@gmail.com wrote:



 I create a mplayer to play the rtsp on the emulator . when the
 mplayer play the http ,it is ok.

 --
 MediaPlayer mplayer = new MediaPlayer();
 mplayer.setDataSource(rtsp://test.intra.3g.sina.com.cn/streaming/
 20090313/wenjiabao1.mp4);
 mplayer.prepare();
 mplayer.start();

 --
 but when it play  the rtsp, it does'nt work.the Wireshark shows UDP
 CHECKSUM INCORRECT.

  80689.93080310.4.70.24125.76.233.38
 UDPSource port: 59211  Destination port: 6971 [UDP CHECKSUM
 INCORRECT]

 --
 Then I let the mplayer worked on the device,but it is also has some
 problems.Just like working on the emulator ,it doesn't play .Because
 it is in the device ,I could not use the Wireshark to catch the
 packets. I will be appreciate if anyone  could give me a suggestion .
 Thanks.
 



-- 
Dilli Rao. M
Software Developer
www.arijasoft.com
- a pioneer in Mobile App Development

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



[android-developers] Re: A question about mediaplayer could not play rtsp?

2009-09-09 Thread yj shi
I found that the source code of Opencore(PacketVideo) has a file that named
Streaming . The file is said to support the RTSP.I don't know whether it
could work well on the phone. Could you tell me whether Opencore  supports
RTSP? Thanks.

2009/9/9 dindin dinesh.nadara...@gmail.com


 On Sep 9, 4:55 am, 石亚军 shiyaju...@gmail.com wrote:
  progressive stream is a address begin with http://;. And now
  MediaPlayer could play the progressive streaming.
 
  My question is how to play the real-time streaming.
 


 To my knowledege the current Android platform does not support Real-
 time streaming - I am assuming by real-time, you mean Live here. If
 play an MP4 file off a server, then RTSP and HTTP should give you
 similar experience but the network profile will not be the same -
 RTSP can control the bit stream rate and buffering along with RTCP.
 For live support, would have to have an open ended file support such
 as TS or segmented MP4.


 


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



[android-developers] INCORRECT Download Count Vs. Active Install Count

2009-09-09 Thread sss

What is the deal with this market not registering when people
uninstall, then promptly reinstall?  I am 100% confident this is
occurring as my users seem to need to uninstall the app before
upgrading due to a widget service that continues to run using the old
code AFTER a user upgrades to a newer version, causing errors.
Uninstalling, then reinstalling fixes any errors as the service gets
stopped in so doing.

My MAJOR concern is the fact these users, who I am in contact with and
through server logs, clearly are reinstalling promptly following their
uninstall yet each new release I get an instant 20% less users in the
active user base.

This is causing the app to not only lose traction in popularity, it is
just a bunch of bullshit.  Fix this or stop penalizing people until
you figure this shit out.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MyTouch Lag Problems

2009-09-09 Thread Mike

Hey there.  I wanted to follow up and say that I haven't heard back
from any of my users that have the myTouch and toggling/turning off
the location services to see if it made a difference.

However, I came across something in my code which may be at least part
of the problem.  In WordUp! the user spells out words by tracing their
finger across the letters which are arranged on a square grid.

I handle onTouchEvent(MotionEvent event) calls to my view to determine
when the user first starts selecting, when they are dragging their
finger, and when the let up to do the appropriate drawing and
recording of letters during this gesture.

One thing I had not taken into consideration is the large number of
onTouchEvent calls I would get while the user is moving their finger
while it is pressed down.  I only needed to care about when their
finger enters the bounds of a new cube, and record and invalidate a
dirty rect to redraw that portion of the screen.  However, I was doing
this work on every call to onTouchEvent which was invalidating my
dirty rect many more times than it needed to.

Once I accounted for this, the drag gesture is a lot more responsive.
I haven't confirmed that this fix addresses the lag issues people have
seen using my game on the myTouch, but I'm very curious to find out.

Regards,

- Mike

On Aug 27, 1:22 pm, Mike michaeldouglaskra...@gmail.com wrote:
 Thanks everyone for your input.  I'm asking some of my users to do
 what Dianne suggested with toggling the location services off and on
 to see if that is enough to alleviate this problem.  I'll let you know
 what I find out.

 Regards,

 - Mike

 On Aug 27, 1:20 pm, Hong lordh...@gmail.com wrote:

  Thanks for the clarification!

  On Thu, Aug 27, 2009 at 3:03 PM, Dianne Hackborn hack...@android.comwrote:

   Next feature release.  I don't know what announcements have been made 
   about
   it, so I'm not in a position to say 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: manually restart an activity

2009-09-09 Thread Guillaume Perrot

Try simulating a configuration change you don't handle in manifest,
your activity will be restarted with the standard save/restore state
mechanism.

On Sep 9, 9:02 am, Dianne Hackborn hack...@android.com wrote:
 Another possible one -- call startActivity() to start a new instance of your
 activity and then call finish() in the current instance.  Trying to
 propagate our current instance state would be very tricky though.

 On Tue, Sep 8, 2009 at 11:36 PM, Jonas Petersson 
 jonas.peters...@xms.sewrote:





  Dianne Hackborn wrote:
   Sorry there isn't really a way to do that right now.

   On Tue, Sep 8, 2009 at 10:58 PM, jonathan topcod...@gmail.com
   mailto:topcod...@gmail.com wrote:

       Is there a way to restart an activity? The reason is that need to
       change the theme dynamically, and the activity needs to be restarted
       and redraw itself after the change.

  Suggestion for a workaround:

  How about that you have little splash screen or similar minimal activity
  that starts up first and then start your main activity waiting för a
  result? The returned result could indicate whether the main activity
  needs to be restarted or not.

                         Best / Jonas

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: A question about mediaplayer could not play rtsp?

2009-09-09 Thread yj shi
Are you meaning that set a PreparedListener to see what wrong is ?I will try
this method later.And I also have a question.
My question is whether the mediaplayer could play RTSP.
Because I ask so many people ,and I also get so many answer.
Too many people tell me that it could not play on the emulator but could
play on the device(phone).
I tried on the device but failed.
So could you tell me whether the mediaplayer could play rtsp?
Thank you very much.

2009/9/9 yj shi shiyaju...@gmail.com

 I found that the source code of Opencore(PacketVideo) has a file that named
 Streaming . The file is said to support the RTSP.I don't know whether it
 could work well on the phone. Could you tell me whether Opencore  supports
 RTSP? Thanks.

 2009/9/9 dindin dinesh.nadara...@gmail.com


 On Sep 9, 4:55 am, 石亚军 shiyaju...@gmail.com wrote:
  progressive stream is a address begin with http://;. And now
  MediaPlayer could play the progressive streaming.
 
  My question is how to play the real-time streaming.
 


 To my knowledege the current Android platform does not support Real-
 time streaming - I am assuming by real-time, you mean Live here. If
 play an MP4 file off a server, then RTSP and HTTP should give you
 similar experience but the network profile will not be the same -
 RTSP can control the bit stream rate and buffering along with RTCP.
 For live support, would have to have an open ended file support such
 as TS or segmented MP4.


 



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



[android-developers] Re: Problem in horizontal scroll in android

2009-09-09 Thread Mark Murphy

mudit wrote:
 hello...
 
 i am using a table layout in a screen. i need to have both horizontal
 and vertical scrolls.
 By default i am able to get vertical scroll in the view but horizontal
 scroll is not working.
 
 i am using android SDK 1.5 r3
 i hv already tried android:scrollbars = horizontal.
 
 i hv read on some forums that in cupcake update horizontal scroll is
 possible in andorid.
 
 please help..am i doing sumthing wrong.. or is there any other way
 round to it??

http://stackoverflow.com/questions/1399605/problem-in-horizontal-scroll-in-android

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

Android 1.5 Programming Books: http://commonsware.com/books.html

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



[android-developers] Re: XML-RPC

2009-09-09 Thread Wouter

Nobody knows a solution for this?

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



[android-developers] Re: MyTouch Lag Problems

2009-09-09 Thread Dianne Hackborn
Another thing you should probably consider -- the MotionEvent may contain
more than one movement, as part of the historical data.  So, especially if
you have a little overhead in handling events, if someone moves their finger
quickly you may get a single motion event with some historical points inside
of a box but the final one outside.

On Wed, Sep 9, 2009 at 8:42 AM, Mike michaeldouglaskra...@gmail.com wrote:


 Hey there.  I wanted to follow up and say that I haven't heard back
 from any of my users that have the myTouch and toggling/turning off
 the location services to see if it made a difference.

 However, I came across something in my code which may be at least part
 of the problem.  In WordUp! the user spells out words by tracing their
 finger across the letters which are arranged on a square grid.

 I handle onTouchEvent(MotionEvent event) calls to my view to determine
 when the user first starts selecting, when they are dragging their
 finger, and when the let up to do the appropriate drawing and
 recording of letters during this gesture.

 One thing I had not taken into consideration is the large number of
 onTouchEvent calls I would get while the user is moving their finger
 while it is pressed down.  I only needed to care about when their
 finger enters the bounds of a new cube, and record and invalidate a
 dirty rect to redraw that portion of the screen.  However, I was doing
 this work on every call to onTouchEvent which was invalidating my
 dirty rect many more times than it needed to.

 Once I accounted for this, the drag gesture is a lot more responsive.
 I haven't confirmed that this fix addresses the lag issues people have
 seen using my game on the myTouch, but I'm very curious to find out.

 Regards,

 - Mike

 On Aug 27, 1:22 pm, Mike michaeldouglaskra...@gmail.com wrote:
  Thanks everyone for your input.  I'm asking some of my users to do
  what Dianne suggested with toggling the location services off and on
  to see if that is enough to alleviate this problem.  I'll let you know
  what I find out.
 
  Regards,
 
  - Mike
 
  On Aug 27, 1:20 pm, Hong lordh...@gmail.com wrote:
 
   Thanks for the clarification!
 
   On Thu, Aug 27, 2009 at 3:03 PM, Dianne Hackborn hack...@android.com
 wrote:
 
Next feature release.  I don't know what announcements have been made
 about
it, so I'm not in a position to say anything.
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is the limit of memory heap only 6M?

2009-09-09 Thread Peter Jeffe

On Aug 28, 3:17 pm, fadden fad...@android.com wrote:
 The bitmap memory isn't actually stored on the VM heap -- it's an
 external allocation -- so improvements to the GC will not help this
 much.

I assumed that the problem is that the native code tries to allocate
memory but the native allocator for some reason can't move the heap
boundary--basically it seems like Android's malloc() doesn't just call
brk() or its equivalent when it needs more memory, so it rejects the
malloc instead.

To me this is a critical problem.  We have a map-based app that gets
frequent errors when the map framework tries to allocate new images to
draw the screen.  We have absolutely no control over their code, can't
retry allocations etc., so our app just dies.  This is a very serious
problem, has been since the start of Android, and really needs to be
fixed.

In my own code I can catch the OOM error and free up memory, do gc()
calls, and retry, and that usually gets me past it, but I have no such
options when other code is doing the allocation.  Is there a reason
why this isn't considered a serious problem that should be fixed ASAP?

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



[android-developers] Re: XML-RPC

2009-09-09 Thread skink



On Sep 9, 6:08 pm, Wouter wouterg...@gmail.com wrote:
 Nobody knows a solution for this?

 Wouter

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



[android-developers] Re: A question about mediaplayer could not play rtsp?

2009-09-09 Thread tstanly

I try for many before,
the emulator always fail,
and plz try this rtsp stream, I was success for this stream before,
and now I still success to play this stream,but only for this address.

that's why someone mention it's a stream server issue.

rtsp://video2.americafree.tv/AFTVHorrorH26496.sdp

On 9月9日, 下午11時50分, yj shi shiyaju...@gmail.com wrote:
 Are you meaning that set a PreparedListener to see what wrong is ?I will try
 this method later.And I also have a question.
 My question is whether the mediaplayer could play RTSP.
 Because I ask so many people ,and I also get so many answer.
 Too many people tell me that it could not play on the emulator but could
 play on the device(phone).
 I tried on the device but failed.
 So could you tell me whether the mediaplayer could play rtsp?
 Thank you very much.

 2009/9/9 yj shi shiyaju...@gmail.com



  I found that the source code of Opencore(PacketVideo) has a file that named
  Streaming . The file is said to support the RTSP.I don't know whether it
  could work well on the phone. Could you tell me whether Opencore  supports
  RTSP? Thanks.

  2009/9/9 dindin dinesh.nadara...@gmail.com

  On Sep 9, 4:55 am, 石亚军 shiyaju...@gmail.com wrote:
   progressive stream is a address begin with http://;. And now
   MediaPlayer could play the progressive streaming.

   My question is how to play the real-time streaming.

  To my knowledege the current Android platform does not support Real-
  time streaming - I am assuming by real-time, you mean Live here. If
  play an MP4 file off a server, then RTSP and HTTP should give you
  similar experience but the network profile will not be the same -
  RTSP can control the bit stream rate and buffering along with RTCP.
  For live support, would have to have an open ended file support such
  as TS or segmented MP4.- 隱藏被引用文字 -

 - 顯示被引用文字 -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: XML-RPC

2009-09-09 Thread Wouter

yes i have the latest version from the svn but it is still a known
issue: http://code.google.com/p/android-xmlrpc/issues/detail?id=8

really need to get this fixed, cant do anything without this..

On 9 sep, 18:19, skink psk...@gmail.com wrote:
 On Sep 9, 6:08 pm, Wouter wouterg...@gmail.com wrote:

  Nobody knows a solution for this?

  Wouter

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



[android-developers] Re: Is the limit of memory heap only 6M?

2009-09-09 Thread Dianne Hackborn
On Wed, Sep 9, 2009 at 9:19 AM, Peter Jeffe pje...@gmail.com wrote:

 I assumed that the problem is that the native code tries to allocate
 memory but the native allocator for some reason can't move the heap
 boundary--basically it seems like Android's malloc() doesn't just call
 brk() or its equivalent when it needs more memory, so it rejects the
 malloc instead.


Of course it can grow the heap.  It will also use mmap for allocations over
64K so they aren't in the main heap at all.  (Fwiw, the allocator is a
somewhat modified version of the standard dlmalloc.)


 To me this is a critical problem.  We have a map-based app that gets
 frequent errors when the map framework tries to allocate new images to
 draw the screen.  We have absolutely no control over their code, can't
 retry allocations etc., so our app just dies.  This is a very serious
 problem, has been since the start of Android, and really needs to be
 fixed.


The standard maps app uses the same library, and at this point doesn't have
such problems as far as I know.  My guess is that put together your app is
just using too much memory.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: N00b: Do I really need the official developer hardware kit?

2009-09-09 Thread Dianne Hackborn
On Wed, Sep 9, 2009 at 2:41 AM, Lance Nanek lna...@gmail.com wrote:

 Be careful. Some of the Chinese phones have a UI that looks like
 Android, but not the actual OS:

 http://www.engadget.com/2009/04/25/keepin-it-real-fake-part-ccii-meticulous-g1-clone-forgets-the/


You should be fine as long as you verify that the device has market on it
(which means it compatible with the standard platform, and is actually a
device your app may ultimately be installed on by a user).  That said, as
far as I know, there are no Chinese phones at this point that have Market on
them, even amongst the ones that are running a (modified) version of the
platform.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Using Broadcast Receivers

2009-09-09 Thread Dianne Hackborn
They are also WAY more overhead than just doing things in the local process
(you need to do an IPC to the system, it needs to schedule the broadcast,
then do an IPC back to each application that is receiving it, copying all of
the data in it each time).
For stuff happening in the local process, Handler and direct callbacks are
the preferred approach.

On Wed, Sep 9, 2009 at 5:42 AM, Mark Murphy mmur...@commonsware.com wrote:


 Android Development wrote:
  Is it feasible to use a BroadcastReceiver as a glue layer between the
  user interface and the underlying business logic ?

 Yes, but bear in mind that broadcast Intents are not private. Anyone who
 figures out an appropriate Intent filter can listen in. Depending on
 the nature of your application, this may or may not be acceptable to you.

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

 Need help for your Android OSS project? http://wiki.andmob.org/hado

 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to get events out of a service.

2009-09-09 Thread Dianne Hackborn
Best: you probably don't need to have the service running in a separate
process from your code, so use the LocalService api demo model, and just do
direct calls to Java objects both ways without dealing with aidl at all.

On Wed, Sep 9, 2009 at 5:39 AM, Mark Murphy mmur...@commonsware.com wrote:


 sdphil wrote:
  i understand how to call methods on a service (aidl, etc...), but how
  does a service event information out.  how does it generate events
  back to the application?

 Option #1: Broadcast an Intent using sendBroadcast()

 Option #2: Implement a callback mechanism, where the client creates an
 AIDL interface and sends a corresponding object to the service, which
 uses that object to communicate back to the client

 You can see examples of the latter in the RemoteClientEx and
 RemoteServiceEx examples from my Advanced Android book:


 http://github.com/commonsguy/cw-advandroid/tree/e50e087577f8b28e727355c55097a5da2577d6d3/AdvServices

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

 Need help for your Android OSS project? http://wiki.andmob.org/hado

 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android WVGA support

2009-09-09 Thread Dianne Hackborn
You'd do supports-sdk android:minSdkVersion=3
android:targetSdkVersion=4 / and then configure the rest of the manifest
as desired.

On Wed, Sep 9, 2009 at 2:12 AM, Al Sutton a...@funkyandroid.com wrote:


 Dianne,

 In the blog post can you cover how to produce one app which will run
 on cupcake and donut and support multiple resolutions.

 As I understand things at the moment developers will need at least two
 versions of the same app listed in Market to cover both bases; One
 with minSDK=4 and the supports-screens manifest tag and a separate
 one for cupcake devices because cupcake won't run apps with minSDK 
 3. If there is also a lite  paid for version you're then into 4 app
 listings for the same app (lite, paid-for, multi-resolution lite,
 multi-resolution paid-for), which seems like its' going to be a it of
 a pain.

 Thanks,

 Al.


 On Sep 9, 7:35 am, Dianne Hackborn hack...@android.com wrote:
  Supporting a wider variety of hardware has been an ongoing processes, and
  was already started with 1.5 with the introduction of soft keyboards and
  corresponding mechanisms for applications to declare they require hard
  keyboards etc.  This will continue after Donut as well.
 
  We are not going to drop a hardware requirement without having a
 mechanism
  for applications to specify that they need the hardware and a strategy
 for
  grand-fathering existing applications into the filtering.
 
 
 
  On Tue, Sep 8, 2009 at 11:26 PM, gasolin gaso...@gmail.com wrote:
 
   Hello,
 
   I was thinking there are plenty of hardware constrains in upcoming
   android devices,
   not only the screen resolution. There will be some devices without
   compass, wifi, g-sensor... ,etc.
 
   It will be nice that developer could pre-claimed the app requirement
   and user could be notified before they install the app and feel bad
   while the app hang (mostly without notice).
 
   Donut's  'supports-screens' tag could be easily extend to this
   suggested architecture if google guys think its helpful.
  http://code.google.com/p/android/issues/detail?id=3693
 
   Please 'Star' this issue in the above link if you think it's good for
   android ecosystem.
 
   regards
   --
   gasolin
 
  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com
 
  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see
 and
  answer them.
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Deep sleep behaviour

2009-09-09 Thread Dianne Hackborn
On Wed, Sep 9, 2009 at 1:17 AM, Lee lee.wil...@googlemail.com wrote:

 You can detect screen off and set an alarm every 5 seconds to poke the
 service if you want to keep it doing something.
 While the service is busy, make sure you hold a partial wake lock.
 Have a look at the SMSPopup for an example of wakelock management.


Please don't do this.  Waking up from an alarm every 5 seconds is going to
cause a noticeable drain on the battery.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



  1   2   3   >