Porting to the motorola droid

Discuss porting Android to any device.

Porting to the motorola droid

Postby ronhodge50000 » Mon Mar 22, 2010 6:09 pm

Hello,

i search the forums and there is no mention on how to export from eclipse to test actual application on the motorola droid before trying to publish it.


Thanks in advance... 8)
ronhodge50000
Freshman
Freshman
 
Posts: 2
Joined: Mon Mar 22, 2010 5:06 pm
Location: Scottsdale, az

Top

Postby mukaibot » Sat May 01, 2010 8:36 am

Hi ronhodge50000,

When you build your project in Eclipse, an .apk will be created in the bin directory. Simply copy this file to your device's SD card, and use a file manager to install the app from that apk on the card.
mukaibot
Freshman
Freshman
 
Posts: 6
Joined: Sun Apr 25, 2010 5:04 am
Location: Melbourne, Australia

Postby jsemler » Mon May 03, 2010 5:55 am

This procedure is a little more complicated, but it will significantly cut down on the develop/debug cycles...

This page will show how to set up a direct development connection to your Droid device. When properly set-up, applications will launch on the Droid device after installation on command from Eclipse, and it will give you access to the log file and some file system areas from the DDMS perspective (just like it does for the emulator).

http://developer.android.com/guide/developing/device.html#setting-up

The rules file provided by the instructions for Linux didn't work for me. I got it to work using the following rules after some research on the internet.

Code: Select all
jsemler@jsemler-desktop:/etc/udev/rules.d$ ls
70-persistent-cd.rules  70-persistent-net.rules  99-android.rules  README
jsemler@jsemler-desktop:/etc/udev/rules.d$ cat 99-android.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="22b8", ATTRS{idProduct}=="41db", MODE="0666", OWNER="me"


Under the Droid home screen menu "Settings -> Application -> Development", set "USB Debugger" on.
jsemler
Junior Developer
Junior Developer
 
Posts: 24
Joined: Sun Apr 18, 2010 3:53 pm

Re: Porting to the motorola droid

Postby Openxcell » Thu Apr 14, 2011 11:25 am

ronhodge50000 wrote:Hello,

i search the forums and there is no mention on how to export from eclipse to test actual application on the motorola droid before trying to publish it.


Thanks in advance... 8)



There are some points to be kept in mind about signing application in andriod.
1. App must be signed.
2. You can use self-signed certificates also, certificate authority is not needed.
3. Once you have signed the application, use the zipalign tool to optimize the final APK package.

You can export application from eclipse as follow.
To export .apk from eclipse right click the project explorer and select
>Andriod Tools
>> Export Unsigned Application package
>>> Specify file location for unsigned .apk.
Alternate way to export
> Open AndriodManifest.xml file in Eclipse.
>> Open the Overview tab.
>>> Click Export an unsigned .apk.
Openxcell
Experienced Developer
Experienced Developer
 
Posts: 79
Joined: Mon Mar 28, 2011 1:59 pm

Top

Return to Porting Android

Who is online

Users browsing this forum: No registered users and 3 guests