Tag Archives: android

New App Inventor 2 “Companion” app released today; new features

Changes between nb143i and nb144 (June 30, 2015)

  • When a component is renamed in the designer, any related collapsed blocks will be properly renamed now.
  • Screen1 now has properties that permit you to hide both the top “Status” and “Title” Bars
  • The selected item in a ListView is now highlighted
  • Activity Starter component now has a “Activity Canceled” event
  • Fix to the Player Component so it doesn’t spontaneously start playing after a phone call or other interruption
  • Bugfix to Image Sprite rotation which had left screen artifacts on some devices
  • Add Math blocks to convert between decimal, Hexidecimal and Binary representation
  • Clock Component now permits you to format a date or time arbitrarily. You provide a “format string”
  • You can now have both a Background Image and a Background Color and the “right thing” happens
  • TextToSpeech: The designer now uses dropdown menus to select Country and Language. Added blocks to fetch the supports countries and languages on a given device

Source: Release Notes for MIT App Inventor 2 (Beta)

App Inventor 2 Tutorial Volume 2 is now available at Amazon

//ws-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=US&source=ss&ref=ss_til&ad_type=product_link&tracking_id=commonsensevi-20&marketplace=amazon&region=US&placement=B010ITAXYU&asins=B010ITAXYU&linkId=FBOQVBR2G3ERYS66&show_border=true&link_opens_in_new_window=true

Volume 2 of the App Inventor 2 Tutorial is now available at Amazon as an e-book via this link: App Inventor 2 Tutorial Volume 2: Step-by-step: Advanced features including TinyDB.  The e-book will also be available from Google Play shortly.

Description

MIT App Inventor 2 is a fast and simple way to create custom Android apps for smart phones or tablets. Volume 2 in the series introduces debugging methods, explains additional controls not covered in Volume 1, introduces “agile” methods for developing a real world app, and provides sample code for using the TinyDB database.

The App Inventor 2 Tutorial series is targeted at adult learners (high school and up). App Inventor 2 provides a simplified “drag and drop” interface to layout your app’s screen design. Then implement the app’s behavior with “drag and drop” programming blocks to quickly assemble a program in a graphical interface.

Volume 1 of this series covered the basics of the App Inventor user interface Designer and the Blocks programming editor, plus basic “blocks” programming concepts and tools for arithmetic, text processing, event handling, lists and other features. Volume 2 builds upon Volume 1 to provide tips on debugging programs when the apps work incorrectly, how to use hidden editing features, and how to install your own apps on to your phone or tablet for general use. Code samples are provided for using the Notifier component for general use or for debugging, for user interface control tricks such as buttons that change color continuously or implementing the missing “radio buttons” component, using ListPicker and Spinner for list selections, and using the WebViewer to display web pages in your app. The book includes a large section on designing and building a sample real world application and finishes with a chapter on using the TinyDB database.

For readers of the blog, Chapters 4–8 are based on the tutorial already presented here. Chapter 2 and Chapter 9 on TinyDB are all new material.

Chapters

  • Introduction
  • Chapter 1 – App Inventor Tips
  • Chapter 2 – Debugging App Inventor Programs
  • Chapter 3 – User Interface Control Tricks
  • Chapter 4 – Designing and Building a Real World Application
  • Chapter 5 – Tip Calculator Version 2
  • Chapter 6 – Tip Calculator Version 3
  • Chapter 7 – Tip Calculator Version 4
  • Chapter 8 – Tip Calculator Version 5
  • Chapter 9 – Using the TinyDB database

(Volume 3 is now available – App Inventor 2 Databases and Files adds substantially more information on TinyDB, plus TinyWebDB and Fusion Tables and includes the full introduction to TinyDB).

AppInventor_Volume2Cover

App Inventor 2 Tutorial volume 2 will be available in a few days

Volume 2 of the App Inventor 2 Tutorial will be available at Amazon and Google Play/Google books within a few days. Just waiting for the new title to clear through their review process.

AppInventor_Volume2Cover

MIT App Inventor usage triples during 2014-2015 school year

Source: MIT App Inventor usage for 2014-2015 Academic Year

As they point out, the cyclical ups and downs in usage suggest App Inventor is primarily used by students – with drop off in usage during school vacation periods.

That suggests an opportunity to expand usage of MIT App Inventor – by insuring that AI2 appeals to a wide audience of potential app developers and not just educational programs!

Subscribe to AppInventor.Pevest.com by email

I have added a new “Subscribe by email” feature to provide another way to be alerted to new posts on this web site.

Look for “SUBSCRIBE TO POSTS BY EMAIL” in the right column of this page, then enter your name and email address and click on Subscribe.

Check your email for a confirmation message and click on the link in the email to confirm your subscription. If you do not receive a confirmation email within a few minutes, check your Spam mail folder – and then check to make sure you entered your email address correctly!

I have only tested this feature with my own email address but hopefully it will work well for anyone who wishes to receive post alerts via email!

Facebook is a simple way to be alerted to updates, but you may also wish to use Twitter, our RSS newsfeed, or the new email subscription – or all of them! My intent is to make it simple for you to receive new posts in what ever way works best for you.

App Inventor Classic (version 1) to Shut Down on July 15 

Most users are already using AI 2 and are unaffected by this change. But if you are still using AI Classic (version 1), then this message is very important – please click through the link to read the full story!

