Do you use a computer?
Android mode means yes
But that’s not how we agreed! We agreed not to touch the computer! And you advised me libraries that I can never install, because they are only for the computer.
the archive must have a “libraries” directory, which must contain the core library files with the .jar extension.
i said that i am going to try APDE after i run on pc did not have chance yet to try
now you reached compiled sketch what you did ?
I used
1)APDE 5.1alpha
2)write programs and copy to scethbook folde
3)res/xml/device_filter.xml (in users folde)
4) compiled program.
5) extracted apk, decompile apk
6) change manifest
7) compiled apk
8)install modified apk
post this file
- change manifest
Yes.
ask.
.
.
. I can make a video.
just post it to see the file
can you post it as code using </>
Please
<?xml version="1.0" encoding="utf-8" ?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="processing.test.serial4" platformBuildVersionCode="27" platformBuildVersionName="8.1.0">
<uses-sdk xmlns:android="http://schemas.android.com/apk/res/android" android:minSdkVersion="17" android:targetSdkVersion="17" />
<application xmlns:android="http://schemas.android.com/apk/res/android" android:icon="@drawable/icon" android:label="serial4">
<activity android:name=".MainActivity" android:theme="@style/Theme.AppCompat.Light.NoActionBar.FullScreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
<meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" android:resource="@xml/device_filter" />
</activity>
</application>
</manifest>
is the file in root sketch folder ?
???
Manifest file?
why are you asking? there are already two of them alike in one folder. but i modified and installed scetch from somewhere else!
see if this compile with you
or try to compile it same way you did
//////////////////////////////////////////////////////////
//
// supersimple application which sends 1 0 1 0 (toggle)
// after each mouse click to the serial
//
//
// basic infos
// ===========
// https://github.com/mik3y/usb-serial-for-android
// Lib for android > 3.1 to use the USB interface in host mode (OTG)
// https://github.com/inventit/processing-android-serial
// Processing wrapper for the usb-serial-for-android lib
//
import com.yourinventit.processing.android.serial.*;
Serial SerialPort;
boolean Toggle;
void setup()
{
println(Serial.list(this));
// this simple initialisation works only when one Serial consumer (e.g. an Arduino)
// is connected. Serial.list provides a list with all Usb Serial devices attached
// to this machine.
SerialPort = new Serial(this, Serial.list(this)[0], 9600);
}
void draw()
{
}
void mousePressed() {
Toggle = !Toggle;
SerialPort.write( Toggle?"1":"0");
}
And which library to use? My? Others libraries of the comments are not installed, they are for computers!
Yes.
I going.
xxxxxxxxxxxxxxxxxxxxxxxxx
inserted in one line, had to separate.
Compiled the axis with no errors.
but I not runing. it needs to be edited manifest! Continue?