2017년 5월 28일 일요일

Web Server with App Inventor?


Is it possible to implement a web server using App Inventor?

--
Depending on exactly what you mean by Web Server and what you want to do with it, here is a search for   app inventor web server  

-- 
Not using AI2, but check these out ...

-- 

App can not be installed It is the message: Package Installer terminated


I hope you can help me because I despair slowly ....
I made a little app ... have it installed more often on mobile phone, or via the AI ​​companion I could run it on the phone.
then I made only minor changes and today it no longer works ...
It comes from the installer the message: package installer has finished and then closes.
over the QR code I can use the app load but not install ....
have tried to create a new version of the app, keystorePass out deleted can kick it new keystorePass copied app on sd card or the internal memory, I can not install it.
have loaded another package installer, but the attacks anscheinened to the same service to, it was the same message.
have file manager loaded from there installed, same message ....
I can install other apps easily, others that I have made myself ... no problem but this one app will not ....
have my phone completely reset, brought no improvement, now what? 
what it could still lie? anyone have an idea? 
I could aia somewhere post if needed there?
muchos thank times forward wech .....

--
Is one of your minor changes changing the app icon?   This should be 48 x 48 pixels ideally, a much larger png file used as the icon will create issues.

-- 
Assuming you are okay with making your source code public, you can post the AIA file here. We can then try and confirm whether it is an issue with your program or a regression introduced by App Inventor.

-- 
Thanks alot steve and evan,
you saved may day.....
the icon size was the problem.... i thought i had changed it allready, but i used the wrong icon.... my bad....
2000*2000 pixels is way too much as an icon lol......
thanks alot folks, great support!

-- 
how can i close this post?
should i close it, or is a admin doing this?

-- 
glad to help Mike.   You flagged the post as answered (best answer) so now other App Inventor users that have a similar issue can benefit from the discussion and solution. Thank you.    We do not delete posts or threads because the Forum is a learning tool.   There is nothing to close. You had a good question where the problem is frequently the App icon.  There are several other possibilities that can elicit the Packet installer error.  A too large icon is the most common for the behavior you related  The thread will close itself to further comments in about a week.  

-- 

MIT App Inventor 2: May I / How to place alarms in the Android notification area?


With MIT Inventor 2, may I create a Notification Area Notification caused by an Alarm, which is placed in the notification area of an Android smartphone? So that I may create a silent alarm, as standard with Android apps? And if so, how to do it?
See Requirement #5 in this document ( describing an Android programmming task, which is not intended to be implemented with a code generator, of course ) My research:
1. With the discontinued MIT Inventor 1, it was obviously possible to create notifications, which can be viewed by pulling down the status bar. See "AlertMe: Texting in the background, when app is not running". http://appinventor.mit.edu/explore/content/alertme.html I didn´t find a corresponding tutorial for MIT Inventor 2...
2. With MIT Inventor 2, you may create Notifications, which are displayed immediately by modale windows, or which are pushed to Android logfiles, invisible to ordinary Android smartphone users. I didn´t find any option to create a "silent alarm" visible just in the notification area. Am I right?!
So is this maybe a "lost feature" of version1, not available with version2, so one of the very-raw drawbacks?
As there are now frameworks based on MIT Inventor like Punya and Ai2LiveComplete, does any of it cover this "silent messaging"?
--
Currently there the following alternatives:
1. The Texting component can display a notification also in App Inventor 2, see also the documentation. This feature however is available only in the United States.
2. The Punya Framework offers a Google Cloud Messaging component, see also here. See also the Overview: Different App Inventor distributions.
If you use another server, you always have to think about
a) is it a reliable service?
b) will it be updated (bug fixes and new features)?
because once you create a project using another server, which uses other blocks, you will not be able to import your project back into MIT App Inventor anymore!
3. I also can offer a simple Notification Extension to send a notification. As you know, App Inventor apps have some restrictions. Which means for the Notification extension: the app must be still running (at least in the background) to be able to send a notification after n seconds.
com.puravidaapps.TaifunNotification.aix
notification.aia
The App Inventor Extensions are currently in testing. See the Announcing App Inventor Extension Components for more information about how to use an App Inventor Extension.
--

notification bar


hello guys :) my name is diego and i'm from Chile ... i'm creating a radio streaming app and i almost finish it but i want to add some notification like this ->  http://prntscr.com/2xjo6f (click it to watch the image) 

and when user click it change to my app . Also if it's possible i wanna add some label and display into it the song name. can anyone help me with that? i'll leave my source code if anyone can help me.

thanks a lot guys and sorry about my english (i do the best i can)


--
I was just wondering if you could be more specific as to when you're trying to notify a user?  I believe that AppInventor currently only supports notifications on receiving text messages as seen in this example:  http://appinventor.mit.edu/explore/content/alertme.html .  As far as updating a label displaying the name of the song, I was wondering what components you're using (I assume the Player component) and how you are using them (what kind of web resources do you use for your radio app)?  You should simply be able to use "set Label.Text to" -> "Player.Source" and that should give you the path to the file you're playing.  If you want just the song, you might need to use the "split at" text block and split at "/".  The last item from this will be the name of the file you're playing.  

--
I'll try to be more specific :)

1.- I was just wondering if you could be more specific as to when you're trying to notify a user?

Answer : when someone press the play button on my app it will run and the user can listen the music , then , if he press the "menú" button or the "red call button" the music still listening but i wanna create a message on the notification bar (i think that's the name) , so if he drop down that bar the user can click the message and be back on the app.

2.- As far as updating a label displaying the name of the song, I was wondering what components you're using (I assume the Player component) and how you are using them (what kind of web resources do you use for your radio app)?

Answer : i'm using the player component and it's bassically the same as this video : https://www.youtube.com/watch?v=6NPedAmyiFk , also i'm using my own radio streaming ip : http://prntscr.com/2xkqhl but i don't really know how can i link the song name to a label :/ i'll try to use "set Label.Text to" -> "Player.Source"

--
 i want to add some notification like this ->  http://prntscr.com/2xjo6f (click it to watch the image) and when user click it change to my app .

Sorry not currently possible with App Inventor.

Also if it's possible i wanna add some label and display into it the song name. can anyone help me with that? i'll leave my source code if anyone can help me.

To display the song name you will first need to get that information into the app from somewhere. Where does the song names that you are playing exist? On a website?

Background music


Could someone give me a hand with background music?
Screen 1 - music loads automaticaly; by pressing a button next screen opens;
Screen 2 - no music, but when I go back to screen 1 music still plays.
How/what should I do, so the music will remain in screen 2, 3 and so on? And last screen without any music.

--
Perhaps here:   https://groups.google.com/forum/#!topic/programming-with-app-inventor/KArWTbYRGlU


I really do not know the answer.

If either of these help, let us know.      Perhaps someone else will have a better idea.

--
I have confirmed your behavoir, music stops when you open another screen. 

This is very strange. In AI Classic as long as Screen1 was kept open in the background, it kept playing music. I did it for some background music for a game I made.

I will try to get more information.

--
The behavior was changed in AI2.  Basically when another activity kicks in,  then the music will pause.  This was introduced to stop playing when for example there is incoming phone call.
--