Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Multiple Intentions to the App #11

Open
tsweet77 opened this issue Nov 2, 2024 · 1 comment
Open

Add Multiple Intentions to the App #11

tsweet77 opened this issue Nov 2, 2024 · 1 comment

Comments

@tsweet77
Copy link
Owner

tsweet77 commented Nov 2, 2024

The main interface handles all the intentions.

They can add new intentions (with confirmation), delete them (with confirmation), and move them around left and right in the navigation.

Allow the user to give a short title (like 30-40 characters) to each intention.

You can navigate with numbers and titles to the left of the file and mic icons like: < 1 2 3 4 5 > for however many intentions there are.
Show up to five at a time.

Have icons for adding new intention (and confirming if they want a new one), and removing intentions (with confirmation).

Some may want up to 15+ intentions.

They will choose one with which to get notifications from.

Each will have its own timer and posting frequency. They can each be at different frequencies if they want.

Have it restore all the intentions when the app is started.

When they rearrange the intentions order it will change the order of the intents.txt file.

Save them in a intents.txt file like:

Title
Multi-Line Content
||||| (Delimiter)
(blank line)

@tsweet77
Copy link
Owner Author

tsweet77 commented Nov 2, 2024

And look into v1.55.5 crashes:

MainActivity.kt - com.anthroteacher.intentionrepeater.TimerForegroundService.onDestroy
kotlin.UninitializedPropertyAccessException

Exception java.lang.RuntimeException:
at android.app.ActivityThread.handleStopService (ActivityThread.java:5178)
at android.app.ActivityThread.-$$Nest$mhandleStopService
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2489)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loopOnce (Looper.java:257)
at android.os.Looper.loop (Looper.java:368)
at android.app.ActivityThread.main (ActivityThread.java:8839)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:572)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1049)
Caused by kotlin.UninitializedPropertyAccessException: lateinit property wakeLock has not been initialized
at com.anthroteacher.intentionrepeater.TimerForegroundService.onDestroy (MainActivity.kt:1461)
at android.app.ActivityThread.handleStopService (ActivityThread.java:5158)


com.anthroteacher.intentionrepeater.MainActivityKt.hashFileContent
java.lang.OutOfMemoryError

Exception java.lang.OutOfMemoryError:
at java.util.Arrays.copyOf (Arrays.java:3585)
at java.io.ByteArrayOutputStream.toByteArray (ByteArrayOutputStream.java:211)
at kotlin.io.ByteStreamsKt.readBytes (IOStreams.kt:137)
at com.anthroteacher.intentionrepeater.MainActivityKt.hashFileContent (MainActivity.kt:484)
at com.anthroteacher.intentionrepeater.MainActivityKt$Greeting$resultLauncher$1.invoke (MainActivity.kt:312)
at com.anthroteacher.intentionrepeater.MainActivityKt$Greeting$resultLauncher$1.invoke (MainActivity.kt:308)
at androidx.activity.compose.ActivityResultRegistryKt$rememberLauncherForActivityResult$1$1.invoke$lambda$0 (ActivityResultRegistry.kt:106)
at androidx.activity.compose.ActivityResultRegistryKt$rememberLauncherForActivityResult$1$1.$r8$lambda$VLs2Oqd6MzDD-LGilzyhNhDSH_4
at androidx.activity.compose.ActivityResultRegistryKt$rememberLauncherForActivityResult$1$1$$ExternalSyntheticLambda0.onActivityResult (D8$$SyntheticClass)
at androidx.activity.result.ActivityResultRegistry.doDispatch (ActivityResultRegistry.kt:371)
at androidx.activity.result.ActivityResultRegistry.dispatchResult (ActivityResultRegistry.kt:331)
at androidx.activity.ComponentActivity.onActivityResult (ComponentActivity.kt:786)
at com.anthroteacher.intentionrepeater.MainActivity.onActivityResult (MainActivity.kt:180)
at android.app.Activity.dispatchActivityResult (Activity.java:8429)
at android.app.ActivityThread.deliverResults (ActivityThread.java:5414)
at android.app.ActivityThread.handleSendResult (ActivityThread.java:5460)
at android.app.servertransaction.ActivityResultItem.execute (ActivityResultItem.java:54)
at android.app.servertransaction.ActivityTransactionItem.execute (ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:136)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:96)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2289)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loopOnce (Looper.java:201)
at android.os.Looper.loop (Looper.java:288)
at android.app.ActivityThread.main (ActivityThread.java:7996)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:553)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1003)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant