[android-developers] Re: I want to connect my emulator to server and transfer data from it

2009-10-06 Thread Babyboo

When you develop an application that run on emulator, you can use
socket; but notice that the application run on PC can not realize the
socket server run on emulator (due to some simulation process) but the
socket run on Emulator can realize the socketserver that run on PC. It
means that you can create an application that starts a SocketServer
run on any PC. And let your Android application connect to that server
through Socket.

ofcourse when the connection is created. You can do everything you
want. Get it?

On Oct 6, 5:01 pm, santhu  wrote:
> hi ajeet,
>
>              i have see the url which you have passed. i know about
> the http post and get. but i am not able to do this in my android
> application.
>              i want an android application. such that my emulator
> should be able to connect server or other machine.
>             then i can do the file transfer from that emulator.please
> let me know how to do it.
>
> On Oct 6, 2:46 pm, AJ  wrote:
>
> > Hi santhu,
>
> > You need to fire HTTP POST request to the server.
>
> > See the example as 
> > belowhttp://developers.sun.com/mobility/midp/ttips/HTTPPost/
>
> > hope this helps you
>
> > Thanks,
> > AJ
>
> > On Oct 6, 2:28 pm, Babyboo  wrote:
>
> > > I don't understand what you've written. You want your Android
> > > application that run on emulator to connect to application that run on
> > > other device or other emulator , aren't you???
>
> > > On Oct 5, 4:43 pm, santhu  wrote:
>
> > > > Hi All,
>
> > > >                I want an android application so that it can connect to
> > > > emulator and transfer that from it. please let me know how to proceed
> > > > in that. i have done through the socket but i am getting exception in
> > > > that.
>
> > > > please if u find any code or website let me know.
>
> > > > 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: bringing an app to the foreground...

2009-10-06 Thread Babyboo

Through ActivityManager, get all running tasks. Then get the intent
object of the package you want to bring up. call startActivity() with
that intent object. It all things you should do.
Have fun .

On Oct 3, 7:08 pm, sdphil  wrote:
> is there a way to bring an app to the foreground?
>
> I have an application widget that when clicked, I want to launch an
> existing application to the foreground, with whatever "foreground"
> activity it has at the time.
>
> 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: I want to connect my emulator to server and transfer data from it

2009-10-06 Thread Babyboo

I don't understand what you've written. You want your Android
application that run on emulator to connect to application that run on
other device or other emulator , aren't you???

On Oct 5, 4:43 pm, santhu  wrote:
> Hi All,
>
>                I want an android application so that it can connect to
> emulator and transfer that from it. please let me know how to proceed
> in that. i have done through the socket but i am getting exception in
> that.
>
> please if u find any code or website let me know.
>
> 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: Android Device security ???

2009-10-04 Thread Babyboo

the "ro.secure" property can be ignore with the command "adb root".
With this command, the adbd is started with root permission. When I
connect to ADBD, the connection is ok, but the message reply always is
"FAIL0012 device offline (x)". Is anyone know how to make the adbd
running normally???
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Build APK file from command line...

2009-09-30 Thread Babyboo

yeah, I finally understand all the signing process with command line.
Now all things are done. Thank for your help, Xavier.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Signature matching problem

2009-09-30 Thread Babyboo

Thanks for your help, Diana.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Signature matching problem

2009-09-30 Thread Babyboo

So, I want to test some android system application with
Instrumentatioin framework, such as Contact, Calculator, SMS, etc
How do I resolve the certificate problem?


On Sep 30, 3:18 pm, Dianne Hackborn  wrote:
> That's why I say you need to build the target application yourself.
> Generally you aren't going to have access to the cert used to sign someone
> else's app, since they don't want to give out their private key.
>
> On Wed, Sep 30, 2009 at 1:03 AM, Babyboo  wrote:
>
> > Thanks Diana.
> > hmm, there is a problem that I must sign my Instrumentation project
> > with the same certificate as target app. So, do you know how to get
> > certificate of any target application (in case that I have only the
> > target apk file, nothing else)???
>
> --
> 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: Signature matching problem

2009-09-30 Thread Babyboo

Thanks Diana.
hmm, there is a problem that I must sign my Instrumentation project
with the same certificate as target app. So, do you know how to get
certificate of any target application (in case that I have only the
target apk file, nothing else)???
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Signature matching problem

2009-09-30 Thread Babyboo

Thanks Diana.
hmm, there is a problem that I must sign my Instrumentation project
with the same certificate as target app. So, do you know how to get
certificate of any target application (in case that I have only the
target apk file, nothing else)???
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Signature matching problem

2009-09-30 Thread Babyboo

Thanks Diana.
hmm, there is a problem that I must sign my Instrumentation project
with the same certificate as target app. So, do you know how to get
certificate of any target application (in case that I have only the
target apk file, nothing else)???
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Build APK file from command line...

2009-09-30 Thread Babyboo

I have tried to write this command line to generate the unsigned
apk :
apkbuilder.bat %UNSIGNED_FILE_NAME% -u -z %RESOURCE_FOLDER%bin
\resources.ap_ -f %RESOURCE_FOLDER%bin\classes.dex -rf
%RESOURCE_FOLDER%

but an Exception has occured with this message :

[ java.util.zip.ZipException: duplicate entry: AndroidManifest.xml ]

the RESOURCE_FOLDER folder has tree structure like this :


bin
+ classes.dex
+ resource.ap_
res
AndroidManifest.xml
***
I don't understand what happen. If you know about this, please let me
know how to resolve this problem...

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: Build APK file from command line...

2009-09-29 Thread Babyboo

I have sent the file to you. Please check and help me to find out the
problem in application signing process.
I don't what exactly but I think when the application apk is signed,
it's XML file in the package has change the header. So the installer
can not parse the file for installing.
Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Build APK file from command line...

2009-09-29 Thread Babyboo

I have sent the file to you. Please check and help me to find out the
problem in application signing process.
I don't what exactly but I think when the application apk is signed,
it's XML file in the package has change the header. So the installer
can not parse the file for installing.
Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Build APK file from command line...

2009-09-29 Thread Babyboo

Ok Xavier,
I want to send the file-unsigned.apk and file-signed.apk to you. But I
don't know how to put it here or somewhere else that you can get it (I
don't have any repository account). Can I send the apk files to you by
email ???

On Sep 29, 12:01 pm, Xavier Ducrohet  wrote:
> zipalign is only in the tools folder of SDK 1.6
>
> I don't know why your apk doesn't work. can you give us the content of your 
> apk?
>
> Xav
>
> On Mon, Sep 28, 2009 at 8:01 PM, HandsomeboyIT  
> wrote:
>
> > And ... I don't know why I didn't find the zipalign tool in Andriod
> > SDK's tools follder or Java-bin folder...
>
> --
> Xavier Ducrohet
> Android SDK Tech Lead
> Google Inc.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---