This question already has answers here:
Android: install .apk programmatically [duplicate]
(4 answers)
Install Application programmatically on Android
(18 answers)
Closed 7 years ago.
http://pastebin.com/aKUyw6nX
I searched the internet but I have solved my problem or the code given was not compatible
My question is, how do i open apk file after download?
Install from PC:
Download the Andorid SDK
Connect your phone to the PC via USB, make sure the USB Debugging option is ON under Developer Option in your phone settings.
Once you are done try to use these commands. adb devices to check the connection to your device and then if everything is OK try adb install <filename>.apk Make sure you input the correct path to the file or simply copy the apk into adb directory.
adb usually resides into adt-bundle-$version/sdk/platform-tool
Install from device:
Go to the settings
Enable Unknown sources in the security section
Click on the apk file
Related
I'm programming a basic app to share apk files between two devices the problem is when I extract an installed app base file (base.apk) from /data/app I get "App not installed" error when trying to install this apk file ... I even tried apps like ApkExtractor but I get the same error ... this problem only happened on android 10 , the app works file on android 6 .... any ideas why is this happening and how to fix it ??
This question already has answers here:
How to run a JAR file
(12 answers)
Closed 6 years ago.
i have downloaded a school management system v1.0 it was a zip file and when i extracted the file it has some lib file and .jar file so how can i run it i don't know should i install jre to run that file or will it run in wamp server or some other software i am completely lost and haven't found any solution so far if you want the link to the file i can give that but please help me with this software i want to seriously run this application https://sourceforge.net/projects/schoolmanagements/?source=directory
this is the link to file which i am trying to please help me to run this
First, check if you have Java/JRE installed.
Open your command line/terminal tool and input:
java -version
If you don't see version (but see standard for your OS message like "program is not found") - install JRE (select your platform, download and install).
When Java is ready, open your command line/terminal tool again, and navigate to your un-archived School Management System folder (it is the folder, there SchoolMV0.1.jar resides). And run this:
java -jar SchoolMV0.1.jar
Good luck!
This question already has answers here:
Run Java application at Windows startup
(8 answers)
Closed 6 years ago.
I have Java desktop application, which runs fine. I can double click on exe or run jar file and runs properly.
I want to load this application whenever system starts. How can I achieve this programmatically?
Or is there any tool available to create exe in such a manner, that once we install it creates shortcut in system startup folder.
I want it be system or code driven rather than individually placing exe in startup folder.
You can set up the exe as a windows service with these steps:
open command prompt as administrator
type this:
sc.exe create <service_name> binPath= "<path to your exe> --service" DisplayName= "<somename>" start= "auto"
This question already has answers here:
Remotely debug unit tests in Netbeans / Maven
(2 answers)
Closed 6 years ago.
I'm programing on an embedded linux system calls BeagleBone Black. I'm using JDK vers. 1.6 to run my programms.
At the moment i write code on my normal pc (win7), create a .jar and transfer it via FileZilla to the Linux system (arm7). Then i connect with the embedded system using Putty (ssh tunnel) and start my programm ..."java -jar [name].jar"
Now i'm searching for a way to connect Neatbeans directly to the linux system. To bypass this laborious methode. Is there a way to debugg a programm on my pc via netbeans and it will automatically run on linux? (with console output in netbeans)?
How to configurate the ide for such a task?
Or is there alternative option?
Thanks
You can create a shared folder into the Beagle Bone via SSH an use it as a normal folder.
I am not sure about if you can do this on windows, but im sure that linux can!
This question already has answers here:
Android Failed to install HelloWorld.apk on device (null) Error
(22 answers)
Closed 9 years ago.
I'm Developing an Android Application for the Tablet Devices . When I run My I mostly get an Error in the console which is given below
[2013-03-15 15:52:01 - Gprs] Failed to install Gprs.apk on device 'emulator-5554!
[2013-03-15 15:52:01 - Gprs] (null)
[2013-03-15 15:52:01 - Gprs] Launch canceled!
I think any one of the following alternatives will work:
Try to chang the ADB connection timeout. I think the default is 5000ms and we need to change this to 10000ms to get rid of the problem. If you are in Eclipse, you can do this by going through Window -> Preferences and then it is in DDMS under Android.
Restart the device.
Increase SD card volume and max VM app heap size. For this edit the virtual device and do the modifications. Any change of emulator parameters and its rebuilding also fine.
Build the application. Then Install the apk using command prompt.
adb install
You can try these steps:
Try changing the ADB connection timeout. If you are in Eclipse, you can do this by going through Window -> Preferences and then it is in DDMS under Android. Default is 5sec, try making it 10 seconds.
If this doesn't works restart your device
Or try,
adb kill-server
adb start-server
command from command-line.
Try to change the ADB connection timeout.
Default - 5000ms
Change it to 10000ms
If you are in Eclipse, you can do this by going through Window -> Preferences and then it is in DDMS under Android.