Rifaldo_Id
(Rifaldo Id)
November 10, 2022, 11:50am
#1
I need help regarding my application that I made can’t be opened. When the test mode via connect to the companion application, the application runs normally, but when it is downloaded the application cannot be opened.
here’s my application:
coba (1).aia (1.2 MB)
Taifun
November 10, 2022, 1:32pm
#2
Use logcat to find out more about this
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...
Reading time: 1 mins 🕑
Likes: 16 ❤
Taifun
try removing these extension and try to build
1 Like
also reduce your blocks like this by using procedure blocks (On removing BottomMenu Extension, app works fine)
cob_2.aia (551.8 KB)
Rifaldo_Id
(Rifaldo Id)
November 11, 2022, 3:28pm
#5
turns out the extension has a problem
1 Like
Rifaldo_Id
(Rifaldo Id)
November 11, 2022, 11:44pm
#7
the button can’t set to turn off
It is Simple. Go to procedure and remove all the blocks but use only one if then else condition…
If the image of the clicked button is on
Then change into OFF
Else change into ON
May i know what is the use of the global variables? If they are used to change the images means then it is no need.
Rifaldo_Id:
can’t set to turn off
check this
cob_2.aia (300.2 KB)
i have totally modified your On Off procedure into too simplified manner
Rifaldo_Id
(Rifaldo Id)
November 12, 2022, 7:02am
#10
thanks, now the program is concise. i really appreciate that
1 Like
Rifaldo_Id
(Rifaldo Id)
November 14, 2022, 9:10am
#11
I want to make a web request when the button is on and off, but the web request varies from one button to another. I’m asking for concise program code suggestions
Then get the index of the button clicked and the image name…
Create two more global
One variable for ON button with required web url lists likewise for OFF
Now when any button clicked get the index and get the name of the picture. If the picture contain the text ON get the web url from the ON variable using select list item list likewise get the web url for OFF button clicked
Rifaldo_Id
(Rifaldo Id)
November 15, 2022, 12:09pm
#13
like this program that I will make.
when button 1 is pressed then set web url to light 1, when button 2 is pressed then set web url to light 2. and so on.
as i said early, put the url in a separate global variable then by using index method get the required web url… very simple work man
Rifaldo_Id
(Rifaldo Id)
November 15, 2022, 1:14pm
#15
how do i allocate web 1 for button 1 and web 2 for button 2
Taifun
November 16, 2022, 1:04am
#19
Learn to use procedures
A very good way to learn App Inventor or Kodular is to read the free Inventor’s Manual here in the AI2 free online eBook http://www.appinventor.org/book2 … the links are at the bottom of the Web page. The book ‘teaches’ users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps
How to do a lot of basic things with App Inventor are described here: How do you...? .
Also do the tutorials Tutorials for MIT App Inventor to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor
Taifun.
Rifaldo_Id:
way i can do
No. This won’t be good. You have not tried the way that i mentioned above. I told you to use index method so it will be over with one simple block
Tell us sample url . During On position have to call or Off position have to call
EDIT
Put the url in this list according to button clicked and test
with the help of thios global button clciked number you can do whatever after getting text from web. Simple
system
(system)
Closed
December 16, 2022, 2:04am
#21
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.