Thank you for the fast reply, anyway yes, i did
Did you set the right permissions? <uses-permission android:name="android.permission.INTERNET"></uses-permission> <uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE"></uses-permission> The app crashes when i try to create a client with CoapClient client = new CoapClient(uri); Here is a part of the stack trace: 01-20 18:16:45.537 1215-1245/com.wirelesslab.bitsuicide.coaptester I/NetworkConfig﹕ Storing standard properties in file Californium.properties 01-20 18:16:45.916 1215-1245/com.wirelesslab.bitsuicide.coaptester W/NetworkConfig﹕ Error while storing properties to /Californium.properties java.io.FileNotFoundException: Californium.properties: open failed: EROFS (Read-only file system) at libcore.io.IoBridge.open(IoBridge.java:456) at java.io.FileOutputStream.<init>(FileOutputStream.java:87) at java.io.FileOutputStream.<init>(FileOutputStream.java:72) at java.io.FileWriter.<init>(FileWriter.java:42) at org.eclipse.californium.core.network.config.NetworkConfig.store(NetworkConfig.java:218) at org.eclipse.californium.core.network.config.NetworkConfig.store(NetworkConfig.java:205) at org.eclipse.californium.core.network.config.NetworkConfig.createStandardWithFile(NetworkConfig.java:170) at org.eclipse.californium.core.network.config.NetworkConfig.getStandard(NetworkConfig.java:125) at org.eclipse.californium.core.CoapClient.<init>(CoapClient.java:52) at com.wirelesslab.bitsuicide.coaptester.MainActivity$RequestTask.doInBackground(MainActivity.java:76) at com.wirelesslab.bitsuicide.coaptester.MainActivity$RequestTask.doInBackground(MainActivity.java:71) From what i understood the app crashed because californium tries to create the file “Californium.properties” in the root directory and it’s not authorized! Any ideas?
It should work but I never tried it myself. Please report your issues! Julien Hi everyone, I’d like to know if Californium works out-of-the-box on Android and if it's just me who encounters problems in using it! Francesco Leacche _______________________________________________ cf-dev mailing list cf-dev@xxxxxxxxxxxTo change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/cf-dev
_______________________________________________ cf-dev mailing list cf-dev@xxxxxxxxxxxTo change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/cf-dev
|