This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Documentation | |
| http://developer.couchbase.com/mobile/develop/guides/couchbase-lite/native-api/manager/index.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // - SWTableViewCell | |
| //https://github.com/CEWendel/SWTableViewCell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class DeviceID { | |
| private static String sID = null; | |
| private static final String INSTALLATION = "INSTALLATION"; | |
| public synchronized static String id(Context context) { | |
| if (sID == null) { | |
| File installation = new File(context.getFilesDir(), INSTALLATION); | |
| try { | |
| if (!installation.exists()) | |
| writeInstallationFile(installation); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package gr.atc.radical.Fragments; | |
| import gr.atc.radical.R; | |
| import gr.atc.radical.Model.POI; | |
| import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import android.annotation.SuppressLint; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import "CorePlot-CocoaTouch.h" | |
| @interface CorePlotExampleViewController : ViewController <CPTPlotDataSource> | |
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Add a content view to your view controller | |
| #import "CenterViewController.h" | |
| @interface MainViewController <CenterControllerDelegate> | |
| @property (nonatomic, strong) CenterViewController *centerViewController; | |
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //http://developer.android.com/guide/topics/graphics/prop-animation.html | |
| /* | |
| There’s 3 basic ways in Android to create Animations and we will cover them all here: | |
| - ObjectAnimator | |
| - TweenedAnimations | |
| - XML Declared Animations | |
| */ | |
| //Animating View with Object Animator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| Beginning with Android 3.0 (API level 11), the action bar is included in all activities that use the Theme.Holo theme | |
| (or one of its descendants), which is the default theme when either the targetSdkVersion or minSdkVersion attribute | |
| is set to "11" or greater. | |
| --> | |
| <!-- Example --> | |
| <manifest ... > | |
| <uses-sdk android:minSdkVersion="4" | |
| android:targetSdkVersion="11" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* http://developer.android.com/guide/topics/ui/notifiers/notifications.html | |
| */ | |
| NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this) | |
| .setSmallIcon(R.drawable.notification_icon) | |
| .setContentTitle("My notification") | |
| .setContentText("Hello World!"); | |
| // Creates an explicit intent for an Activity in your app | |
| Intent resultIntent = new Intent(this, yourAppActivity.class); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| .... | |
| . | |
| . | |
| <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <!-- network-based location provider only --> | |
| <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <!-- GPS --> | |
| <uses-permission android:name="android.permission.INTERNET" /> <!-- Use the internet --> | |
| . | |
| <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <!-- If we need it --> |