2016년 12월 25일 일요일

Is it possible to use Google API and other SDKs / APIs with App Inventor?


I was wondering if there is any way to incorporate Google's APIs into an App Inventor project so we can do in-app purchases, advertising, and access other Google apps like Maps. I would also like to be able to use Amazon's Mobile App SDK. 

Is there anyway to access the code behind the blocks and / or write our own code (using our own preference like PHP, JScript,etc...)? 

--
App
for RESTful APIs: yes, see also several examples here https://puravidaapps.com/tutorials.php


Is there anyway to access the code behind the blocks and / or write our own code 

you could write your own extension...

more information about how to create an extension see here 

however that will be more advanced and will require some Java skills...

also you can use JavaScript in the webviewer component, for some examples see

file:///mnt/sdcard/AppInventor/assets/<NAME OF YOUR HTML FILE>.html
file:///android_asset/<NAME OF YOUR HTML FILE>.html
HTML file

<!doctype html>
<head>
 <meta name="author" content="puravidaapps.com">
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <title>Test</title>
</head>
<body>
 <script>
   document.write("The value from the app is<br />"
  + window.AppInventor.getWebViewString());  window.AppInventor.setWebViewString("hello from Javascript")  </script>
</body>
</html>

-- 
Thank you. I do have some limited Java and JScript (or was it JavaScript, it has been a few years) experience, so this is just what I was looking for. 

Blessings!

-- 


댓글 없음:

댓글 쓰기