Sunday, November 27, 2016


List View Sample in Android

 1. extend your Activity class from (ListActivit)
2.Under values folder,create an XML file and name it as list_data.xml
list_data.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string-array name="adobe_products">
        <item>Adobe After Effects</item>
        <item>Adobe Bridge</item>
        <item>Adobe Dreamweaver</item>
        <item>Adobe Edge</item>
        <item>Adobe Fireworks</item>
        <item>Adobe Flash</item>
        <item>Adobe Photoshop</item>
        <item>Adobe Premiere</item>
        <item>Adobe Reader</item>
        <item>Adobe Illustrator</item>
    </string-array>
</resources>
3.Create an XML file under res/layout folder and name it as list_item.xml

<?xml version="1.0" encoding="utf-8"?>
<!--  Single List Item Design -->
    android:id="@+id/label"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:padding="10dip"
        android:textSize="16dip"
        android:textStyle="bold" >
</TextView>
4. In your Activity class file paste these code : 

AndroidListViewActivity.java
package com.androidhive.androidlistview;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
public class AndroidListViewActivity extends ListActivity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
         
        // storing string resources into Array
        String[] adobe_products = getResources().getStringArray(R.array.adobe_products);
         
        // Binding resources Array to ListAdapter
        this.setListAdapter(new ArrayAdapter<String>(this, R.layout.list_item, R.id.label, adobe_products));
         
    }
}
5. Don't forget to add List View Tag element in your Activity layout.

Tuesday, November 8, 2016

Today, Tuesday, Nov 8, 2016, i have launched my first App release on google play, titled with :"Popular Movies"

You can easily fetch the best movies, rated via audience rating according to most popularity or top rated movies.

Review my first launch"Popular Movies"here  on google play

Wish you have the best of luck. let's have fun

Thanks

Monday, September 26, 2016

Google launches Android Version 7.0 "Nougat"

google is launching Nougat :)

Recently, google is interested in Power and Memory Saving, took the advantage of multi-windows UI, and direct reply notification.  Hooray, What's a marvelous.

Nougat is Android Version 7.0 from google which is being launched these days at september as mentioned on android developers website.

multi-Windows



Notification Enhancements



You can find more on the following link, just click me

Friday, May 27, 2016

Python has the most usage over a valued set of The Programming Languages in the World in 2013

    Most of Programmers compare between Python and a number of other programming languages like Smaltalk, Java, Javascript, Perl, Tcl, or the most popular programming language C++ because of  different factors represented in Python which is considered to be the most successful programming language in the last global rating.

    Java vs. Python

    Both of Java and  Python are considered to be the most advanced programming languages in the world. Python is considered to be more slowly than Java in the time measured for reading code lines by compilers, However, both of its speed average is considered to be low roughly.

    Programs written using Python is more less than those written using Java from 3 : 5 times, also Python debugging is more easier than Java and that is mostly encourages its reputation.


Perl vs. Python

     A lot of attributes between both of Python and Perl are common because they were produced  as to be derived from Unix Scripting. Perl assure application-oriented activities, deal with Folders and Files, show advantages of creation for directories, While Python still emphasizes on programming techniques like data framework style.

C++ vs. Python

     C++ is one of the most classic programming languages which most of beginners were used to learn it in order to understand the recently published programming languages as they are derived from it.
   
     Each advantage in C++ functionality is more developed in Java. So, as we mentioned above that Python written codes to implement a specific algorithm are considered to be more little than those written using Java from 3 : 5 times, and so, this indicates that Python written codes to implement the same algorithm are considered to be more little than those written using C++ from 5 : 10 times.

     That was to describe Python and talk in a little words about some differences between the latest and classical programming languages.


Kindly, if you are interested, you will be able to follow me on my youtube channel, press subscribe here, then you will be notified with my latest programming videos.

Also, if u would like to reach me on my different social programming networks, Click on :

Facebook Profile
Linked-In Profile

Stack Overflow


Git hub
YouTube