2017년 1월 10일 화요일

i can do something with videos?


when I put a video on the screen of the app, i looks normal, but when i use my emulator, the video is only a 10 or 20% of the shadow of the frame.

--
are you using the videoplayer component?
how did you set its width and height? did you try to set to fill parent?
what happens, if you test using an Android device instead of the emulator?

-- 
refer to: VideoWall for App Inventor 2

--

Speechrecognizer BeforeGettingText


What is this event used for ???

--
See documentation here: SpeechRecognizer

Events

AfterGetting(Text result)
Signaled after the recognizer has produced text. The argument is the text result that was produced.

BeforeGettingText()
Signaled just before the recognizer is called.

-- 

SpeechRecognizer


SpeechRecognizer

Picture of Speech Recognizer component
Use a speech recognizer component to listen to the user speaking and convert the spoken sound into text using Android's speech recognition feature.

Properties

Result
The last text produced by the recognizer.

Methods

GetText()
Asks the user to speak, and converts the speech to text. Signals the AfterGettingText event when the result is available.

Events

AfterGetting(Text result)
Signaled after the recognizer has produced text. The argument is the text result that was produced.

BeforeGettingText()
Signaled just before the recognizer is called.


Dynamic shrinking / growing?


I have an image sprite that I need to shrink when flung, and keep shrinking until it reaches y = 20. I can change its size using the set height and width commands, but I want it to keep shrinking until it reaches the y = 20 co-ordinate. Any ideas how to do that? Thanks for reading!

fling.png 표시 중

--
Use a clock, every time the Timer event is triggered, reduce the width and height  a little more. Test if it reached the desired size, then when it does, stop the clock.

-- 

please am tired of my sound record app which is created by appinventor


Hello Friends I was developed a sound recorder appthrough my off line portable 3.6 version of ai2u appinventor the after I exported when I try in my emulator it work but in phone when I press record button it say unfortunately app has stopped Even if I tried in other phone so please help me pleas am about lost hop of this

--
this is the codes I use I attaches as .aia file
SoundRecorder.aia


-- 
without looking at your project

--
Hello! thank you for your suggestion but even if I have use only screen 1 which is my problem is when I try it out in phone and press the button called record sound it is gonna be "unfortunately app name has stopped I didn touch the screen setting I just simply put 2 button and one list picker  please see for once my .aia file I am so depressed by this problem

-- 
which Android verion do you have?
there is an issue using the sound recorder in Android 4.2.2 devices see here

-- 
my android version is 4.4.2 I hop this is not version problem have you tried on your phone and is that working? thank you for your concern

-- 
try my snippet 

and let us know, if it works for you on Android 4.4.2

-- 
Hello ! Thank ya for your help full answer you are correct when I try all android version with 4.42 are not working but it works on other version but still I have question which is what can I do for this as a solution

-- 
you might want to read again Hal's answer here Problema con soundrecorder (Problem with soundrecorder)

-- 



Problema con soundrecorder (Problem with soundrecorder)


Slve at all or noticed by a few of the days of SOME Components What type SoundRecorder That works with Android up to version 4.1.2 and 4.2.2 From when I make the app Starting says SoundRecorder Application is closed and abnormally so I Come solve Thanks.

--
does the following soundrecorder snippet work for you?

--
I did so but I always make the same mistake

--
ilroblema that end the 4.1.2 goes well with my 4.2.2 no

