Please ensure your current working directory is set to the root of the Aevi SDK installation folder
To install the Aevi Simulator
adb install android/simulator/Simulator-1.2.3.apk
To optionally install the Aevi Sample app:
adb install samples/AeviSample-1.2.3.apk
To optionally install the BarPos Example app:
adb install samples/BarPosExample-1.2.3.apk
To optionally install the To The Movies app:
adb install samples/ToTheMovies-1.2.3.apk
To optionally install the To The Movies Classic app:
adb install samples/ToTheMoviesClassic-1.2.3.apk
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.aevi.barposexample" android:versionCode="13" android:versionName="1.2.3">
<uses-sdk android:minSdkVersion="15" android:targetSdkVersion="15"/>
<uses-permission android:name="com.aevi.permission.CONFIGURATION"/> <uses-permission android:name="com.aevi.permission.PAYMENT_REQUEST"/>
<application android:name="BarPosApplication" android:icon="@drawable/wincor_icon" android:label="@string/app_name" android:theme="@style/AppTheme"> <activity android:name=".TableSelectionActivity" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"> <intent-filter> <action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> <activity android:name=".ItemSelectionActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" /> <activity android:name=".PaymentActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" /> </application>
<meta-data android:name="application-type" android:value="payment"/>
</manifest>
codename1.android.xpermissions=<uses-permission android\:name\="com.aevi.permission.CONFIGURATION" /><uses-permission android\:name\="com.aevi.permission.PAYMENT_REQUEST" />
The permissions are there in the manifest but the UI doesn't always reflect the full permissions.
Did you try asking the Aevi SDK why your code doesn't work?
codename1.android.xpermissions=<uses-permission android\:name\="com.aevi.permission.CONFIGURATION" /><uses-permission android\:name\="com.aevi.permission.PAYMENT_REQUEST" />
<meta-data android:name="application-type" android:value="payment"/>
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mycompany.myapp" android:versionCode="120" android:versionName="1.2" android:minSdkVersion="7" android:installLocation="auto"> <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="21" /> <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" /> <application android:label="CodenameOnePermsTest" android:icon="@drawable/icon"> <activity android:name="MyApplicationStub" android:theme="@style/CustomTheme" android:configChanges="orientation|keyboardHidden|screenSize" android:launchMode="singleTop" android:label="CodenameOnePermsTest">
<intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
</application> <uses-feature android:name="android.hardware.touchscreen" android:required="false" /> <uses-feature android:name="android.hardware.telephony" android:required="false" /> <uses-permission android:name="android.permission.INTERNET" android:required="false" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:required="false" /> </manifest>
#Sun Dec 21 17:47:35 EST 2014codename1.ios.appid=Q5GHSKAL2F.com.mycompany.myappcodename1.ios.release.provision=codename1.arg.rim.obfuscation=falsecodename1.j2me.nativeTheme=nbproject/nativej2me.rescodename1.arg.ios.project_type=ioscodename1.arg.ios.interface_orientation=UIInterfaceOrientationPortrait\:UIInterfaceOrientationPortraitUpsideDown\:UIInterfaceOrientationLandscapeLeft\:UIInterfaceOrientationLandscapeRightcodename1.displayName=CodenameOnePermsTestguiResource=theme.rescodename1.android.keystoreAlias=XXXXXXXcodename1.ios.release.certificate=codename1.android.keystorePassword=XXXXXXXXcodename1.ios.provision=codename1.arg.android.release=truecodename1.arg.ios.dsym=falsepackage=generatedcodename1.arg.ios.statusbar_hidden=falsecodename1.languageLevel=5codename1.android.keystore=XXXXXXXmainForm=Maincodename1.vendor=CodenameOnecodename1.arg.win.ver=8codename1.ios.certificatePassword=codename1.arg.zooz.sandbox=falsecodename1.ios.debug.certificatePassword=codename1.mainName=MyApplicationcodename1.ios.release.certificatePassword=codename1.arg.ios.prerendered_icon=falsecodename1.arg.vserv.scaleMode=falsecodename1.ios.debug.certificate=libVersion=80codename1.arg.ios.application_exits=falsecodename1.android.xpermissions=<meta-data android\:name\="application-type" android\:value\="payment"/><uses-permission android\:name\="com.aevi.permission.CONFIGURATION" /><uses-permission android\:name\="com.aevi.permission.PAYMENT_REQUEST" />codename1.secondaryTitle=CodenameOnePermsTestcodename1.description=codename1.ios.debug.provision=baseClass=src/generated/StateMachineBase.javacodename1.arg.build.incSources=1codename1.arg.j2me.nativeThemeConst=0codename1.rim.certificatePassword=codename1.version=1.2codename1.ios.certificate=codename1.icon=icon.pngcodename1.rim.signtoolCsk=codename1.arg.android.debug=falsecodename1.arg.vserv.transition=20000codename1.rim.signtoolDb=userClass=src/userclasses/StateMachine.javacodename1.arg.ios.includePush=falsecodename1.packageName=com.mycompany.myapp
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.webbtide.albert" android:versionCode="100" android:versionName="1.0"
android:minSdkVersion="7" android:installLocation="auto"> <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="21" /> <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
<application android:label="AlbertDemo" android:icon="@drawable/icon"> <activity android:name="AlbertDemoStub"
android:theme="@style/CustomTheme" android:configChanges="orientation|keyboardHidden|screenSize" android:launchMode="singleTop"
android:label="AlbertDemo">
<intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> <uses-feature android:name="android.hardware.touchscreen" android:required="false" /> <uses-feature android:name="android.hardware.telephony" android:required="false" /> <uses-permission android:name="android.permission.INTERNET" android:required="false" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:required="false" />
<meta-data android:name="application-type" android:value="payment"/>
<uses-permission android:name="com.aevi.permission.CONFIGURATION" />
<uses-permission android:name="com.aevi.permission.PAYMENT_REQUEST" /></manifest>
12-21 18:44:57.211: I/ActivityManager(154): START {cmp=com.aevi.barposexample/.PaymentActivity (has extras)} from pid 226212-21 18:44:57.271: I/SystemProperties(154): get key=ro.build.characteristics,def=none12-21 18:44:57.271: I/SystemProperties(154): get key=ro.screen.layout12-21 18:44:57.271: I/WindowManager(154): SCREENLAYOUT_SIZE (1:small, 2:normal, 3:large, 4:xlarge) 312-21 18:44:57.311: I/SystemProperties(2262): get key=viewancestor.profile_rendering,def=false12-21 18:44:57.311: I/SystemProperties(2262): get key=hwui.disable_vsync,def=false12-21 18:44:57.351: D/Settings(337): getAllInstallLangId().length4312-21 18:44:57.381: D/gralloc(92): alloc_buffer: Successfully allocated 0x244000 bytes, mIonFd=27, SharedFd=2812-21 18:44:57.391: D/gralloc(2262): map_buffer: Successfully mapped 0x244000 bytes at address 0x63f32000, SharedFd=57, map_count = 312-21 18:44:57.391: I/ActivityManager(154): Displayed com.aevi.barposexample/.PaymentActivity: +122ms12-21 18:44:57.401: D/OpenGLRenderer(2262): Flushing caches (mode 0)12-21 18:44:57.401: D/gralloc(2262): unmap_buffer: Successfully unmapped 0x244000 bytes at address 0x64176000, SharedFd=58, map_count = 212-21 18:44:57.401: D/gralloc(2262): unmap_buffer: Successfully unmapped 0x244000 bytes at address 0x63b31000, SharedFd=56, map_count = 112-21 18:44:57.401: D/gralloc(92): free_buffer: Freeing 0x244000 bytes, mIonFd=27 SharedFd=1912-21 18:44:57.401: D/gralloc(92): unmap_buffer: Successfully unmapped 0x244000 bytes at address 0x4a146000, SharedFd=19, map_count = 512-21 18:44:57.631: D/gralloc(92): free_buffer: Freeing 0x244000 bytes, mIonFd=27 SharedFd=3212-21 18:44:57.631: D/gralloc(92): unmap_buffer: Successfully unmapped 0x244000 bytes at address 0x4a747000, SharedFd=32, map_count = 412-21 18:44:58.131: I/SystemProperties(154): get key=events.cpu12-21 18:44:58.711: D/gralloc(92): alloc_buffer: Successfully allocated 0x244000 bytes, mIonFd=27, SharedFd=1912-21 18:44:58.721: D/gralloc(2262): map_buffer: Successfully mapped 0x244000 bytes at address 0x63b31000, SharedFd=56, map_count = 212-21 18:44:58.871: I/ActivityManager(154): START {act=com.aevi.payment.REQUEST cmp=com.aevi.simulator/.PaymentRequestActivity (has extras)} from pid 2262
12-21 18:46:56.581: E/AndroidRuntime(2343): FATAL EXCEPTION: Thread-26812-21 18:46:56.581: E/AndroidRuntime(2343): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.aevi.a.REQUEST (has extras) }12-21 18:46:56.581: E/AndroidRuntime(2343): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1512)12-21 18:46:56.581: E/AndroidRuntime(2343): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1384)12-21 18:46:56.581: E/AndroidRuntime(2343): at android.app.Activity.startActivityForResult(Activity.java:3190)12-21 18:46:56.581: E/AndroidRuntime(2343): at com.codename1.impl.android.CodenameOneActivity.startActivityForResult(CodenameOneActivity.java:511)12-21 18:46:56.581: E/AndroidRuntime(2343): at com.codename1.impl.android.e.a(AndroidNativeUtil.java:139)12-21 18:46:56.581: E/AndroidRuntime(2343): at com.webbtide.albert.c.a(NativeCallsImpl.java:46)12-21 18:46:56.581: E/AndroidRuntime(2343): at com.webbtide.albert.d.a(NativeCallsStub.java:13)12-21 18:46:56.581: E/AndroidRuntime(2343): at b.a$1.run(StateMachine.java:54)
PaymentRequest payment = new PaymentRequest(new BigDecimal(param)); payment.setCurrency(Currency.getInstance("AUD"));
Intent intent = payment.createIntent(); Log.v("AlbertDemo", intent.toString()); IntentResultListener listener = new IntentResultListener() { public void onActivityResult(int requestCode, int resultCode, Intent data) {
// Obtain the transaction result from the returned data. TransactionResult transresult = TransactionResult.fromIntent(data); // Check whether the transaction was successful if (transresult.getTransactionStatus() == TransactionStatus.APPROVED) { // transaction successful result = NativeCalls.OK; } else { // transaction failed result = NativeCalls.ERROR; } } }; AndroidNativeUtil.startActivityForResult(intent, listener);
12-21 18:46:56.541: V/AlbertDemo(2343): Intent { act=com.aevi.a.REQUEST (has extras) }
Try:android.enableProguard=false