Archive for the ‘Android’ Category

26
Mar

ADB stands for the android debugging bridge and is used for testing and debugging purposes by developers. However, we like to get more out of our devices, and its a great way to fix things. Knowing adb can mean the difference between a paperweight and a working phone.

To start with, you need JDK from Sun/Oracle and Android SDK from Google. Here let me explain some ADB commands,

1. To install an application on your device (sideloading). Unlike installing from the SD card, it does not require unknown sources (settings/development/unknown sources) to be enabled. This assumes that you are working from the directory where the file is located.
This will install the application to /data/app. It will also show sometimes useful errors if install fails.

adb install packagename

2. adb shell which logs into the phone.

adb shell

 

3. If we end up with a $, we will want admin rights, in many cases. This is not one of them, I don’t beleive.
To get admin rights, you want to type:


su

 

4. Look at your phone if this is the first time, it may prompt you to allow access. Else you will get permission denied. If you are not rooted, this will not work either. Now that we are logged in, we will type

pm uninstall packagename

 

5. To disable an application in your device

adb shell
su
pm disable appllicationname

 

6. To re-enable an application

adb shell
su
pm enable applicationname

 

7. To reboot your device

adb reboot

 

8. to reboot into recovery mode (CWM Recovery)

adb reboot recovery

 

9. To reboot into download mode

adb reboot download

 

10. To push a file to your device

adb push filename /pathtodirectoryonphone

eg.

adb push test.txt /sdcard/

 

11. Pushing files can be done to any directory, however, some are protected. For instance, /system is going to give you a permission denied or a read only filesystem error. To get around this, the easiest thing to do is push the file to your sdcard, then log into the shell:

adb shell
su
We will then mount the system as writable
mount -o rw,remount /dev/block/stl9 /system
cp /sdcard/test.txt /system/app/test.txt

cp stands for copy and it requires the path of the file and destination path. The name of the file is optional .When you copy it, you can rename it to whatever you like. For instance, if we wanted to backup a file

cp /sdcard/test.txt /sdcard/backuptest.txt

Now, lets assume you do not have busybox installed. You non rooted users will not. Then you must use a slightly more complicated command called dd
This is used like this:

dd if=/sdcard/test.txt of=/system/app/test.txt

12. To pull a file, Lets say you want to get a file from your phone, to modify, backup, etc.
To do this, we simply use adb in this manner:

adb pull /pathtofile/filename destinationname
eg:
adb pull /system/app/ADWLaucnher.apk ADWLauncher.apk

 

13. logcat allows us to log what the OS is doing, and possibly delve information for when things are not working
its quite simple Reading it is another.
To use logcat

adb shell
logcat

To logcat to a certain file do

adb shell
logcat > /sdcard/logcat.txt

, , ,

25
Mar

For overcoming this problem, paste this permission in the android manifest file.

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

24
Mar
File sdcard = Environment.getExternalStorageDirectory();

//Get the text file
File file = new File(sdcard,"file.txt");

//Read text from file
StringBuilder text = new StringBuilder();

try {
    BufferedReader br = new BufferedReader(new FileReader(file));
    String line;

    while ((line = br.readLine()) != null) {
        text.append(line);
        text.append('\n');
    }
}
catch (IOException e) {
    //You'll need to add proper error handling here
}

24
Mar

ANDROID 4.0 Ice Cream Sandwich, announced on October 19, 2011, brought Honeycomb features to smartphones and added new features including facial recognition unlock, network data usage monitoring and control, unified social networking contacts, photography enhancements, offline email searching, app folders, and information sharing using NFC. Android 4.0.3 Ice Cream Sandwich is the latest Android version that is available to phones. The source code of Android 4.0.1 was released on November 14, 2011.

 
Features:

Handset layouts
Storage
Connectivity
Messaging
Multiple language support
Web browser
Java support
Multi-touchMultitasking

21
Mar

The following script can make a phone call from your android app :

Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(Uri.parse(“tel:” + bundle.getString(“mobilePhone”)));
context.startActivity(intent);

Open manifest.xml and add following permission:
android.permission.CALL_PHONE

Intent intent =newIntent(Intent.ACTION_CALL);

intent.setData(Uri.parse("tel:"+ bundle.getString("mobilePhone")));
context.startActivity(intent);

19
Mar

The overwhelming demand for the iPhone 4S is understandable, given the much-talked-about Siri voice-controlled assistant, as well as the device’s faster dual-core processor and fantastic 8-megapixel camera. But today’s top Android phones—such as the Samsung Galaxy S II—offer plenty of features you won’t find on Apple’s blockbuster sequel. How do you know which side to choose?

