KRISAMBALI.COM |
A CALCULATOR CREATED IN ANDROID STUDIO. STEP BY STEP PROCEDURE GIVEN BELOW
SOURCE CODE LINK PROVIDED AT THE END |
1. Download Android studio and install it in windows system 2. Download 'rhino-runtime-1.7.13.jar' jar file using the link https://mvnrepository.com/artifact/org.mozilla/rhino-runtime/1.7.13 3. Copy above jar file and paste at C:\Program Files\Android\Android Studio\lib folder
4. Open Android studio > New project > Empty Activity > Select language JAV 5. Give a name to the project as you like > Leave all other fields as it is and click finish 6. Now project opens in android studio and shows 2 tabs 1. Main_Activity.java and 2. Activity_Main.xml in the right 7. In the left side many name may display (If not expand android header on left side) and click on any name displays details on right side
8. Download sourcecode by clicking the link below > extract it 9. (Action on extracted sourcecdoe)Open the folder named App > src > main > java > com > krisambali > kriscalculator and copy MainActivity.java file 10. (Action on created project) Click on MainActivity.java on the left side, right click and paste the copied file>Message box displays click OK and then click overwrite 11. (Action on extracted sourcecdoe)Again Open folder App > src > main > res > layout > Copy Activity_main.xml file 12. (Action on created project) Expand res > layout on left side and right click on Activity_main.xml and click paste to paste file>Message box displays click OK then overwrite 13. (Action on extracted sourcecdoe)Again open folder App > src > main > res > drawable v24 and copy all the file 14. (Action on created project) Expand Drawable and right click on and click paste to paste all the files copied>Message box displays click OK and then click overwrite 15. (Action on extracted sourcecdoe)Again open folder App > src > main > res > values and copy colors.xml 16. (Action on created project) Expand res > values and right click on colors.xml and click paste to paste the files copied>Message box displays click OK and then click overwrite 17. (Action on extracted sourcecdoe)Open file App > build.gradle and copy last line 'implementation group: 'org.mozilla', name: 'rhino', version: '1.7.10'' 18. (Action on created project) Expand Gradle Script and click build.gradle and paste above cpied line at the end before curley bracket 19. (Action on created project) Click left side bulb symbol and click on Sync
Now project is OK 20. (Action on created project) To create apk file click on Build on upper side > Build Bundles/ Apks > and click Build APKs 21. If no error system will create 'app-debug.apk' file and a message will be displayed on right bottom 22. (Action on created project) To find the file click on locate in the displayed message 23. Transfer the apk file to mobile > Install it (If permission required you have to provide permission to install such files |
Download SourcecodeStill you cannot create an app Contact me (Krishnan.A.Ambali, Retired Senior Manager, Kerala Gramin Bank)
Mobile: 8848241877***email:krisambali@gmail.com