I develop my first android things app from the "https://developer.android.com/things/training/first-device/peripherals.html#handle_button_events" site. And deploy it on raspberry pi 3 (booted up on version 4.1).
The easily deploy on raspberry pi 3 and give me blinking Led too.
But now i don't know how to stop it, and make changes or start some other project.
It contineously blinking and i don't know how to stop it.
In my android studio when i press the start button, then it display the connected devices menu in which it says that raspberry pi is offline. Like this
This is happening because you have set the application as your default start-up application. Thus it will load as soon as you switch on your Android Thing device. To overcome this one solution is to simply uninstall the current package remotely using command:
adb uninstall pkg-name
or by using below command and manually uninstalling it:
adb shell am start -a android.settings.SETTINGS
If you are in debugging phase, better goto manifest file and replace following lines :
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.IOT_LAUNCHER"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
with:
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
Doing this will prevent from making the application as your default boot up application
Update 1: IOT_LAUNCHER is deprecated and should be replaced with HOME