Cannot find Clock1?

So - it had been working for me.
Then I started editing it again.
I tried to change the graphics -the blue "bubble" around each "time".
And I got Anke's error!
Well, phooey.
Any idea what is going on there???

  1. Deleted the new graphics - still won't load
  2. loaded onto another identical phone that hadn't experienced the error - loads fine.

Something residual appears to be lurking about in the code.

I've deleted the other extension (Taifun's Tools - keep screen on) and now get this error -

Unable to load extensions.java.lang.StringIndexOutOfBoundsException: start 1, end 0, length 0
Note: You will not see another error reported for 5 seconds.

I am, at this point, totally lost.

You do not appear to have tried the bugfix companion app ?

See post # 2

Hi, thanks.
Would that still help?
I've removed the extensions.

If it works, you can probably put the extensions back. Make sure you refresh your browser / AppInventor app and your companion device. Uninstall the old companion app from your device to clear your assets folder.

Thanks, I'll give it a try

Hi. Tried it, no luck. Did whole routine over -

  • Stopped app, cleared Data, Uninstalled Ai2 Companion
  • rebooted phone
  • Fresh install Ai2 comp. app.
  • loaded your app.
  • closed my web browser; reopened
  • When I tried to load my app, it said, "AI2 companion out of date" - I ignored that; "not Now".
  • Got the Anke error, "trying to draw too large... "
    . . .

As I said...

Thank you, Anke.
What did you do to change it?
(Help me learn here)

Does my version (ExcerTrack_5_checkpoint2a.aia) work for you with Companion and/or APK?

Well... it works with the Companion app (I can try .apk if you'd like).
Until -
until I edit it. I just put in a block that told a pushed-button to turn Bold font.
That seems to corrupt it, just like my file.
Error - "cannot find Clock1'

Review -
I have an older .aia with no extensions and it loads fine.
Anke's loads fine. Both on Companion.
Both get corrupted if I edit them. "Cannot find Clock1".

Update - Elimination of variables. This got me to wondering if I can do any editing. So I created a little test file that just changed the button color when pressed. Then I added a clock. And edited it. It runs fine on Companion. So it's not editing itself, it's something else.

I resized (shrinked) Pod2.png.

Fascinating.

OK - I opened the app.
I wouldn't load into the Companion.
I deleted Pod2.png
It was still trying to load; no go.
I deleted the extensions
It loaded live !!! (I didn't restart it as I deleted things)

Thank you so much, Anke and others!

It seems extension issues and the button picture are the problems.
I can live without both, but will continue to test.
I can't live without being able to edit my app. : ),

No, only the Button.Image (Pod2.png).
Only use images in the size actually required.

Great to know, Anke, thank you.
I'll work on that this afternoon.

1 Like

Hi again. So, if you edit the .aia that you sent to me (like make a pushed button Bold text) does it work?

Alright. I've edited this several times, and it works - it loads and runs via Companion app and as an .apk.
OS13 and OS5.1 (takes 2 minutes to load!)

Keys

- No Extensions (I use ABG's codeblocks)

- smaller graphics

Could others test and verfiy this?

Thanks,
Mirth
ExcerTrack_6.aia (81.2 KB)

Ohh :upside_down_face:, now we're starting from scratch again. The Button.Image has the same oversized dimensions as your first app version (post #1). For the last time, use my app version (with both extensions) and you won't have any problems on any Android version (neither with Companion nor with the APK).

And replacing my TFormat extension with ABG's blocks is definitely not the solution.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.