[android-developers] Re: Text to speech...

2008-06-17 Thread Wesley Sagittarius

hi,
means Android will have Speech Recognition System and Text to Speech
features...

will it include in next release of SDK??
When can I get it??

I can't wait to implement into my application...

Wesley.

On Nov 13 2007, 4:53 am, "Dan Morrill" <[EMAIL PROTECTED]> wrote:
> Hi, John!
>
> To be clear, Android will include voice-recognition software that can (and
> will) be used to create voice dialers. You'll be able to use the same APIs
> to build speech-enabled applications.  However, the APIs for that are
> disabled in the current early look, because they aren't ready for use yet;
> they'll be enabled in a future SDK version.
>
> That's separate from text-to-speech, which would be used for screen readers
> and similar apps.  I was referring specifically to text-to-speech
> functionality in my previous statement.
>
> - Dan
>
> On Nov 12, 2007 12:39 PM, John Nikolai <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi Dan,
>
> > Thank you for the quick response. I'm a bit surprised that this wasn't
> > part of the initial release of the SDK. It seems that hands free
> > dialing is readily available on most phones these days. Of course I
> > could be wrong about that assumption. ;-)
>
> > FreeTTS  (http://freetts.sourceforge.net/docs/index.php) might be a
> > possible solution for the time being until the platform supports text
> > to speech. Does anyone else know of any other decent, small foot print
> > text to speech processor for Java?
>
> > Thanks again for the help,
> >  - John
>
> > On Nov 12, 2007 12:20 PM, Dan Morrill <[EMAIL PROTECTED]> wrote:
> > > Hi, John!
>
> > > Currently there is no support for text-to-speech.  We are considering
> > the
> > > general problem of accessibility, but don't yet have any concrete plans
> > in
> > > this area.
>
> > > - Dan
>
> > >  On Nov 12, 2007 12:13 PM, flipflop <[EMAIL PROTECTED]> wrote:
>
> > > > Are there any API's that support text to speech and speech to text? If
> > > > the answer is no for any of these, what are the plans for supporting
> > > > them in future API's?
>
> > > > Or perhaps there is a service an application can hookup to to receive
> > > > these type of events?
>
> > > > Thanks for the help!
> > > >  - John

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: SDK Update?

2008-06-17 Thread maceghost

Anyone from google care to comment on this ?  It seems like r15 is a
bit buggy, an update would be in order...


On May 11, 8:16 pm, Biosopher <[EMAIL PROTECTED]> wrote:
> We need regular updates...especially because this isn't a shipped
> product so Google should be providing updates more rapidly.  Google's
> stated approach to dev rapid prototyping so they should be putting out
> 2 new SDKs for each Apple SDK.
>
> That said, I'm glad they didn't put out one during the last month of
> the Round One Challenge. A new release might have broken one of the
> many work arounds I'd created for the many issues I addressed for
> submitting for Round 1.
>
> Now though, I hope many of those bugs have been squashed in the past 2
> months.  SO!   Please give us the new SDK as I'm sure I'm no
> different from other developers...holding off dev until the new
> release comes 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: screen moving to third screen instead of staying in second screen

2008-06-17 Thread dolan kundu
Hi Gopal,
To move to the third screen, call the second screen class name in the first
screen. then only it will come from first screen to the second screen.
Afterthat, in the second screen, call the third screen. so series will be
coming.

Thanks,
Dolan.

On Tue, Jun 10, 2008 at 6:23 PM, gopal <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
>As i press an item in the first screen its moving to third screen
> fastly by means of a centre pres key.Its going to the second
> screen,but is not staying in the second screen.Its moving fastly to
> the third screen without staying in the second screen.Actually,only
> when i pres an item in the second screen it should move to the third
> screen.Can anybody help me?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Why is Android/Eclipse so unreliable?

2008-06-17 Thread maceghost

I've had problems on Windows XP, tried it on Windows Vista, finally
put it on Ubuntu all with mixed results, but mostly, the emulator will
take about 10 minutes to load. On Ubuntu it doesn't get past the cylon
red eye.  On Ubuntu I have to load it from the ADT/tools folder
manually.   I am running rc15 and have not had experience with
previous versions, but AFAICS it's pretty flaky.   I'm surprised
there's not more posted on this.   Trying to run in eclipse is
worse...takes longer on windows and sometimes times out. On Ubuntu
( trying to run in eclipse ) the emulator crashes and tries to
restart.  I'm thinking about getting a Mac to see if it works on that
platform...



On Jun 17, 10:26 am, mathiastck <[EMAIL PROTECTED]> wrote:
> I get the 19% death with M5. Windows XP Professional.
>
> On Jun 16, 7:55 am, Nickname <[EMAIL PROTECTED]> wrote:
>
> > I'm using XP. I never saw 19% death so far with M5.
> > Nick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Help on porting with ME4Android

2008-06-17 Thread Steve Oldmeadow

Not ME4Android but here is a solution, haven't tried it but it sounds
interesting:

http://www.netmite.com/android

These guys are working on a ME -> Android porting tool:

http://www.mobile-distillery.com

I've also heard rumours that these guys are working on a tool for
Android:

http://www.innaworks.com/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] getting the information of selected file from another application for my application use

2008-06-17 Thread Kevin Tan

Hi,

Here is a scenario of what I am trying to do.
A user is running for example a media appplication.
When the user is selecting files in the application to watch, he has
the option to click a lets say ctrl.
then my intent receiver will notify my application to show a pop-up
window to let the user send the file the user has just selected to a
buddy.

Ideally, I would like to write some independent code that would
recognize that the ctrl (or any key) was clicked when a 'file-like'
selection was made in another application by the user. i think going
as far as the pop-up window is possible. However, I am unsure if it is
possible to get a reference (or information) of the file to send it or
verify that it is indeed a file. Here is two posibilties that i think
of:

1) use interprocess communication (I think it may require
implementation by the other application though)
2) try to get the name of the application through the ActivityManger
(My application can guess the content provider of the application and
attempt to get it from there if there is one? although how to access
the ContentProvider dynamically is a blur to me right now)
3) other options??

It is a proof of concept for my school project, so it is not as
important if it can be done but it will be cool if I can find a
workable solution. I would appreciate if anyone has any suggestions.
Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Conversion to Dalvik format failed with error 2

2008-06-17 Thread Oscar Castaneda
Hi Taras,

Thank you so much for the detailed response.

I think you're right that when I run the Android project from Eclipse it
both compiles the sources into classes and the classes into a dex file. I
also agree that the most elegant way would be to add the translation step to
the ADT plugin source code, thus enabling users to run Retrotranslator on
the sources from within Eclipse. In some cases, such as mine, this is
preferred over manually translating libraries that contain annotations and
then adding them to the the main project (for instance, to simplify
debugging).

There is a workaround to prevent classes that have already been translated
by Retrotranslator to be recompiled from source. The workaround is to
disable the Java Builders from within each project's properties. I tried
this and no longer receive the Annotation error:

java.lang.Class.isAnnotationPresent(Class.java:1131)

However, I'm getting the error shown below (and listed on the full stack
trace in [1]). I took care to include retrotranslator-android-1.2.6.jar as
an external library to all Tuscany projects, including calculator-android,
as you pointed out. Additionally, I confirmed through the timestamps on
class files and dex file that retrotranslated classes are not being
recompiled and that the dex file was generated a few minutes after running
retrotranslator.

java.lang.NoClassDefFoundError:
net.sf.retrotranslator.android.main.java.lang._Class

I've tried this running retrotranslator as shown below, setting the target
to java 1.5 at first and then to 1.4.

$ java -jar
/../Retrotranslator-1.2.6-bin/retrotranslator-transformer-1.2.6.jar -srcdir
/../workspace -target 1.5 -reflection safe -stripannot -classpath
/../Retrotranslator-1.2.6-bin/retrotranslator-android-1.2.6.jar -verbose

What could be going wrong? Any suggestions would be greatly appreciated.

[1] http://cwiki.apache.org/confluence/display/TUSCANYWIKI/14Jun2008


On Wed, Jun 4, 2008 at 6:44 PM, Taras Puchko <[EMAIL PROTECTED]> wrote:

