<uses-permission android:name=”ANDROID.PERMISSION.INTERNET” /> <uses-permission android:name=”ANDROID.PERMISSION.ACCESS_NETWORK_STATE” /> <uses-permission android:name=”android.permission.WRITE_EXTERNAL_STORAGE” /> <uses-permission android:name=”com.google.android.providers.gsf.permission.READ_GSERVICES”/> //access location of the phone <uses-permission android:name=”android.permission.ACCESS_COARSE_LOCATION”/> <uses-permission android:name=”android.permission.ACCESS_FINE_LOCATION”/> <application android:allowBackup=”true” android:icon=”@mipmap/ic_launcher” android:label=”@string/app_name” android:theme=”@style/AppTheme” > <meta-data android:name=”com.google.android.maps.v2.API_KEY” android:value=”AIzaSyAqhlJdujwA4_XYCVoDk0t3zG9H_TM3jZ4″/> <meta-data android:name=”com.google.android.gms.version” android:value=”@integer/google_play_services_version”/> </application> layout activity_map.xml <?xml version=”1.0″ encoding=”utf-8″?> <fragment xmlns:android=”http://schemas.android.com/apk/res/android” READ MORE
Category: Android Studio
notifications
notes Notifications //what to do at tap Intent intent = new Intent(getApplicationContext(), MainActivity.class); PendingIntent pendingIntent = PendingIntent.getActivity(getApplicationContext(), 1, intent, 0); Notification notification = new Notification.Builder(getApplicationContext()) .setContentTitle(“Lunch is ready!”) .setContentText(“It’s getting cold…”) .setContentIntent(pendingIntent) .addAction(android.R.drawable.sym_action_chat, “Chat”, pendingIntent) .setSmallIcon(android.R.drawable.sym_def_app_icon) .build(); NotificationManager notificationManager = READ MORE
String Manipulation
String fruit = “Banana”; String[] splitFruit = fruit.split(“a”); System.out.println(Arrays.toString(splitFruit)); /* String river = “Mississippi”; String[] splitRiver = river.split(“s”); System.out.println(Arrays.toString(splitRiver)); String river = “Mississippi”; String riverPart = river.substring(4, 8); System.out.println(riverPart); */ String html = “<div class=\”image\”><img src=\”http://cdn.posh24.com/images/:profile/18779183022145d9ce7229d752f4c116f\” alt=\”Caitlyn Jenner\”/></div>”; Pattern p READ MORE
Developing Android Apps
https://developer.android.com/training/index.html
Raspberry Pi Android App Communication
http://www.instructables.com/id/Raspberry-Pi-Android-App-communication/ Hello everyone Because app’s are being used almost everywhere, I decided to make my own tutorial on how to make an app and connect to a MySQL database hosted on a raspberry pi. For exchanging the data between the READ MORE
new app, first ever…
Android Studio up and running
Android SDK tutorial for beginners
Android is the world’s most used mobile operating system, so it is essential that there is an easy way to develop apps for it. This is where the Android SDK comes in. The SDK, which now comes as part of READ MORE