--
are you saying, my snippet also does not work for you in your 4.2.2 device?
if yes, you might want to help MIT to fix this issue and provide the logcat result of your device of that runtime error?

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 Inventor Software (see also http://appinventor.mit.edu/explore/ai2/setup-emulator.html), 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 Manger 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

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.

--
l 'app works but until the Android version 4.1.2 or 4.2.2 and above me but always says the soundrecorder application and closed in abnormal manner, but with the emulator works then I assume that sound recorder is not compatible by 4.2.2 forward or do not know or experience the all

--
the sound recorder snippet works fine in Android 5
so if you like to help with this issue, then please provide a logcat result as explained previously

--
Sorry but I do not understand anything, or on what I have to do if I can explain it better thanks

--
then you do not understand or that centers or with the emulator or with the code or via usb always tells me the same thing

--
1. connect the VIA USB device with the PC "Done"
2. Go to the directory in File Manger App Inventor, Che and C: \ Program Files \ App Inventor or Similar "PC or tablet?"
3. INSERT logcat adb logcat and will start working "where I take it?"

--
1. connect your device using USB with your computer
2. in File Manager of your computer, 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

-- 
but the adb logcat from where I take it and how?

--
and three aiStarter I have to have some other program installed?

--
How to use Logcat

1. enter adb logcat and press enter and the logcat will start running
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.

--
hello and thank you the time you are dedicating or I did as you said I am attaching two pictures the logcat but always continues to flow data now what do I do.

 img1.png

 img.png

--
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.


--
but when I open logcat still continues to move forward without stopping. Then how should I save and where to put the block notes.

--
start logcat, then start your app until the error appears, then copy your log like this:
right click, click "select all" and enter to copy the complete log into the clipboard, then open Notepad and paste it using ctrl-v.
Taifun

--
Once you copy the notes in the bloc known as save it with any name? and then where I put the bloc notes saved in which folder? thanks as always

--
yes, after you copied the log into a textfile, you can store it under any name in any directory (for example Luigi.txt in directory c:\Luigi), just make sure, you find it later again 
the textfile you then can add into this thread...
Taifun

--
This is what was there.

--
as I can see from the log, you are testing with the companion app 
my suggestion now is to use again my example How to use the Sound Recorder
build the example project and run it (apk file) on your device. Do you still get the error? If yes, please provide another logcat output. thank you.
Taifun

-- 
l 'error that you have read and own its app but as I said earlier up to 4.1.2 works

--
but then not the app that does not work and soundrecord wrong

--
l 'error that you have read and own its app but as I said earlier up to 4.1.2
it seems to be, you tested my app together with the companion app, which does not help very much... 
therefore my suggestion is to build my example project and run it (apk file) on your 4.2.2 device to get the error together with the logcat output, so MIT would be able to find out more depending on the logcat output. 
Do you still get the error? If yes, please provide another logcat output. thank you.

but then not the app that does not work and soundrecord wrong
sorry, I did not understand this...

--
I have always the same error. Until then, the version of Android 4.1.2 works perfectly From 4.2.2 not.

--
Thank you for such a careful bug report.   I believe there were some problems with the Android version 4.2.2 operating system, that have since been corrected.
We'll have to wait and see if this reappears in newer Android systems.

--
I also find myself in the same situation and despite having adopted the various tips that will have been given, I could not solve. If you succeeded, let me know and tell me how it's done. I'm sorry but this is the first time I insert myself into the group and I have little experience.

--
hal hello and thanks so and a problem that will be solved?

-- 
No john aspect anke me that solves the problem

--
This problem 'due to a problem in Android. It should adjust itself to the new version. If the problem persists in the new version of Android (when it comes out '), please let us know and we will investigate the problem.

--
So I guess for my Android there anything to do? ......... Thank you for the time you dedicated to me

--
But the new version of App Inventor?

--
Tonight or tested with version 4.4.2 and even works

--
Nothing new ?

--
As Professor Abelson said above, we're not going to make any changes unless it's also broken in the next version of the Android OS (Lollipop).  There seems to be an issue with your 4.2.2, and we're not going to make changes to App Inventor for a single version of the OS.

If it doesn't work on Lollipop, it'll be addressed but don't expect any more changes unless it's broken on 5.0+ versions as well.

--
I've just tried  the Jiayu s3 advanced, a smartphone with android 4.4
SoundRecorder does not function.
The app crashes.
Any news?

--

arabic in mysql database


i am saving data from app inventor text to mysql database , it always save as ?????????????????????? and not in arabic charachter
i have this code in my php file
   mysql_query("set character_set_server='utf8_general_ci'");
   mysql_query("set names 'utf8_general_ci'");
   mysql_set_charset('utf8');
database set to utf8
and aso the table
how can i save arabic text to mysql using appinventor

--
probably Q3 can help? see here https://puravidaapps.com/mysql.php#q
also you should use mysqli instead of mysql...

-- 
its not working when i use mysqli it gives me server error, i am woundering if the problem starts when the app inventor block send the data to the php script or its in the php script it self or its in the database , i dont think its in the database bcz its all configured as utf8 its in the appinventor blocks that may be send the arabic from the textfields as ?????? or in the php that gets the code 


$name=mysql_real_escape_string($_GET['name']);
$phone=mysql_real_escape_string($_GET['phone']);

or in the insert into statment 
$sql = "INSERT INTO new 
  (name,phone,adress,besttimetocall,date) 
  VALUES ('$name','$phone','$adress','$besttimetocall',NOW())";

or i donno

-- 
can u give me a sample php code for insert into plz that working for inserting arabic text fro appinventor text field to database mysql

-- 
well, the mysql API is deprecated, you should use mysqli instead
what about using my example script as test?
what about using mysqli_set_charset($dbc, "utf8"); as Celog suggested in Q3 here https://puravidaapps.com/mysql.php#q?
let us know, what you find out

