2017년 6월 19일 월요일

Modification of an existing APP


I have 5 published fully functional 2-screens and 3-screens APPs. After adding just a button and a label on each, 4 of the 5 APPS stop when going from one screen to another. I succeeded on only 1 out of 5.
Anybody knows how a previously functional APP won't take any minor addition? 

--
see the following general tips and in your case especially #1 and #2


1. Use different screens wisely
Before starting to create another screen, first you should think about is it really necessary? See also Building apps with many screens and SteveJG's post about advantages/disadvantagesbecause in only one screen you also can use vertical arrangements to simulate different screens, just set the arrangements to visible = true/false as needed... See also Martyn_HK's example about how to use Tabs in App Inventor and another example from Cyd

2. App Inventor works best if you use images whose size matches the size you want them to appear on your screen. If you import larger images into your app, your app may run out of system memory. Using Images with App Inventor

3. Avoid redundancy
Probably it helps to read chapter 19 - 21 in Dave's book http://www.appinventor.org/book2 to get an idea how to do DRY programming with App Inventor Don't repeat yourself 




to find out more about the Runtime Error, you can use Logcat

I normally use Eclipse and Logcat there, but if you have installed the App InventorSoftware (see also Installing and Running the Emulator in AI2), you already have everything you need to use logcat...

How to use Logcat
1. connect your device using USB with your computer
2. in File Manager go to the App Inventor directory, which is  C:\Program Files\App Inventor or similar
3. press Shift and right mouse click the subdirectory commands-for-Appinventor to get the context menu
4. select "open command window here" and you will get a command window of that subdirectory
5. enter adb logcat and the logcat will start running
6. start your app to elicit the error
7. copy the log (see below)

To copy your log, right click, click "select all" and enter to copy the complete log into the clipboard, then open Notepad and paste it using ctrl-v.

--
THANK YOU Taifun. I resized all the images and backgrounds, and it worked. FYI : I had the problem only on my Phone Samsung Galaxy S5, on my Acer Tablet it was ok before the resizing. Many Tks again. 

-- 


댓글 없음:

댓글 쓰기