> Hi Oscar,
>
> Retrotranslator does it's job by modifying compiled classes in the
> following way:
> 1. Embedding into each class its metadata (including annotations) as one
> big character string.
> 2. Replacing some method invocations, so java.lang.Class.isAnnotationPresent 
> is being replaced with
> net.sf.retrotranslator.android.main.java.lang.Class.isAnnotationPresent etc.
>
> So when you call getAnnotations() on a particular class the code from
> retrotranslator-android-1.2.6.jar will parse the corresponding metadata and
> return the result.
>
> AFAIK when you run your Android project from Eclipse it both compiles your
> sources into classes and the classes into a dex file. So Retrotranslator has
> no chance to modify classes in between unless you fix the ADT plugin. The
> workaround is not to put your sources into Eclipse and to process it with
> javac, Retrotranslator and jar manually. After that you may add the jar to
> Eclipse.
>
> If you execute the following line you should obtain mytuscany-android.jar
> that is one-third bigger then the original mytuscany.jar and does not
> contain references to Java 5 reflection methods.
>
> java -jar retrotranslator-transformer-1.2.6.jar -srcjar mytuscany.jar
> -destjar mytuscany-android.jar  -target 1.5 -reflection safe -stripannot
> -classpath retrotranslator-android-1.2.6.jar
>
> So the line java.lang.Class.isAnnotationPresent(Class.java:1131) in the
> stack trace means that the application is based on non-translated binaries.
> Maybe you had successfully processed your classes but Eclipse overwrote them
> after that or Eclipse had already created the dex file before you executed
> Retrotranslator.
>
> If you're using Eclipse the most elegant way would be to add the
> translation step to the ADT plugin source code, but otherwise don't include
> Tuscany sources into the project, only include a jar processed by
> Retrotranslator and retrotranslator-android-1.2.6.jar.
>
>
> Cheers,
> Taras.
>
>
> On Wed, Jun 4, 2008 at 3:21 PM, <[EMAIL PROTECTED]> wrote:
>
>> Hi Taras,
>>
>> I'm trying to run Apache Tuscany on Android as part of my Google
>> Summer of Code project: Incubating and Android in Delft [1]. I've run
>> all the (modified) source code through retrotranslator but still get
>> "native method not implemented" errors that I believe are related to
>> the lack of annotations support on the current Android SDK.
>>
>> To test Apache Tuscany I'm running a modified calculator project
>> (setup as an Android project) called calculator-android. I have
>> imported the Apache Tuscany SCA modules and modified code for Android
>> into an eclipse workspace. Then I'm running retrotranslator from the
>> command line as shown below. I'm keeping the target code at java 1.5
>> but get the annotation related errors when running the calculator-
>> android as an Android Application. The same thing happens when I try
>> to convert the code to java 1.4.
>>
>> $ java -jar /../retrotranslator-transformer-1.2.6

[android-developers] Re: Why is Android/Eclipse so unreliable?

2008-06-17 Thread mathiastck

I get the 19% death with M5. Windows XP Professional.

On Jun 16, 7:55 am, Nickname <[EMAIL PROTECTED]> wrote:
> I'm using XP. I never saw 19% death so far with M5.
> Nick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Security Questions

2008-06-17 Thread Wiktor

According to this page 
http://code.google.com/android/devel/security.html#permissions
:
"At application install time, permissions requested by the application
are granted to it by the package installer, based on checks with
trusted authorities and interaction with the user. No checks with the
user are done while an application is running: it either was granted a
particular permission when installed, and can use that feature as
desired, or the permission was not granted and any attempt to use the
feature will fail without prompting the user."

So when you install a malicious software you'll probably be asked like
"do you want to install this app as a dialer?" or Android would
automatically detect it's bad (how? I wish I knew ;-) )

