gomobile expects GoNativeActivity, otherwise current_ctx_clazz stays null. Fixed cmd/gomobile/manifest.go to expect GoNativeActivity, and fixed the network example app. Change-Id: Idad6f9bec2fcbc876fbd6013009582868ad3e133 Reviewed-on: https://go-review.googlesource.com/12374 Reviewed-by: David Crawshaw <crawshaw@golang.org>
34 lines
1.2 KiB
XML
34 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2015 The Go Authors. All rights reserved.
|
|
Use of this source code is governed by a BSD-style
|
|
license that can be found in the LICENSE file.
|
|
-->
|
|
<manifest
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="org.golang.todo.network"
|
|
android:versionCode="1"
|
|
android:versionName="1.0">
|
|
|
|
<uses-sdk android:minSdkVersion="9" />
|
|
|
|
<!-- In order to access the network, your application manifest must
|
|
specify the permission requirement. See the following page for
|
|
details.
|
|
http://developer.android.com/guide/topics/manifest/manifest-intro.html#perms -->
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
|
|
<application android:label="network" android:debuggable="true">
|
|
|
|
<activity android:name="org.golang.app.GoNativeActivity"
|
|
android:label="network"
|
|
android:configChanges="orientation|keyboardHidden">
|
|
<meta-data android:name="android.app.lib_name" android:value="network" />
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
</application>
|
|
</manifest>
|