How do I define apps via mit app inventor? (find my second application using the first one)

I'm just new to this.

1 Like

Something like
asResolveActivity

in the ActivityStarter.AfterActivity Block

might work (untested). Did it work for you?

1 Like

Thanks. I set ActivityPackage, ActivityClass and Did almost everything as in the picture (just changed what happens). The application is simply launched, and nothing happens when it comes back.

1 Like

Shall I drop blocks and settings?

1 Like

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

1 Like

blocks (1)

1 Like

Установлено-Instaled

1 Like

Sorry, I don't know. I notice that you are not providing an Action for the app you are trying to start (or determine if it is not present). You might have to provide an appropriate Action.

Also it might be better to test initially by placing the call ActiviyStarter2.StartActivity in a Button (calling CloudDB2.lGetValue might be interfering) instead of in Screen.Initialize.

The instructions in the ActivityStarter link are certainly confusing. Only you can test this unfortunately.

Typical Action calls are summarized in ActivityStarter

1 Like

Thanks, i will try to do something.

1 Like

See this example http://puravidaapps.com/snippets.php#2skype about how to use the resolve activity method

Taifun

2 Likes

Yes, I will try this method. Thanks.

1 Like

What android do you use?
From my own experience I know that my app was unable to access other apps when app inventor was targeted at api level 30. Users of my app who use android 11 reported me an error. I had to add an permission on QUERY_ALL_PACKAGES to the manifest.

2 Likes

I am using Android 11.

1 Like

Thanks for the info, very useful.

1 Like

Writes that access is denied QUERY_ALL_PACKAGES. What to do?

1 Like

You will need an extension to add this permission to the manifest. Add this extension to your project. You don't need to add a block that asks for permission.
com.extension.QueryAllPackages.aix (4.4 KB)

2 Likes

which means, you forgot to read

Taifun

Thanks, i will try to do something.

Thanks everyone, everything works.

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