On 17 Cze, 15:18, Damien <[EMAIL PROTECTED]> wrote:
> Yes I believe the permissions for an application will come into play.
>
> Android apps register for permissions in the manifest and that should
> I think, translate to a user query (I seem to recall one of the
> android
> Q & A seeions going over this same question) when the appliation
> executes so for your application to phone Fiji it would need a
> permission
> (android.permission.CALL_PHONE??) to access DIALER permissions;
> however
>
> the problem would still possibly occur if the application masqueraded
> as
> a genuine user of DIALER so that the user resonse to
>
> "Application X needs to be able to dial out - Allow Y/N" (or whatever)
>
> would be a Yes, because it seems to be a genuine requirement - but if
> it
> then somehow went on to dial Fiji without the user knowing you would
> still get the charge. My understanding is that the permissions are
> very
> specific so android.permission.CALL_PHONE allows an application to
> access the dialer but not necessarily to have a "silent" phone
> connection
> occurring in the background.
>
> Here is a link to the permissions
>
> http://code.google.com/android/reference/android/Manifest.permission
>
> Regards
> D
>
> On Jun 17, 10:47 am, MobileBen <[EMAIL PROTECTED]> wrote:
>
> > Hello all,
>
> > I have a question concerning the security of Android.
>
> > Example:
> > I download a very nice program from the web which doesn't cost
> > anything and install it on my Android-phone.
> > When I start the program, the program calls automatically a number on
> > the fiji islands in the backgroud and I don't get to know to it. At
> > the end of the month I have a very high phone bill :(
>
> > Is there any security mechanism to proof that sth. like this happens
> > or to make a security on those basic operations like telephone-
> > function??
>
> > Thx for any 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Security Questions

2008-06-17 Thread Damien

Yes I believe the permissions for an application will come into play.

Android apps register for permissions in the manifest and that should
I think, translate to a user query (I seem to recall one of the
android
Q & A seeions going over this same question) when the appliation
executes so for your application to phone Fiji it would need a
permission
(android.permission.CALL_PHONE??) to access DIALER permissions;
however

the problem would still possibly occur if the application masqueraded
as
a genuine user of DIALER so that the user resonse to

"Application X needs to be able to dial out - Allow Y/N" (or whatever)

would be a Yes, because it seems to be a genuine requirement - but if
it
then somehow went on to dial Fiji without the user knowing you would
still get the charge. My understanding is that the permissions are
very
specific so android.permission.CALL_PHONE allows an application to
access the dialer but not necessarily to have a "silent" phone
connection
occurring in the background.

Here is a link to the permissions

http://code.google.com/android/reference/android/Manifest.permission.html

Regards
D

On Jun 17, 10:47 am, MobileBen <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I have a question concerning the security of Android.
>
> Example:
> I download a very nice program from the web which doesn't cost
> anything and install it on my Android-phone.
> When I start the program, the program calls automatically a number on
> the fiji islands in the backgroud and I don't get to know to it. At
> the end of the month I have a very high phone bill :(
>
> Is there any security mechanism to proof that sth. like this happens
> or to make a security on those basic operations like telephone-
> function??
>
> Thx for any 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Dispatch keyboard event to other activity

2008-06-17 Thread renegade

Hey,
Does anyone know how to send key event to some other activity (known
by package name, class name or task id).
I have to simulate keyboard on my keyboard-less hardware...

Any ideas?
Thanks for help.

Regards!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re:

2008-06-17 Thread Borislav Bonev

Hi, 于慧娟

If you need to send a picture to a server, it depends on the case. If
you have socket connection you can just send the image as a byte
stream. Or you can use also an object data stream to transfer the
whole image object if is serializable, and it's good idea to send the
image size before that.
Bu if you really need to transfer the image as a String (I'm not
completely sure if it works at all) You can try to read the image in
byte array and create a string from it, send it to server and try to
get the byte from the read string object, but be sure that there are
no character set conversions during the process otherwise you will
loose the image.

But you need to know that even the string are send as byte array :)
You can find helpful ByteArrayInputStream and ByteArrayOutputStream

Good luck. Borko.

On Jun 17, 9:50 am, 于慧娟 <[EMAIL PROTECTED]> wrote:
> Hi ,all
>
> Can you tell me how to convert images into strings, so that it can be
> transport to the server.
>
> --
> Confidentiality Notice: The information contained in this e-mail and any 
> accompanying attachment(s) is intended only for the use of the intended 
> recipient and may be confidential and/or privileged of Neusoft Group Ltd., 
> its subsidiaries and/or its affiliates. If any reader of this communication 
> is not the intended recipient, unauthorized use, forwarding, printing, 
> storing, disclosure or copying is strictly prohibited, and may be unlawful. 
> If you have received this communication in error, please immediately notify 
> the sender by return e-mail, and delete the original message and all copies 
> from your system. Thank you.
> ---
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Security Questions

2008-06-17 Thread MobileBen

Hello all,

I have a question concerning the security of Android.

Example:
I download a very nice program from the web which doesn't cost
anything and install it on my Android-phone.
When I start the program, the program calls automatically a number on
the fiji islands in the backgroud and I don't get to know to it. At
the end of the month I have a very high phone bill :(

Is there any security mechanism to proof that sth. like this happens
or to make a security on those basic operations like telephone-
function??


Thx for any 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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to access DRM protected files?

2008-06-17 Thread Wei Yongqiang

Hi,

As I have known, we can access Forward locked drm files using Drm
provider. but till now, the drm provider can support Forward locked.
Then I want to know how to save Combined drm files and Separate delivery
drm files and how to access to them?

>From the view of the sdk's user point, we have expected one uniform API
for all the drm files including drm v2 files.

Can anybody know google's plan for this?

Many thanks.
Frank


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Create menu

2008-06-17 Thread Raj

//  Activity callback that lets your handle the selection in the class.
//  Return true to indicate that you've got it, false to indicate
//  that it should be handled by a declared handler object for that
//  item (handler objects are discouraged for reasons of efficiency).
@Override
public boolean onOptionsItemSelected(Menu.Item item){
switch (item.getId()) {
case 0:
//setContentView(R.layout.login);
onRestart();
//showAlert("Menu Item Clicked", "File", "ok", null, 
false, null);
return true;
case 1:
showAlert("Menu Item Clicked", "Edit", "ok", null, 
false, null);
return true;
case 2:
showAlert("Menu Item Clicked", "View", "ok", null, 
false, null);
return true;
case 3:
showAlert("Menu Item Clicked", "WWW", "ok", null, 
false, null);
//  WebView webView = new WebView(this);
//  webView.loadUrl("http://www.google.com";);
//  webView.setFocusable(true);
return true;
case 5:
showAlert("Sub Menu Item Clicked", "Monday", "ok", 
null, false,
null);
return true;
case 13:
showAlert("Sub Menu Item Clicked", "Rajkumar", "ok", 
null, false,
null);
return true;
case 14:
showAlert("Sub Menu Item Clicked", "Arun", "ok", null, 
false,
null);
return true;
}
return false;
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
// title
menu.add(0, 0, "Back");
menu.add(0, 1, "Edit");
// Add our submenu.
SubMenu sub = menu.addSubMenu(1, 4, "Days of the week");
sub.add(0, 5, "Monday");
sub.add(0, 6, "Tuesday");
sub.add(0, 7, "Wednesday");
sub.add(0, 8, "Thursday");
sub.add(0, 9, "Friday");
sub.add(0, 10, "Saturday");
sub.add(0, 11, "Sunday");
SubMenu sub1 = menu.addSubMenu(2, 12, "Friends");
sub1.add(0, 13, "Rajkumar");
sub1.add(0, 14, "Arun");
return true;
}

On Jun 11, 12:13 am, "pravin gajera" <[EMAIL PROTECTED]> wrote:
> Hello Friends
>  my Q. is how to create menu in android system
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Passing String between applications

2008-06-17 Thread simo

My applications are independent. I used the IntentReceiver and it
works.

Thank you :-)


On Jun 16, 5:53 pm, "Mark Murphy" <[EMAIL PROTECTED]> wrote:
> > what is the best way to pass one String value between 2 applications?
>
> > I have read the doc about the ContentProvider but I do not really need
> > a database and instanciating all these objects involves an unnecessary
> > additional amount of memory.
>
> I'll refer to your two applications as Application A and Application B.
>
> If Application A is the one responsible for starting Application B, and
> the string needs to pass from A to B at startup, put the string as an
> "extra" in the Intent you use to start Application B (via startActivity()
> or startSubActivity()), and have Application B read that "extra" from the
> Intent when it starts up.
>
> If Application A is launching Application B via startSubActivity(), and
> the string needs to pass from B to A when B completes, use a flavor of
> setResult() in B that lets you provide the string as part of the results,
> which A will get in onActivityResult().
>
> Otherwise, you can always set up an intent receiver on A and/or B,
> depending on who is setting the string and who is receiving updates to the
> string. The one who "sets" the string does so by sending a broadcast
> Intent that gets picked up by the other's intent receiver, with the string
> value as an "extra".
>
> If these are really just two activities in the same application, you have
> a lot more options, including SharedPreferences, SQLite database, or even
> flat files.
>
> There are probably other options as well, but those are the ones I can
> think of off the top of my head.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ -- Available Now!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to modify the menu ?

