Above is effectively your Blocks, but arranged correctly. However, I am not familiar with the "Phone State" permission - and storing the state in TinyDb? Is the state guaranteed never to change?
Actually, there is a lot wrong with the start of your App!
Above is effectively your Blocks, but arranged correctly. However, I am not familiar with the "Phone State" permission - and storing the state in TinyDb? Is the state guaranteed never to change?
What does the Procedure "Starten" actually do? That too might be doing something that causes a crash.
Ok i try your method. But i think is the same.
It is not the same. I would not waste my time offering you something your code already performs correctly.
So when you say "it doesn't work", how do you measure that? Simply that the App still crashes even with a new icon (exactly as I specified, or just remove your icon for now and App Inventor will use a default AI icon) and a safe Screen Initialisation?
Can we see the Starten Procedure?
Did your App work via the Companion?
Yet another question - did someone here advise you to ask for READ_PHONE_STATE permission?
If your app targets Android 9 (API level 28) or lower, the method returns null or placeholder data if the app has the READ_PHONE_STATE permission. Otherwise, a SecurityException occurs.
1) Remove the permission request. Build the APK. What is the result?
2) Remove the Procedure "Starten" (you can store it in the BackPack). Build the APK. What is the result?
.... Did you remove the call to "Starten" too?
The App Inventor Companion is used to test the App code as you define the code. It's one way to ensure that each section of the code works, before continuing to develop the next.
Can you show us the .Timer events for your Clock(s)?Also, are those Clock(s) enabled or disabled when built?
By "The app is complet destroyed", do you mean the GUI Layout is not as expected, or simply that nothing seems to work?
When i build my app and try open the .apk on my phone,
the app is crashing. I dont know why?
Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.
PS C:\Program Files (x86)\AppInventor\commands-for-appinventor> .\adb logcat *:E- waiting for device -E/Zygote ( 33): setreuid() failed. errno: 2E/Zygote ( 33): setreuid() failed. errno: 17E/BatteryService( 60): usbOnlinePath not foundE/BatteryService( 60): batteryVoltagePath not foundE/BatteryService( 60): batteryTemperaturePath not foundE/SurfaceFlinger( 60): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wakeE/EventHub( 60): could not get driver version for /dev/input/mouse0, Not a typewriterE/EventHub( 60): could not get driver version for /dev/input/mice, Not a typewriterE/System ( 60): Failure starting core serviceE/System ( 60): java.lang.SecurityExceptionE/System ( 60): at android.os.BinderProxy.transact(Native Method)E/System ( 60): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)E/System ( 60): at android.os.ServiceManager.addService(ServiceManager.java:72)E/System ( 60): at com.android.server.ServerThread.run(SystemServer.java:184)E/SoundPool( 60): error loading /system/media/audio/ui/Effect_Tick.oggE/SoundPool( 60): error loading /system/media/audio/ui/KeypressStandard.oggE/SoundPool( 60): error loading /system/media/audio/ui/KeypressSpacebar.oggE/SoundPool( 60): error loading /system/media/audio/ui/KeypressDelete.oggE/SoundPool( 60): error loading /system/media/audio/ui/KeypressReturn.oggE/ThrottleService( 60): Could not open GPS configuration file /etc/gps.confE/logwrapper( 133): executing /system/bin/tc failed: No such file or directoryE/logwrapper( 137): executing /system/bin/tc failed: No such file or directoryE/logwrapper( 138): executing /system/bin/tc failed: No such file or directoryE/HierarchicalStateMachine( 60): TetherMaster - unhandledMessage: msg.what=3E/dalvikvm( 282): Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method com.google.appinventor.components.runtime.ButtonBase.setShape
E/dalvikvm( 282): Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method com.google.appinventor.components.runtime.ButtonBase.setShape
leads me to think that you are doing something strange with Button shapes?
which Android device and Android version are you using for your tests?
I have a normal Button without a text but with image.
how large is that image (width and height in pixel)?
Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method com.google.appinventor.components.runtime.ButtonBase.setShape