-- 
now i am getting error 
Could not enter data:
in mysqli
my php code for insert into is

$name=($_GET['name']);
$phone=($_GET['phone']);
$adress=($_GET['adress']);
$besttimetocall=($_GET['besttimetocall']);
mysqli_set_charset($conn, "utf8");
   $sql = "INSERT INTO springli_app.neww 
      ('name','phone','adress','besttimetocall') 
      VALUES ('$name','$phone','$adress','$besttimetocall')";
         
   //mysqli_select_db('springli_app');
   $retval = mysqli_query( $sql, $conn );
   if(! $retval ) {
      die('Could not enter data: ' . mysqli_error());
   }
   
   echo "Entered data successfully\n";
   
   mysqli_close($conn);

-- 
can you give me a correction for my code plz

-- 
oki mysqli is working now still getting ?????/ in the database , this thing is driveing me crazy help me plz

-- 
what about using mysqli_set_charset($dbc, "utf8"); as Celog suggested in Q3 here https://puravidaapps.com/mysql.php#q?


let us know, what you find out


--
still getting ???????????????????????????

Untitled.jpg 표시 중

 Untitled.jpg

-- 
i think may be its the app inventor it self its not sending the arabic text correctly how can i fix this plz

-- 
it seems to be, you did not follow the Stackoverflow suggestions?
what about for example this one? http://stackoverflow.com/a/19588466/1545993
in case this does not help, don't hesitate to look for more tips here https://www.google.com/search?q=mysql+arabic+characters
and let us know, what worked for you

-- 
still not working i did every thing

-- 
you might want to ask somewhere else and first set up your database correctly
sorry, unfortunately I'm not able to help more 

-- 

Activity Starter automatically back to screen 1


to launch an website with activity starter , and use the back button for getting home to screen 1 is quiet ok,

but to do this after a time is over or getting a sms with the right text i did not find any way.. 

--
yes exactly, if you use the activity starter to start another app, that other app has the control and the only way to go back to your app is to use the back button

-- 
No other way ? Like after a while or a special Text from SMS?

--

to launch an website with activity starter 

use the webviewer instead

-- 

Sending an Email through App Inventor


Is it possible to send an email through app inventor without having to use an activity starter to open your email

--
See Taifun's post HERE for different email solutions.

-- 
thanks!

-- 

My app stops working on some devices


For one unknown reason my app stopps working on somlen devices. This is the link to my apphttps://play.google.com/store/apps/details?id=appinventor.ai_clerckxjeroen.Ezemaal 

It works great on my device and some of my friends, but it is showing the message "App has stopped" when opening the app on some other devices.

Can someone please help because i do not know the problem.

--
1. switch screens correctly
2. follow these recommendations Using Images with App Inventor

--
I tried your solution, but this did not worked out. I tried an other build of my app from april 2015. This version worked until february this year on every phone. Now it doesn't work at all. None of my previous apps are working when, i make a recent build. Can you please help me!

-- 

once compiled and builded to APK when installing it crash


like I said, I've composed from a test app for time and timer.
on emulator it run and go quite (a bit) well, maybe need some (maybe a LOT) debug but the big is made.
when i build the APK file and try to install on (various) ANDRD phones, this message occur: "the applications installation packages are blocked abnormally" then exit undone.
(this frase is literally translated from italian)
I put a link to .AIA file, maybe somebody will be curious

the question that scares me is: what I wrong ?
the one that makes sick me is: why ?


--
without looking at your project
1. switch screens correctly
2. follow these recommendations Using Images with App Inventor

-- 

app inventor build failed error


hello i have a problem about build my app i take this eror: Build failed! The request to Android exceeded the 10 MiB limit.
please help me quickly

--
How to overcome the App Inventor project limit of 10 MB

It does not look like you have used the forums yet, as a search using the search box above would have returned several threads about this topic.

-- 

connection issues on wifi


I have installed App Inventor on my home computer and the companion on my phone
My computer is connected to the internet using a nic card/cable (my computer has no wifi)

Using same modem/router, I am connecting my cell phone using the wifi

App Inventer says there is a connection problem to my cell phone

What is my problem?
Do I need to use the emulator?  or get a wireless card for my computer?
Ideas?

--
see here How Does my Android Device Connect Over Wifi? does step 3 work for you?

