2017년 5월 24일 수요일

clap to find phone


I want to develop and app using MIT that can record a sound, check if the sound is the same as a saved sound the trigger an action. I have really suffered for this please some help me

--
Something like this might work:   Is there a something that can detect audio for the app inventor.  

however you have a huge problem; App Inventor apps currently cannot work as a service (run in the background) so when the phone is 'awake' this technique might work, however when the phone goes to sleep, it will no longer respond.

However, you cannot " record a sound, check if the sound is the same as a saved sound the trigger an action".. unless you develop a very sophisticated extension.

Here are some ways you might be able to do this with Android Studio    https://www.google.com/search?q=clap+java+code&oq=clap+java+code&aqs=chrome..69i57.3087j0j7&sourceid=chrome&ie=UTF-8  by building an extension or coding your Project using Android Studio.

-- 

Is there a something that can detect audio for the app inventor.


So what I am trying to build is something like a time counter. 

I wish to trigger the clock by a sound. The moment a sound is made the app starts the stopwatch and logs the timing of the next two sounds.

In order to do that I need a sensor for audio/sound which I can't find in the AI. Can anyone help me a hack for the same?

--
The bigger problem you have is that App Inventor cannot run in the background, so unless you want to have your app active all the time, this is a showstopper. And, indeed I think there is no component that will pick up sound by itself.

--
The moment a sound is made the app starts the stopwatch and logs the timing of the next two sounds.
you might be able to do this using the Sound Analysis extension from Mouhamadou
Multimedia component that analyzes the pitch of a sound through the microphone and returns it. It can be used as an input to different situations, for instance to control some components with a specific sound whistle(pitch > 500Hz) or clap(pitch > 2000Hz).        

--

PC connecting to Android on same LAN, but not through WiFi


After reading through the connection guides and topics in this group, I realize there are three connection options:
1. To a real android, through WiFi - which is the recommended method.
2. To the emulator running on the same PC as the browser.
3. To a real android, through a USB cable.

The lab which I am planning to do a programming session in has both wired and wireless connections, creating one LAN. The desktop PCs are connected with a wire, while any android devices would be connected through WiFi, but they would still be on the same LAN - for example, a desktop computer might have the IP address 10.0.0.4, and an android might be on 10.0.0.5. Is this configuration suitable for connecting the browser and an android, even though the PC is not on WiFi?
Following the illustrations on this page: How Does my Android Device Connect Over Wifi?
makes me believe it is possible indeed, but it doesn't say so explicitly anywhere.

--
That's how I connect to the companion. As long as you are in the same lan, it doesn't matter if it's wired or wireless.

--
Thank you, I was looking for confirmation :)

-- 

If then


I would just like to inform MIT that when you write "if then" in App Inventor 2, the block is non-existent in the options. Indeed, there is only "if" and "if then else".

--

Keystore, passwords and aliases


I'm trying to put ads on my app but the keystore and password situation is hindering me. I don't recall setting up a keystore in app inventor. Maybe I'm wrong. I'm stuck. Please help.

--
You don't really need to set it up. 
On 1st use of AI, it automatically gets generated for you with some default credentials.
Did you change it using 3rd party tools?

-- 
As Hossein said, your keystore is created the first time you package an App with MIT App Inventor. If you want to re-sign your app after you download it, you can download your personal keystore from App Inventor. Look in the "Projects" menu. The keystore is password protected, but the password is set to "appinventor"

--