Android Devlopment Notes

Submitted by code_admin on Wed, 07/18/2018 - 11:26

Notes I am making when I am devloping Android Applications

Package Name: See Java Package Names

Apps I have made:

Project Name Application Name Package Name
RJM Switches RJM Switches com.metcarob.switches
Database Sync Database Sync com.metcarob.datasync
RJM Test DB RJM Test DB com.metcarob.rjmtestdb

Exporting Signed App to my Phone

  • Right click app and select andriod tools
  • Export unsigned App to c:\Android_dep
  • Run sign.bat
  • Upload apk file to this page
  • Put apk file onto SD Card
  • Run App Installer to install the app

JDBC and SQLite


My SQLite code might work simply by pointing to a different JDBC driver.
On Android use: SQLite.JDBCDriver
See https://groups.google.com/forum/?fromgroups#!topic/android-developers/zz3qlNL2JDw
and http://stackoverflow.com/questions/1728476/does-android-support-jdbc

https://github.com/SQLDroid/SQLDroid

Permissions

Activity Lifecycle

  1. public class Activity {
  2.     protected void onCreate(Bundle savedInstanceState);
  3.     protected void onStart();
  4.     protected void onRestart();
  5.     protected void onResume();
  6.     protected void onPause();
  7.     protected void onStop();
  8.     protected void onDestroy();
  9. }

Save in OnPause, load in OnResume

Feature Notes

API Level

http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels

Clipboard

  • Clipboard service: This service is provided through the android.content.ClipboardManager class. It allows applications to place data in the system clipboard and retrieve it from the clipboard.
  • USB service: This service is provided through the android.hardware.usb.UsbManager class. It allows applications to query the state of the USB and to communicate with devices through USB devices.

Tags

RJM Article Type
Quick Reference