View PresentActivityActivity.java
This file contains 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 ludia.sessionm; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.util.Log; | |
import com.sessionm.api.ActivityListener; | |
import com.sessionm.api.BaseActivity; | |
import com.sessionm.api.SessionM; | |
import org.json.JSONException; | |
import org.json.JSONObject; |
View AndroidManifest.xml
This file contains 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
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="test.com.sessionm" | |
android:versionCode="15" | |
android:versionName="1.9.0 Beta" > | |
<uses-sdk | |
android:minSdkVersion="8" | |
android:targetSdkVersion="19" /> | |
<!-- Begin SessionM --> |
View SessionM.xml
This file contains 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
<receiver android:name="com.sessionm.api.ConnectionReceiver" > | |
<intent-filter> | |
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" > | |
</action> | |
</intent-filter> | |
</receiver> | |
<activity | |
android:name="com.sessionm.ui.SessionMActivity" | |
android:configChanges="keyboard|orientation|screenSize" | |
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" |
View DialogAchievementActivity.java
This file contains 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 test.com.sessionm.app; | |
import android.app.Activity; | |
import android.app.AlertDialog; | |
import android.content.DialogInterface; | |
import android.util.Log; | |
import com.sessionm.api.AchievementData; | |
import com.sessionm.api.AchievementActivity; | |
import com.sessionm.api.AchievementActivityIllegalStateException; | |
import com.sessionm.api.SessionM; |
View AppDelegate.m
This file contains 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
// | |
// ExampleAppDelegate.m | |
// MyApp | |
// | |
// | |
#import "ExampleAppDelegate.h" | |
#import "SessionM.h" | |
@implementation ExampleAppDelegate |
View MainActivity.java
This file contains 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 com.example.sessionmexamplelifecyclecalls; | |
import com.sessionm.api.SessionM; | |
import android.os.Bundle; | |
import android.app.Activity; | |
import android.view.Menu; | |
public class MainActivity extends Activity { |
View ExampleAppDelegate.m
This file contains 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
// | |
// ExampleAppDelegate.m | |
// MyApp | |
// | |
// | |
#import "ExampleAppDelegate.h" | |
#import "SessionM.h" | |
@implementation ExampleAppDelegate |
View MyClass.m
This file contains 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 "SessionM.h" | |
@implementation MyClass | |
- (void)myAwesomeMethod { | |
SMAction(@"demo_action") | |
} | |
@end |
View MyViewController.m
This file contains 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 "SMPortalButton.h" | |
@implementation MyViewController | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
SMPortalButton *portalButton=[SMPortalButton buttonWithType:UIButtonTypeSystem]; | |
[portalButton.button setTitle:@"Portal Button" forState:UIControlStateNormal]; | |
portalButton.frame = CGRectMake(40, 40, 100, 30); |
View AndroidManifest.xml
This file contains 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" | |
package="com.sessionm.sample" | |
android:versionCode="1" | |
android:versionName="1.0.0" > | |
<uses-sdk | |
android:minSdkVersion="8" | |
android:targetSdkVersion="19" /> | |
<!-- SessionM NOTE: These permissions are required for SessionM --> | |
<uses-permission android:name="android.permission.INTERNET" /> |
OlderNewer