Posts

Showing posts with the label google

Creating my first Android app

So I decided to create and record my first Android app. Obviously I got into many stuck situations that I will detail below. SETUP WORKSPACE The best way to start is opening Android Tutorial page. It will basically tell you to set up the following requirements: - Install the SDK - Install Eclipse and ADT plugin - Install Java SDK ( JDK ) with the same CPU level as the SDK (32 bit or 64 bit) The next stage is running Android SDK and downloading and installing all the appropriate packages. This is a very important step and I advise doing it a few times by closing and reopening the application because it will often get more and more updates which are required in order to make apps compile correctly. Furthermore, I will recommend installing these right away: - Tools: Android SDK Tools, Android Platform Tools and Android Build Tools - Android 4.4 (API 19) with SDK Platform and ARM EABI v7a System Image - Extras: Android Support Library and Google USB Driver APP CONFI...

Google Maps | Creating a simple, fully customized map

Image
Problem: One of the most common things we need to do as developers is to create a Google Map for our client websites. Although this is pretty straight-forward, there are many customization properties available if we considering digging into them. Below are provided some of the most common map requirements while building Google Maps. Solution: *** Enabling the service *** In order to start using the Google Maps service, we need to open our Google Console and do two things: - Enable the Google Maps API v3 service in the "Services" tab. - Create a new browser key in the API Access tab.   Activate the Maps V3 API   Create a browser key   Don't add any hosts for now (later you should restrict the api key by setting *.yourdomain.com/* ) Your API Key is available now *** Find out the location *** The first thing we want to do is access https://maps.google.com/ and enter the location we want. Sadly enough, Google doesn't tell you th...

Samsung Galaxy Tab 2 Fixing Clipboard Bug

Problem: I have recently come up with a problem with Samsung tablets that is causing quite a fuzz . After a while using one of Samsung Android tablets, we start getting issues while opening applications or trying to write stuff using the keyboard. The problem seems to be related to an issue with the Samsung Clipboard API, while using the default keyboard. Error : " Agente Feedback do Market parou " (Portuguese) or " Unfortunately, Market Feedback agent has stopped " (English) Description : Unable to open some applications or write text using the keyboard Specs : Samsung Galaxy Tab 2 Model GT-P5110 Android 4.0.4 Kernel 3.0.8-846656-user Stacktrace : nulljava.lang.NullPointerException at android.content.ClipboardManager.setPrimaryClip(ClipboardManager.java:146) at android.content.ClipboardManager.setText(ClipboardManager.java:267) Solution There are various ways to fix this, but sadly none of them is an easy deal. Solution #1 - recommended by S...

Host public files and sites in Google Drive

Problem: Using the Google Drive SDK Client API , how to get a public URL of a file in order to present it on an existing website, directly (not "downloading" it)? Solution: Use the getId() method to retrieve the fieldId property. View mode: $image_embed_url = "https://drive.google.com/uc?export=view&id=" . $current_file->getId();#view url Download mode: $image_embed_url = "https://drive.google.com/uc?export=download&id=" . $current_file->getId();#download url Source: http://stackoverflow.com/questions/10311092/displaying-files-e-g-images-stored-in-google-drive-on-a-website/11855448#11855448 Alternate quick method for public single file sharing: http://www.gdriveurl.com/ Using webViewLink() (didn't work for me, returned empty) http://googleappsdeveloper.blogspot.ca/2012/11/announcing-google-drive-site-publishing.html

Google Maps stuck at loading

Problem: After adding the Google Maps API v3 to a website, the map page, in Firefox , displays a strange behavior. When the request comes from another page, most times, the map page keeps loading the Google Maps API ("retrieving data from maps.googleapis.com ") but it never actually ends. Follow-up scripts end up never being loaded. If we stop the page load and refresh it (F5 or CTRL+F5), the page loads correctly. Solution: There are lots of posts already with people trying to figure this out. Some are recomending changing the google script call to asynchronous: http://stackoverflow.com/questions/14233350/infinite-load-on-firefox-transferring-data-from-maps-googleapis-com https://developers.google.com/maps/documentation/javascript/tutorial#Loading_the_Maps_API However, for me, I just needed to move from $( document ). ready (function () {                     initializeMap(); ...

Android software upgrade on HTC Magic 32A

Problem: HTC Magic mobile phone has outdated firmware Marketplace apps issues under 1.5 version Latest update from HTC is 3.05.401.3 with still plain old 1.5 Solution: 3 Step Firmware Upgrade. 2 first steps required only the first time we do this on a new phone. For 32A Magic with 6.35.x radio. Expected results: Rooted (OFF) phone with latest boot and recovery images, CyanogenMod ROM 6 (CM6) and android 2.2.1 firmware with market browser access and far more apps compatible. 1) "root", or unblock firmware deployment with custom boot firmware by starting the phone with "back" + "power" buttons, we see the fastboot version page SAPPHIRE PVT 32A SHIP S-ON H --> needs to show "OFF" HBOOT-1.76.0089 (SAPP10000) --> needs to show "1.76.2007" CPLD-12 RADIO-6.35.08.29 --> needs to show "3.22.20.17" (step 2) Dec 8 2009, 17:38:48 a) install latest available package from http://www.htc.com/pt/help/htc-mag...