May 24, 2015 — MIT App Inventor Classic will shut down on July 15, 2015. After July 15, 2015, you will not be able to access or edit your existing AI Classic projects. It will be impossible to create new AI Classic projects.This shutdown applies only to AI Classic (AI1). App Inventor 2 (AI2) will not be affected.

MIT will not automatically convert your AI1 projects to AI2 projects. But MIT will provide a conversion tool that will help you convert the AI projects that are important to you into AI2 projects. We expect to release this converter in about 2 weeks (i.e., around June 8).

Source: App Inventor Classic to Shut Down on July 15 | Explore MIT App Inventor

How do you know which version you are using?
Login to App Inventor and create or open a project. If the URL address in your browser begins with
http://ai2.appinventor.mit.edu/

then you are using Version 2.

Google announces unlimited cloud photos and video storage

Source: Official Google Blog: Picture this: A fresh approach to Photos

Limitations: Maximum full resolution images to 16 MP, and up to 1080p video.

Google Play Music also provides for storage of up to 50,000 music selections. Info on transferring your iTunes music to Google Play Music, here.

Can you make a video player in App Inventor? Not really, unfortunately.

A question from a reader: Can we make a video player in App Inventor?

The short answer is, unfortunately, not really.

In the App Inventor Designer, in the Palette’s Media section, you can drag a Video Player into the viewer. But this Video Player only plays video files (WMV, MP4) that are stored inside your app (not on the web) and these files are limited to just 1 megabyte in size. Therefore, the Video Player feature in App Inventor is so limited as to not be very useful for most applications.

 

Android battery life – and how to extend your battery power

When I had a Nexus 4 running Android 4.3 and earlier, I used an app called Juice Defender to extend the time between battery charging. I often went 2 days without recharging the battery!

But Juice Defender has not been updated since 2012 and due to Android changes, Juice Defender no longer works well.

Then, Android 5 resulted in worse battery life for many of us! My phone was discharging half the battery in 8 hours, even when not being used.

The only way to extend battery power is to reduce power demand. That means turning off hardware features that may not need to be used all the time (WiFi, Bluetooth, GPS location), dimming the screen or turning it off and so on. Another way to is reduce the frequency that apps wake up to “sync” or go online.

Good “Battery Saver” apps work by intelligently switching features off and reducing their frequency of use. Some battery saver apps are good and some are awful; in fact, some have displayed false battery status to pretend they are saving power! I have tried numerous Battery Savers but found only one that works effectively on the Nexus 5: Avast Battery Manager (see link below).

With that in mind, here are ideas that may help your device reduce its power demand and extend is battery life between charges:

  • Install Avast Battery Manager from Google Play. This works well for me using its “Automatic mode” settings. The app also provides information about which apps are consuming power on your phone. You may choose to stop, disable or uninstall apps that consume excess power.
  • Google Chrome and GMail apps are power hogs relative to other apps. It seems that if you visit a page, like a financial page, that periodically “auto refreshes” (e.g. for stock market data), this auto refresh may continue to occur periodically when you are not using the phone (this is my hypothesis – its not yet verified.) Avoid leaving Chrome on such pages, if you can. In GMail, go to the GMail menu (the one where you can select Inbox, Sent, Outbox, etc), scroll all the way to the bottom and choose Settings. For your GMail account, uncheck Sync GMail – and then manually resync GMail by swiping down from the top when you are using GMail. For POP3/IMAP email accounts (if any), set the sync time to 60 minutes (the longest option available) – or go to Settings | Accounts, select the email account, and turn off sync completely.
  • Many apps start up when your device is powered up and drain a small amount of power running in the background. Even if you never use the apps. Uninstall apps that you no longer use or you do not need.
  • Use Wi-Fi, if available, instead of cellular data. Generally, good Wi-Fi data links are much faster than cellular data, which means data can be uploaded or downloaded in less time. That means the transmitter (which uses more power) is active for less time, helping to reduce power. Further, due to some issues in how the cellular data protocol works, the cellular transmitter remains in an elevated power state for several seconds after being active for a data transmission. Related: While out and about and using only cellular data, turn off WiFi. You may also consider disabling Bluetooth and Location services.
  • If battery life seems to be getting worse, go to Settings | Storage, and scroll down to Cached data. Select “Cached data” and then follow the pop up menu to clear the cached memory. This is not something you do every day – but when the battery has gotten bad, taking this step every once in a while has significantly improved the battery power.
  • If you are using Avast, you can likely skip this step: Go to Settings | Battery and click on the 3 vertical buttons at upper right. Then click on Battery Saver and set this to “On”. Normally, Android’s own battery saver only activates when the battery is very low, but you can activate it manually. This built in Battery Saver reduces app data synchronization with the network, disables location services and does a few other things to reduce power. The Battery Saver is automatically turned off and remains off, once you plug in to a charger.
  • Aggressive: Set your device to Airplane mode. This turns off all built in radios and suspends background apps from doing data communications. Again, if using Avast, you are already getting good power management and this step adds only a little to the battery life. And while its activated, you cannot receive voice or text messages either!

Hopefully these suggestions are helpful to you!

“Why Learning to Code is So Damn Hard”

Click through for the full post at Viking Code School – as they say, the early part can be easy, then things get tougher, followed by a challenging learning period – until confidence and skills flourish.

What every beginner absolutely needs to know about the journey ahead

Source: Why Learning to Code is So Damn Hard

MIT App Inventor makes many things easier – but eventually one must learn to think like a software developer and become familiar with concepts like data structures, algorithms, design patterns, and software engineering design and project management.