2008-06-17 Thread Steve Oldmeadow

Look at the onPrepareOptionsMenu method of Activity.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to modify the menu ?

2008-06-17 Thread Lex

Hi folks,

Id to know how one can modify the menu ( add/delete items ) after its
been created ? ( I mean during the Activity ). Is it even possible ?
Thank you.
Alex
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Download files onto SD Card

2008-06-17 Thread Megha Joshi
  If you are trying to download a file from browser inside a emulator, that
feature is currently not available.


On Mon, Jun 16, 2008 at 4:03 PM, redhatab <[EMAIL PROTECTED]> wrote:

>
> Hi, Can anyone tell me how I can download a file from the internet
> onto the SD card if I have just a link to the file!
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers]

2008-06-17 Thread 于慧娟
Hi ,all

Can you tell me how to convert images into strings, so that it can be
transport to the server.  



--
Confidentiality Notice: The information contained in this e-mail and any 
accompanying attachment(s) is intended only for the use of the intended 
recipient and may be confidential and/or privileged of Neusoft Group Ltd., its 
subsidiaries and/or its affiliates. If any reader of this communication is not 
the intended recipient, unauthorized use, forwarding, printing, storing, 
disclosure or copying is strictly prohibited, and may be unlawful. If you have 
received this communication in error, please immediately notify the sender by 
return e-mail, and delete the original message and all copies from your system. 
Thank you. 
---


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Makefile config for jars

2008-06-17 Thread Alex

Hi I was wondering if there is a way to specify something in the
android Makefile to force it to update jar files?

I may have phrased that wrong, but the problem is that a lot of the
times changes are made to the java code, the make process does not
pick them up unless I do make clean.

Your help is appreciated.
Thanks.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Replacing png file with aapt, OS crashed.

2008-06-17 Thread 辦公的Okiss

As we know, we could using aapt to access the resource to a apk file.
One day I do that, but Android OS crashed. Following are my steps:
1. remove a png file from the apk file.
2. add a png file - same name as deleted on 1. but different file
content - into the apk file.
3. install the apk file to emulator with adb push.
4. I got the error on emulator logcat "digest invalid".

I think that the broken apk can't access is normal. Even this, that OS
crashed is a big problem.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Download files onto SD Card

2008-06-17 Thread redhatab

Hi, Can anyone tell me how I can download a file from the internet
onto the SD card if I have just a link to the file!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Android Bloggers Wanted!

2008-06-17 Thread phandroid.com

Hey folks!

My name is Rob Jackson and I run phandroid.com. Keeping up with all
the news and info as Android progresses is becoming a full-time job
that I can't keep up with! I'm looking for a few Android Enthusiasts
who might be interested in writing a few articles each week.

While I could use the help - I won't accept just anybody. Use the
contact form on the site, tell me why you're interested and what you
can bring to the table. The position is unpaid and more of a "love of
the game" type of deal... although college students could definitely
use it as a resume builder.

Hope to hear from you soon!
Thanks
Rob
phandroid.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: IntentDemo

2008-06-17 Thread Diego Torres Milano

You may want to take a look at another intent demo at
http://dtmilano.blogspot.com/2008/03/android-playing-with-intents-this.html


On Jun 16, 6:08 pm, Damien <[EMAIL PROTECTED]> wrote:
> Hi
>
> I have recorded my second screencast which talks at a very basic level
> about Intents. here is the link
>
> http://blip.tv/file/997147
>
> The sound quality is unfortunately low and I am trying to remedy that
> for my subsequent demonstrations. Any of your [other] comments /
> criticisms are most welcome. Simply visithttp://sleepydroid.blogspot.com
> and drop me an email.
>
> Regards
> D.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---