Skip to main content

Posts

Get ready for the Android Nougat and update your application

Multi-window   A new manifest attribute called  android:resizableActivity  is available for apps targeting N and beyond. If this attribute is set to true, your  activity can be launched in split-screen modes  on phones and tablets.  You can also specify your activity's minimum allowable dimensions, preventing users from making the activity window smaller than that size. Implementation: < activity android :name= “ActivityName”   android :configChanges= " orientation|screenSize| keyboard|keyboardHidden| screenLayout| smallestScreenSize" android :resizeableActivity= " true”> </activity> Direct reply notifications:  With Android Nougat, you can reply to your notifications directly from their spot in the tray. You won't have to open the app or install anything extra, either. Once the folks who built your app support the feature, it will just work. Don't worry though. When you need to see more or do more than just s...

Retrofit in Android

Type-safe HTTP client for Android and Java by Square, Inc. Retrofit is a REST Client for Android and Java by Square . This library is easy learn and has more features. This is beginner friendly compared to other Networking libraries. You can GET,POST,PUT,DELETE  ..etc using this library. You can also use picasso for image loading. 3 classes In Retrofit,we need to create 3 classes. POJO (Plain Old Java Object) or Model Class :– The json retrieved from the server is added to this class. Interface :- Now we need to create an interface for managing url calls like GET,POST..etc.This is the service class. RestAdapter Class :- This is RestClient Class. Gson is used in default for the retrofit.You can use setup your own converter Adding Retrofit Library to Project Gradle    : compile 'com.squareup.retrofit2:retrofit:2.0.2'      MAVEN <dependency> <groupId>com.squareup.retrofit2</groupId> ...

Next generation Android TV

Smart TV   platform developed by   Google. Running the Android   operating system, it will create an   interactive televise onexperience by overlaying a   10-foot user interface   on top of existing television programming. It was announced on June 25, 2014, at   Google I/O   2014 as a successor to Google's earlier attempt at smart TV,   Google TV. Android TV can be built into both TVs and standalone   set-top boxes. Users will have access to the   Google Play Store   to download Android apps, including   media streaming   services   Netflix   and   Hulu, as well as games.The platform emphasizes   voice search   to quickly find content or answer queries (such as which movies were nominated for an Academy Award   in a specific year.The TV interface is divided vertically into three sections: recommendations on top (which update based on viewing habits), media apps in the middle, an...

Implementing Facebook Login Using Android SDK

Facebook Login allows you to obtain a token to access Facebook's API on behalf of someone using your app. You can use this feature in place of building your own account system or to add Facebook services to your existing accounts. To properly handle Facebook Login using the Facebook for Android app, make the following changes in the  App Dashboard . Create a Facebook App URL to create FB App: https://developers.facebook.com/?advanced_app_create=true Once created, note down the app ID shown at the top of the dashboard page. You'll need to add this to your project files. Next, you will also need to associate your Android keys hashes with the app. The key hash is used by Facebook as a security check for authenticity. By default, the app's package is signed with a machine specific debug key. When publishing the app it is typically signed with a different, release key. Therefore, you want to make sure you have the hashes of all the related keys set on...