Taifun
July 18, 2024, 3:14am
46
Show us the relevant parts from your logcat output
ADB is a command-line utility that that can be used to control your device over USB from a computer. It will allow you to install / uninstall and or view logs on your device. This could be very handy when there are issues with a specific app and you like to view the logs for information that may lead to identify the cause of error.
In this post, we’ll discuss how to install and use ADB.
Installation:
ADB comes with Android SDK. However, you can download ONLY the ADB files from HERE . Download…
Taifun
Taifun
July 18, 2024, 4:43pm
48
please provide the result as textfile and NOT as screenshot
Jo_Yo:
the app crashes
it also might help, if you could provide a test project as small as possible, which elicits this error and add it into this thread, so someone can tak a look
Taifun
Jo_Yo
July 18, 2024, 5:50pm
49
demoo.aia (2.0 MB)
sorry i couldn't run logcat on pc
when i run the app as it is no crash happen
the crash happen when i change target sdk to 34 in manifest by apktool in mobile and install it again
my phone is samsung A04s android 14
extentions itoo , notification style
Taifun
July 18, 2024, 6:49pm
50
In this case please build on the sdk 34 test server and test the apk file from there
Hello everyone,
I have deployed a technical preview server for the Android SDK 34 update. Starting August 1, all apps deployed to the Google Play Store, which includes App Inventor and all apps built with App Inventor, will be required to target SDK 34. Every update brings new changes to Android's APIs that can break apps and/or extensions. You can read more about breaking changes here . This will be the next major App Inventor update once nb197 with the new UI is deployed.
We are making this s…
Taifun
1 Like
The issue is that you will have to define broadcast receiver type while registering it, if you target API 34.
Context.RECEIVER_NOT_EXPORTED
Context.RECEIVER_EXPORTED
super(container.$form());
this.container = container;
context = (Context) container.$context();
activity = (Activity) context;
Channel(channelDefault);
ImportanceChannel(importanceChannelDefault);
PriorityNotification(priorityNotificationDefault);
IconNotification(iconNotificationDefault);
mediaSession = new MediaSession(context, "tag");
cancelAllNotification();
activity.registerReceiver(receiver, new IntentFilter("MUSIC_FAVORITE"));
activity.registerReceiver(receiver, new IntentFilter("MUSIC_PAUSE"));
activity.registerReceiver(receiver, new IntentFilter("MUSIC_PLAY"));
activity.registerReceiver(receiver, new IntentFilter("MUSIC_PREVIOUS"));
activity.registerReceiver(receiver, new IntentFilter("MUSIC_NEXT"));
activity.registerReceiver(messageBroad, new IntentFilter("MESSAGE_REPLY"));
activity.registerReceiver(progressBroad, new IntentFilter("BUTTON1"));
activity.registerReceiver(progressBroad, new IntentFilter("BUTTON2"));
form.registerForOnDestroy(this);
}
For example:
if (Build.VERSION.SDK_INT >= 34) {
activity.registerReceiver(receiver, new IntentFilter("MUSIC_FAVORITE"), Context.RECEIVER_NOT_EXPORTED);
} else {
activity.registerReceiver(receiver, new IntentFilter("MUSIC_FAVORITE"));
}
3 Likes
Will post an update in sometime.
1 Like
Hey I'm working on an alarm manager extension, I'm having trouble with including a customizable smallicon, by turning media into a bitmap. Any tips?
i believe i got it now. Now i've got another issue, the icon is simply white, even tho i created the icon using android asset studio.
This post was flagged by the community and is temporarily hidden.
so currently, the notification extension is not working.
i have confirmed it by looking at the log, which autogenerated by my phone's system. Also trying to remove the extension from my build. And indeed it was the problem.
the error i meant was the app is force closing.
below are the logs (sorry for the screenshot, i can't copy the text.)
thankfully i still have previous build working.
now i have several question
why is the previous build works?
what is sdk and did AppInventor upgrade the sdk to 34?
why it broke the extension?
i have contacted the developer of this extension by leaving a reply on the post, is it enough?
while waiting the developer to update the extension, what can i do?
thank you for the answer
Taifun
August 23, 2024, 7:51pm
59
Because of
The issue is that you will have to define broadcast receiver type while registering it, if you target API 34.
Context.RECEIVER_NOT_EXPORTED
Context.RECEIVER_EXPORTED
For example:
if (Build.VERSION.SDK_INT >= 34) {
activity.registerReceiver(receiver, new IntentFilter("MUSIC_FAVORITE"), Context.RECEIVER_NOT_EXPORTED);
} else {
activity.registerReceiver(receiver, new IntentFilter("MUSIC_FAVORITE"));
}
As the extension is open source and it looks like you are in a hurry, don't hesitate to provide a bug fix yourself for the community here
Taifun
1 Like
com.jdl.NotificationStyle.aix (32.5 KB)
Hello all, please test this updated extension and let me know the results.
Itoo+NotificationStyle Test: SimpleItooProject2.aia (116.9 KB)
2 Likes
Works well HyperOS Android 13
2 Likes
Thank you, if possible, can you also test it on Android 14?
I don't have a device with android 14, but maybe i can try on bluestacks
1 Like
nope no Android 14, but maybe Android Studio has it
i mean, it works well with Android 15 on Google Pixel
1 Like
Yes, its working fine on Android 14 using Samsung flip 5
1 Like