Connecting over the Phone Over Wifi Troubleshooting
Try the following steps to troubleshoot your wireless connection.
1. Try to reach http://rendezvous.appinventor.mit.edu from your PC
2. Try to reach http://rendezvous.appinventor.mit.edu from your Android device
3. If the steps above both work, try using the "ping" command to ping to the IP Address of the phone (displayed by the MIT AICompanion in its startup window). If you are using windows, type "ping" + *IP address of the phone* in cmd.exe window, if you are using mac or linux, type type "ping" + *IP address of the phone* in terminal window. Detailed instruction see http://www.wikihow.com/Ping-an-IP-Address
4. If all of these steps succeed and Wireless AppInventor still doesn't work, then there may be a firewall between the computer and phone that is blocking ports 8001 and 9987. If you have a "telnet" program you can attempt to telnet from the computer to the phone on these ports. If the connection won't complete, then there is likely a firewall in place that is blocking connections to the phone 

-- 

How Does my Android Device Connect Over Wifi?


A feature of AppInventor allows users to connect a device to a PC over wifi to test their apps. Below we explain in more detail how this process works.
To use the AppInventor connection over wifi, a user must download the MIT AI2 Companion App via the Google Play Store (note: AI1 users should get the v1 companion, not the v2), and install it directly to your phone (note that to directly install, you will need to allow installation of non-market apps in your device's system settings). Directly loading App Inventor in this way means that the Play Store can not automatically update the App. When there is an App Inventor upgrade, you will need to manually update the Companion App.
The MIT AICompanion allows a user to make a connection between the Android device and PC over the MIT RendezVous Server.
The Android device must be using Wifi and not the cell network for Internet connectivity.

How MIT RendezVous Server works

1. Your PC checks in with a 6-character code generated by the MIT AICompanion
2. MIT RendezVous Server records the IP address of your PC
3. Your Android device checks in with a 6-character code
4. MIT RendezVous Server records the IP address of your phone
5. MIT RendezVous Server tells the device and computer with the matching 6-character code the other's IP address
6. Device and computer communicate directly using IP
Ideally our network situation should look like this:

Connecting over the Phone Over Wifi Troubleshooting

Try the following steps to troubleshoot your wireless connection.
1. Try to reach http://rendezvous.appinventor.mit.edu from your PC
2. Try to reach http://rendezvous.appinventor.mit.edu from your Android device
3. If the steps above both work, try using the "ping" command to ping to the IP Address of the phone (displayed by the MIT AICompanion in its startup window). If you are using windows, type "ping" + *IP address of the phone* in cmd.exe window, if you are using mac or linux, type type "ping" + *IP address of the phone* in terminal window. Detailed instruction see http://www.wikihow.com/Ping-an-IP-Address
4. If all of these steps succeed and Wireless App Inventor still doesn't work, then there may be a firewall between the computer and phone that is blocking ports 8001 and 9987. If you have a "telnet" program you can attempt to telnet from the computer to the phone on these ports. If the connection won't complete, then there is likely a firewall in place that is blocking connections to the phone
If you do not pass step 4, your network most likely looks like this.
Many networks have firewalls set up that block connections to the phone. A way to get around this is to use your own or a local computer as a wifi router and have all computers and devices using AppInventor connect to the network using the new router. For detailed instruction setting up a computer as a router, see http://www.wikihow.com/Create-a-Wireless-Network

Why is my phone still not connecting?

Check that your device is connected to Wifi and not the cell network. On some devices and in some locations, even with WiFi enabled, the phone continues to use the cell network. If this is happening to you, you can disable mobile networking (cell phone carrier based Internet connectivity) from your device's Android settings menu.

Converting images to base64


I am trying to convert images to base64 but I have no idea how to do this in app inventor. I know i can do this in HTML / JS . But I do not know how to do this in appinventor. +Taifun may have an answer, I know that +Taifun is knowledgeable in HTML to app inventor data exchange.

--
you could write your own extension and create a block yourself...

more information about how to create an extension see here Announcing App Inventor Extension Components
however that will be more advanced and will require some Java skills...

Alternatively I could write that block for you. In case you like to be the sponsor of that block, then contact me by email. Thank you.

-- 

Tiny WebDB to create a customTinyWebDB service


How often does the data in Tiny WebDB get rewritten/wiped?

-- 
see the documentation here Creating a Custom TinyWebDB Service
you might want to create a custo mTinyWebDB service

-- 
i looked at that, but i was wondering for my project if it was possible just to use the regular tiny webdb
i hav reconsidered about using a fusion table but do those share across multiple apps

-- 
please do not delete your question
the answers are not only for you, the answers are for everybody and without question answers do not help very much, do they? thank you


i hav reconsidered about using a fusion table but do those share across multiple apps

you can access the same fusiontable from within different apps as you like

--