Interface
I would never call the row-of-icons interface on the iPhone 4S fresh, but its ease of use means a lot, especially to first-time smartphone owners. And iOS 5 catches up to Android with its Notifications area, which is cleanly designed and dynamic (thanks to the addition of weather and stock info).

However, some Android phones let you do more from the notification area. On the Samsung Galaxy S II, for example, you can toggle the wireless radios on and off. And on HTC Sense phones, you can switch between apps from this menu as well as tweak several settings. The other edge Android has in the interface department is widgets, which let you access all sorts of info at a glance. Indeed, Google’s OS is so customizable that the user experience can vary drastically from one phone to the next.

Winner: iPhone 4S. While Android is more flexible, it can also be more confusing. Simplicity wins this round.

Multitasking
Just as with the iPhone 4, it’s easy to switch between apps on the iPhone 4S. You just double-press the home button and swipe to either side. To shut down apps, you press and hold the screen and then tap the X next to an app’s icon. Because most apps are suspended when they’re not open, you don’t really need to worry about them zapping battery life.

Today on Android, you must long-press the home button, but you might only see a subset of all of your running apps—and you can’t close programs from this view. Android Ice Cream Sandwich will offer a better user experience, with a Recent Apps button that displays live thumbnails of your running apps. And you’ll be able to dismiss apps with a swipe.

Winner: iPhone 4S. But it looks like Android 4.0 will put Google’s phones ahead.

Screen Size and Quality
One of the chief complaints people have about the screen in the iPhone 4S is that it’s the same size as the original iPhone’s: 3.5 inches. But what many don’t realize is that this LCD’s resolution is higher than the vast majority of Android phones. The display is not only crisper but brighter than most of the Android competition.

On the other hand, bigger screens are just easier on the eyes, and they don’t force you to zoom in as much to read text. And although they’re not as bright, the Super AMOLED displays on phones such as the Galaxy S II and the Droid RAZR offer better contrast and more vibrant colors, making them great for watching movies. The upcoming Samsung Galaxy Nexus will up the ante on with the first HD display (1280 x 720 pixels).

Winner: Draw. The iPhone 4S has the superior display right now in terms of detail and brightness, but some shoppers just prefer a larger screen.

Keyboard/Typing
Amazingly, Apple’s multitouch keyboard remains second to none, despite the fact that in most cases you’re typing on a smaller display. Both in portrait mode and landscape mode, I can type quickly and accurately. I’ll certainly make more errors than when using a physical keyboard, but overall the iPhone 4S keyboard just works.

With Android phones, keyboards vary quite a bit from one phone maker to the next. Generally speaking, I’ve found HTC’s keyboards to be the best, with Android’s stock keyboard on the Samsung Galaxy S 4G being a close second. But Android has a few advantages. One is that you can download third-party keyboards, such as Swype, from the Android Market. Second, only Android phones come with physical keyboards, though they seem to be a dying breed.

Winner: Draw. The iPhone 4S keyboard is great for its size, but some prefer a bigger screen and more customization options.

Web and Data Speeds
The iPhone 4S may have a fancy new dual-antenna system and the ability to reach 14.4 Mbps (theoretically) on AT&T, but it gets blown away by 4G Android phones. For example, the AT&T iPhone 4S delivered speeds as high as 5.3 Mbps but averaged 2.2 Mbps. Both the T-Mobile Galaxy SII (12.6 Mbps) and the Motorola Droid Bionic (11.6 Mbps) are faster.

In terms of loading web pages, we’ve seen a huge real-world difference as well. The iPhone 4S takes about 10 seconds to load many mobile sites (regardless of the network) versus about half that for true 4G phones. Everything on an iPhone 4S that involves data will require more patience than on an 4G Android phone, whether it’s streaming YouTube videos or updating your Facebook news feed. The only caveat is that 4G radios (especially LTE) can drain your battery in a hurry.

Winner: Android. 4G speeds make a big difference in everyday use.

Social Networking
Apple is making a big deal about Twitter integration with iOS 5, and it’s certainly welcome. You can share photos, websites, and more with just a couple of taps. However, Android goes deeper by including Facebook, as well as pretty much any other service that uses Android’s APIs.

For example, you don’t have to use Twitter on Android; you can use Tweetdeck instead. Android also works with Evernote, Flickr, GroupMe, LinkedIn—you name it. We just wish the Sharing option wasn’t two clicks away from the browser page.

Winner: Android. The iPhone 4S makes it easy to share stuff on Twitter, but you need to use dedicated apps for everything else.

Camera
Apple has raised the bar for photo quality—both in terms of speed and low-light performance—with the iPhone 4S, thanks to new optics and an improved backside illuminated sensor. It also captures sharp and smooth 1080p video. Android phones such as the Galaxy S II are only a step behind in terms of speed, though, and they take equally good photos outdoors.

