Home » Android » Android Core (page 30)

Android Core

Android – Load WebView with ProgressBar

Problem: How to load WebView with ProgressBar? Description: Previously, i have published an article for Android – WebViewClient example where we have discussed about how to load URL inside the application instead of opening a native browser. Now, just consider the case where we want to include progress bar to show loading process. At the same time we can either ...

Read More »

Android – Read file from Assets

Description: First of all, let me give you a link: AssetManager, through this class we can easily access any files lying inside the Assets directory of android application. (or any sub-folders inside the Assets directory). Now, we can have an object of AssetManager class by using getAssets() method: AssetManager assetManager = getAssets(); And the rest of the procedure i have ...

Read More »

Learning Android: Freezing the UI with a BroadcastReceiver

As I mentioned in a previous post I recently wrote some code in my Android app to inform a BroadcastReceiver whenever a service processed a tweet with a link in it but in implementing this I managed to freeze the UI every time that happened. I made the stupid (in hindsight) mistake of not realising that I shouldn’t be doing ...

Read More »

Learning Android: Getting a service to communicate with an activity

In the app I’m working on I created a service which runs in the background away from the main UI thread consuming the Twitter streaming API using twitter4j. It looks like this: public class TweetService extends IntentService { String consumerKey = "TwitterConsumerKey"; String consumerSecret = "TwitterConsumerSecret"; public TweetService() { super("Tweet Service"); } @Override protected void onHandleIntent(Intent intent) { AccessToken accessToken ...

Read More »

Android Drag and Drop Tutorial

This post is going to cover implementing Drag and Drop in an Android application. (I am currently using version 4.0 of the sdk, but I originally wrote the code in this series with the 3.1 version.) Why Use Drag and Drop When I started working on my Android application, which involves moving a chess piece around a chess board, I ...

Read More »

Android Tutorial: Gestures in your app

Gestures in mobile apps are pretty common place these days. Almost anyone with smart phone experience knows that pinching will usually zoom in on an image. Now, using Gestures in Android is a snap. OnTouch All gestures are really handled with one event on an Activity. OnTouch is called anytime a View is touched on the screen. It provides all ...

Read More »

Android: Gallery View without Pictures

Android’s Gallery View is one of the first widgets Android created. It’s so old now that some people even find it hard to find. The Gallery view provides a list of scrollable objects much like the standard ListView. The one main benefit of using the Gallery View is its snap-to-position feature. When the user stops scrolling, the images that end ...

Read More »

Android Interview Questions and Answers

Last updated Jan. 4, 2019 Our Android interview questions and answers collection is all about different types of questions that can be used in an interview, in order for the employer to test your skills and knowledge. In the following sections we will discuss about Android OS regarding its functionality, Command line tools, Performance and other topics. Here are some ...

Read More »

Android App Engine Integration

Google App Engine is great for those of you in search of a complete, scalable and affordable hosting solution. Especially if you start a project and you don’t yet know exactly how successful it’ll be (which mostly you never know), how much potential users you’ll have and so on, then App Engine is great. It allows you to start with a ...

Read More »