How to create package installer link for Android application package? - android

i have created one Android Application.
I install it on mobile by connecting USB.
I want to install it without connecting mobile to PC.
How can I create package installer link to install pacakage?

There is a good walkthrough of sorts on developer.android.com
FOR DEPLOYING:
Here are a few steps to get you started:
Right click on your Project and locate "Android Tools" at the bottom.
Locate an option in the sub-menu Export Signed Application Package...
In a Window that pops up:
Select the project to export: Ensure you have the same project selected that you wish to create an APK of and hit the Next button
Keystore Selection: You have the option of either choosing an existing keystore or creating a new one. Follow the steps based on the option you select.
Key alias selection: While creating a new Keystore, you also create an alias. Based on your earlier selection (in STEP 2), you will have to choose an existing key or create a new one. Again, follow the steps in this section.
Finally, Destination and key/certificate checks: Hit the browse button and select the path on your computer where you want the APK to be created.
After following these steps, you will have an APK created which can deployed to the Google Play store or can be transferred to any _ compatible_ devices for installation.

Copy your Application apk(installer) from your project bin folder and store it in your phone memory or sdcard.
After copy in phone memory or sdcard. use file browser to find apk and install it via android default installer.
Thanks

Related

Recover an Android project from an installed app

Recently I've switched to windows 10 by performing a clean install, which means that I've wiped the whole HDD. Sadly I forgot to backup a project built up in Android Studio but I have it installed and running on my phone.
Is it possible to somehow recover my project from what is installed on my smart device?
If yes, how?
Step 1. Generate an apk from the installed app on your "smart" phone.
Use App Backup & Restore to do this. There are several other apps that allow you to create apk installers from installed apps. Just search on play store for "backup apps".
Step 2. Decompile your app to get the source code:
This is already answered on this SO Post (several options)
(Optional) Step 3. Backup on source control right away
Use free source control services like bitbucket to backup and avoid hassles like these in future.
try this step:
step1 : open this http://www.javadecompilers.com/
step2: upload apk on this site
step3: decompile it
step4: get your project in zip folder.

Mobilefirst application apk file not installing in real devices

i am using mobilefirst platform for hybrid application development.
I created an application in and created .apk file of this application:
Generated Android project folder -> Android tools -> Export unassigned application
I then copied this apk file to android device and try to install this .apk file. At this time its showing Application not installed.
It's properly working in simulator and browser.
What is the issue here?
The problem you are facing is due to the fact that you have exported an unsigned application, which is not intended for distribution purposes.
Try Exporting a signed application package, by following one of the following steps :
"Right click project -> Export -> Export Android Application"
"Right click project -> Android Tools -> Export Signed Application Package"
Both of the above methods will export a signed application file, used for distribution purposes.
You may also test your app on a real device by just connecting your device to the testing machine via a USB cable and then following step below :
Right Click on your Project root -> Go to Run As -> Select Android Application -> Now a popup is shown with all the active devices -> Select your device from the list
**
Newbie Guide to Export Signed Application and configuring keystore file in Eclipse :
"Right click project -> Android Tools -> Export Signed Application Package"
A popup as shown below would appear, if your project won't contains any erros :
Click Next
On clicking Next, you'll get a screen as shown below :
5.On this screen, make sure Create new keystore is checked.
6.Browse to the location, you want to create a new keystore at, and also add a password to access it later.
7.Then Click Next
8.On clicking next you'll get a screen as shown below :
9.Fill all the fields in this screen, (ONLY first five are mandatory), In validity fill the number of years this key would be valid for, then click Next.
10.On clicking Next you'll get a screen as shown below :
11.Browse to the location you want to keep for apk file in, and Click Finish, and you are done!
Hope this helps!
Did you try with a Signed application package rather than an Unsigned application package?
It could be that in your device settings (under Security) you have not allowed to install applications from Unknown Sources.
Enable support for Unknown Sources
Try again with an unsigned package
When you select Run As > Run on Android device", the application gets signed with the debug keystore supplied by Android, so it's still a "signed" package.

Android - Install signed apk via Eclipse