While the iPhone 4S has an HDR feature, there’s not much else you can do when taking photos. An advanced Android phone such as the Amaze 4G has a panorama mode, HDR, burst shot mode, and more. And although the iPhone 4S has some editing features, the best Android phones go further, letting you add all sorts of effects without using a separate app.

Winner: Draw. The iPhone 4S has the best camera we’ve used yet, but Android phones give you more control of your images—before and after the shot.

Apps
After trailing iOS for years, Android is finally catching up to Apple in terms of the sheer number of apps available in their respective stores. Apple has about 360,000 iPhone apps, compared to approximately 320,000 for Android (according to research firm Research2Guidance). You’ll also find that both app stores stock a lot of the same stuff, from Angry Birds and Words with Friends to Kindle and Pandora.

But if you dig deeper, you’ll find that the iPhone 4S has a better selection of high-quality games with more impessive graphics, such as Infinity Blade and Shadowgun. You’ll also find that apps either come to the iPhone first (such as Netflix) or exclusively (such as Instagram) and just look more polished (Facebook).

Winner: iPhone 4S. The iPhone has always been known for its apps, and at least for now it still has a quality and slight quantity edge.

Secret Weapons
Only the iPhone 4S has Siri, a fantastic voice-controlled assistant that can help you with everything from scheduling appointments to sending messages. Other advantages unique to the iPhone 4S include iTunesGoogle only offers a subset of Apple’s content. And then there’s iCloud, which does a better job than Google of keeping all of your content in sync across multiple devices. Last but not least is the iPhone’s vast number of available accessories. Having a single standard connector makes things a lot easier on makers of add-ons.

Android has plenty of unique strengths as well. In addition to offering 4G speeds, only Android has free GPS navigation built in. And only Android phones support NFC, which enables mobile payments and will gain even more power with Ice Cream Sandwich. With the beam feature you’ll be able to share all sorts of info with a tap.

Winner: iPhone 4S. Siri + more content + more accessories give Apple the win in this round.

Bottom Line
Android phones won five points, but the iPhone 4S took home seven — making this head to head appear to be a decisive victory for the iPhone 4S. But it really comes down to what you value most in a smartphone. If it’s ease of use and better apps you’re after—as well as smooth performance and a great camera—the iPhone 4S can’t be beat. Siri takes smartphones to the next level by serving your needs with real intelligence. As long as you can live with 3G speeds, you can’t go wrong with the iPhone 4S.

On the other hand, the fact that Android phones offer 4G should not be overlooked. It speeds up practically everything you do. Android also integrates with multiple social networks—instead of just Twitter—and you have a wider range of design choices. If you like the idea of customizing your interface to your heart’s content and want the option of a bigger screen, Android is the way to go.

 

Regards:http://www.foxnews.com/scitech/2011/10/26/iphone-4s-vs-android-phones-whats-better-for/

,

19
Mar

Best Open Source Android Applications which every Android developer must look into

1.Remote Droid

RemoteDroid is undoubtedly an android app which turns your phone into a wireless keyboard and mouse along with touchpad, using your own wireless network. You can learn lot of things like linking to a network, managing user finger motion etc from its source.

url: http://code.google.com/p/remotedroid/

2.TorProxy and Shadow

TorProxy is an implementation of Tor for Android mobiles. Along with Shadow, it enables you to surf internet site anonymously through your cell phone. You can study regarding tunnelling socket connections, managing cookies etc by reading it’s source code.

url: http://www.cl.cam.ac.uk/research/dtg/code/svn/android-tor/ and http://www.cl.cam.ac.uk/research/dtg/android/tor/

3.Android SMSPopup

It is an Android app that will intercepts incoming text messages and shows them in the pop-up window. Besides becoming a time saver, this app also shows us the best way to interface with the built-in application that handles SMS.

url: http://code.google.com/p/android-smspopup/

4.Standup Timer

Standup Timer is an Android application that behaves as a basic, stand-up meeting stopwatch. It can be used to ensure that your stand-up assembly completes on time, and provides each of the members the same share of time to state their progress. You can learn how to operate the timer features simply by reading through the source code. In addition this applications has clear distinction between view, model etc and has large amount of util procedures that we can reuse in our app.

url: http://github.com/jwood/standup-timer

5.Foursquare

It is a four square client for android. This app is basically divided into two components; Reading through the source code you can discover how to make

url: http://code.google.com/p/foursquared/

6.Pedometer

The pedometer app attempts to take the number of steps you take every day. However the count isn’t precise, you can learn different things such as interacting with accelerometer, doing voice updates, running background services etc by just studying its source code.

url: http://code.google.com/p/pedometer/

7.opensudoku-android

OpenSudoku is an easy open source sudoku game. You can learn the best way to show things in a grid in your view and also how to interact with a website by reading its source code.

