Posts
Showing posts from 2016
How to make Android App With in 5 minutes! Without Programming knowledge
- Get link
- X
- Other Apps
Android Context Menu Example
- Get link
- X
- Other Apps
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMdGrNFbxVBWafXNqvXYhUZrKimH20G03-VqvYEgUkx6ld16DP90OVN-Z3edSEvY2cweMH9eYCsaHy5tTdfJv_qiSrbeVpfU1tLj1fhz681uRC5aNeOKsDPH0snm8Vt76eJdmOfwMpiu0d/s1600/context1.png)
Android context menu appears when user press long click on the element. It is also known as floating menu. It doesn't support item shortcuts and icons. Android Context Menu Example Let's see the simple example of context menu in android. activity_main.xml Drag one listview from the pallete, now the xml file will look like this: File: activity_main.xml < RelativeLayout xmlns:android = "http://schemas.android.com/apk/res/android" xmlns:tools = "http://schemas.android.com/tools" android:layout_width = "match_parent" android:layout_height = "match_parent" android:paddingBottom = "@dimen/activity_vertical_margin" android:paddingLeft = "@dimen/activity_horizontal_margin" android:paddingRight = "@dimen/activity_horizontal_margin" ...
Android JSON Parser Tutorial
- Get link
- X
- Other Apps
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiC_YmRmOUsMP8Wf61lCpcge9cY2aYI6sDBLC7k3kPIy1V3wlCGzWd-FwIL3kufcbvs2RIOALc1ZRnq4aGGSlb7buuAk6L4prpXeXh1E6szP41q0Dq3BlNAAcpgIO9qLvYmzUSGki9QErYe/s320/json1.jpg)
JSON (Javascript Object Notation) is a programming language . It is minimal, textual, and a subset of JavaScript. It is an alternative to XML. Android provides support to parse the JSON object and array. Advantage of JSON over XML 1) JSON is faster and easier than xml for AJAX applications. 2) Unlike XML, it is shorter and quicker to read and write. 3) It uses array. json object A JSON object contains key/value pairs like map. The keys are strings and the values are the JSON types. Keys and values are separated by comma. The { (curly brace) represents the json object. { "employee" : { "name" : "sachin" , "salary" : 56000 , "married" : ...