Good day.
I have an application and I recently wrote a code to make it update programatically by fetching the updated apk file on a server I host. I made the updated apk by changing the version code to version 2 and version name to 1.0.1 in the Android Manifest file. I also placed a textView in the first activity to know if it is the updated application or not. However, an issue I encountered while updating is that I get the An existing package by the same name with a conflicting signature is already installed error when Android tries to install the downloaded apk file. Since the error is about a conflicting signature, I guessed that whenever I install an application to my device (Nexus 7) from Eclipse, the application is not signed. What I did was that I Exported a signed copy of the version 1 of the application, moved it to my Nexus 7, and installed. From that signed application version, I tried to update and I encountered no problems.
However, this process is not efficient at all because if I want to debug my application to see if data stored like the database or sharedPreferences persist between app updates, what I'll have to do is to export my app, copy to tablet, then install. This does not allow me to use logCat efficiently - as the session filter won't work. The only way for me to see my logs is via the All Messages category and look for my tags.
So, my main question is: Is there a way to install a signed copy of your application via Eclipse so you can still debug efficiently via LogCat?
A secondary question: What happens to the private app data like the SQLite Database and the SharedPreferences when the application upgrades versions? Are they deleted?
When you debug (or run) Android will use the default store key for signing your application, and you can change it on Windows -> Preferences -> Android -> Build
Change your debug keystore there with custom debug keystore
Yes Its possible to install signed copy your application via Eclipse and you can still debug efficiently via LogCat.
Follow These steps.
1. Right click on your project from project list in eclipse.
2. Click Export.
3. Then select Export Android Application
4. Then select the project to export.
5. Click Next.
6. Then give the path of signing key (Keystore file). If you don't have any then create new keystore file by selecting Create new Keystore radio button on that Dialog.
7. Enter and confirm password and click Next.
8. Select Alias of Keystore file. which you have given while creating that file.
9. Enter password for that Alias and click Next.
10. Select the destination to export apk file and click finish.
It may take few minutes to build your app. Time depends on your application size.

Obtain generated debug key/certificate for developing on different machines

I'm using Eclipse to develop an app and I have two computers (a desktop and laptop) that I want to use to develop this app. I recently set up my laptop with Eclipse and imported the project over to that computer. However, I realized that I can't launch the application from my laptop onto my phone because the signature that is automatically generated when I build the app from my desktop doesn't match the one that is automatically generated on the laptop; unless I uninstall it on the phone. Does anyone know how to export the automatically generated signature from one Eclipse and import it into another?
Window -> Preferences |-> Android -> Build:
refer to your custom debug key store, (I copied mine from the C:\Users\${UserName}.android\debug.keystore) which I would put in something like drop box.
The automatically generated key is called the debug key/certificate.
You should generate a new key can just copy it over to both your devices. The only negative of this is your builds process is longer as you need a manual steps.
The other option is to copy over the debug key from one of the systems.
You will find the keys in a folder names .android in your home directory in Linux & user directory in Windows
Tip: Never loose the certificate once you push an app to the market.

How to create apk file for android?

I wrote some android application using Eclipse.
I found apk file in the bin directory.
When i connect USB cable between the cell phone and the computer - the application is running.
But when i disconnect the USB cable from the cell phone - and i trying to launch the application from the cell phone i get message
"Waiting for debugger"
"Application ( process name .. ) is waiting for the debugger to attach"
So, How can i create apk ( installation file ) for using with no debug ?
If you like to release your app to the public, here you can find step by step info on how to do it.
Include how to create the apk file, from the link:
To create a signed and aligned .apk in Eclipse:
Select the project in the Package Explorer and select File > Export.
Open the Android folder, select Export Android Application, and click Next.
The Export Android Application wizard now starts, which will guide you through the process of signing your application, including steps for selecting the private key with which to sign the .apk (or creating a new keystore and private key).
Complete the Export Wizard and your application will be compiled, signed, aligned, and ready for distribution.
Is there a Debug.waitForDebugger() somewhere in your code?
Here are some tricks...
http://groups.google.com/group/android-developers/browse_thread/thread/bdf61367c8649f4a?pli=1
Seen some indication that there is a global debug flag in the phone that might have got stucked restarting the phone might help.
File - Export - Android Application
Android application package file (APK) is
program binary used to distribute and install
Android application onto the Android operating
system. Here we'll see step by step procedure
of creating .apk file ready to be installed in
Android device.
Tools & Technologies used in this article :
1. JDK 1.6
2. Eclipse 3.7
3. Android SDK
There are two ways to export Aplication
Package in Eclipse using Android Tools
1. Export Unsigned Application Package
2. Export Signed Application Package
Export Unsigned Application Package
Right click on the Android project (say
'AndroidHello') and from the context menu
select Android Tools --> Export Unsigned
Appliaction Package . Browse the location to
save the apk and click Save button. Click Ok
button in the following window to proceed.
Export Signed Application Package
Right click on the Android project (say
'AndroidHello') and from the context menu
select Android Tools --> Export Signed
Appliaction Package . Select the project to
export and Click Next button.

Categories

Resources