url: http://code.google.com/p/opensudoku-android/

8.ConnectBot

ConnectBot is a Secure Shell client for the Android platform.

http://code.google.com/p/connectbot/

9.WordPress for Android

This android app is from the official WordPress development team. You can learn steps to make XMLRPC calls (as well as other cool things) by reading its source code.

url: http://android.svn.wordpress.org/trunk/

17
Mar

The Ultimate Digital Sketchbook

Autodesk SketchBook Pro is an app in android  for paint and drawing.

It enables you to transform your desktop computer, laptop, or tablet PC into the ultimate sketchbook. With professional-quality sketching capabilities and an intuitive interface, even new users can be productive within minutes.

SketchBook Pro software offers the sketching software capabilities and quality results expected by professionals:

  • Illustration
  • Entertainment
  • Graphic arts
  • Industrial design
  • Automotive
  • Manufacturing
  • Architecture

Features 

 

Autodesk SketchBook Pro drawing and painting software is your digital sketchpad. It is easy to use with fast, reactive drawing and productivity-enhancing tools that help you express your ideas freely and boost production. Can be used in any design process where pen and paper would traditionally be used.

A Natural Sketching Experience
SketchBook Pro is your virtual sketchbook. Designed specifically for pen-based interaction .The intuitive interface makes it easy to access a host of tools and features, including pencils, markers, brushes, colors, guides, layers, and blending effects.

Professional-Quality Tools
Familiar brush types and realistic and completely customizable pencils, pens, markers, and airbrushes allow you to quickly and easily produce graphics. The power of drawing straight lines, rectangles, circles, and ellipses with draw modes or snapping-to guides are at your fingertips. Use the newly added Type options to easily add annotations and descriptions.

Image Enhancements
The look of your images can be fine-tuned by adjusting the colors, contrast, canvas size, and crop. Full-featured layers, including preserve transparency and blend modes, help you color and create.

Any Creative Process
SketchBook Pro fits in virtually any creative workflow; load and view images and photographs for reference or mark up and annotate. SketchBook Pro lets you open and save images from a variety of image formats, including moving files directly in and out of Adobe Photoshop software.

,

17
Mar

Next-generation AI keyboard, now with unrivaled prediction and personalization. SwiftKey X Keyboard is the smartest keyboard on Android, using artificial intelligence to help predict your next word as you type.

v2.2.0.49 update:
- Better accuracy on alternative character selection
- Further Samsung email client improvements
- Improvements to Arabic language support
- Fixes some force close issues

- New feature:
- Halloween “pumpkin” theme
- Improvements:
- Language Preferences should react to the SD card being shared
- New keyboard layouts
- SwiftKey should run in fullscreen mode on Sony S2
- Bugs fixed:
- Many minor bugs fixed; reports filed on support.swiftkey.net

With personalized learning from your online profiles such as Facebook, Gmail and Twitter, and many other features that make typing a breeze, boost productivity on your Android phone today.

TOP FEATURES

World-leading language technology

SwiftKey X is based on the new version of TouchType’s advanced Fluency language inference engine, the world’s most accurate prediction and correction technology.

Cloud-based personalization

Personalize your SwiftKey typing experience with data from your Facebook, Twitter and Gmail, as well as your sent SMS messages. Our new cloud-based personalization makes for an unparalleled personal typing experience.

Typing styles to suit you

In SwiftKey X, there are fine-tuned typing styles to match the way you use your phone, in order to maximize efficiency and make typing messages a breeze. Choose precise if you’re prediction-led and like SwiftKey to complete your words for you. Choose rapid if you prefer to write your words out in full, but tend to make  errors. SwiftKey will tidy them up for you.

Personal input modeling

SwiftKey X dynamically adapts to mirror the way you interact with your tablet, using advanced machine learning to modify the properties of the keyboard surface. The result is predictions that are based not just on your language, but also the way you type.

Themes

SwiftKey X comes with four exciting, high quality HD themes: pumpkin, light, dark and neon.

16
Mar

Android users will be able to share  photos on Instagram.

Instagram is a free photo sharing app that lets users touch up and share photos with other followers on the app. Pictures can also be uploaded to social-networking sites like Twitter, Tumblr, and Facebook. Some describe Instagram as a visual version of Twitter and until now it was only available for iPhone, iPad, and iPod Touch.

Android phones provide a fundamentally different user experience than iPhones. For example, Android smartphones have either three or four permanent navigation buttons at the bottom of the screen, whereas the iPhone has a single home button, with all other navigation performed within various apps.

When Instagram first launched in 2010, some 25,000 users signed on and it continued to grow rapidly.  Much of this growth came with the launch of the iPhone 4S and Apple naming Instagram “App of the Year.”