We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi everyone,
I'm trying to get twitter stream on my android nexus4 with twitter4j. On processing version 2.2.1, it work perfectly ! but i can't upload my sketch to my device on processing 3.* and got this error :
i tried sdk 18 -> 23 and none works with processing 3.07
I used this exemple to test the lib https://github.com/neufuture/SimpleTwitterStream
And i don't where the error come from , processing, lib or android sdk ?
thanks for reading :) , T.
PS : Other sketch compile perfectly on my phone with processing 3
Answers
@tournevis:: as you can see in your error message:: you have the MANIFEST_MALFORMED syndrom!!! So copy it && post it
Ok ok :
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package=""> <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="22"/> <application android:debuggable="true" android:icon="@drawable/icon" android:label=""> <activity android:name=""> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> </application> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> <uses-permission android:name="android.permission.BLUETOOTH"/> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/> <uses-permission android:name="android.permission.INTERNET"/> </manifest>
I'm not an android dev, but Xml seems Ok.
Btw i'm on OsX Yosemite
@tournevis== have you API level 22 installed in your SDK?
Yep, i re-downloaded it , but still " Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED] "
try this (it works with my code)::
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package=""> <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="21"/><application android:debuggable="true" android:icon="@drawable/icon" android:label=""><activity android:name=".MainActivity">android:theme="@android:style/Theme.NoTitleBar"><intent-filter><action android:name="android.intent.action.MAIN"/><category android:name="android.intent.category.LAUNCHER"/></intent-filter></activity></application> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/><uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/><uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/><uses-permission android:name="android.permission.INTERNET"/> </manifest>
Thank you so much, it works perfectly :) !
@tournevis ::: some little differences, targetSdk, name for activity...