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

Monday, June 22, 2015

What is the fact of using " Prerender " command / instruction by Google ? 



    Before discussing the " prerender " command, we must discuss that concept of " a cookie " .

   An HTTP cookie (also called web cookie, Internet cookie, browser cookie or simply cookie), is a small piece of data sent from a website and stored in a user's web browser while the user is browsing that website. Every time the user loads the website, the browser sends the cookie back to the server to notify the website of the user's previous activity. Cookies were designed to be a reliable mechanism for websites to remember stateful information (such as items in a shopping cart) or to record the user's browsing activity.

    So, how often prerender command has related to the cookie ?


    In Internet Browsing, the word " render " means the process of reading (HTML page ) contents and viewing it on the browser's page, but the word " Prerender " means the more earlier process of reading (HTML page) contents.

     The Prerender command is used by google when the user is expected to choose the next result of the available links in google's search page, that usually happen when the user is looking for such a company's website.

    Usually, when the browser visits a web page, it uses the cookie in order to store the page's shared information, and then it become fastely viewed by the user.

    Google insert Prerender instruction into code which indicates to the link of the first result which is choosen by the user in google search engine page, at which the browser visits that page secretly or in a hidden way before clicked,  then capture, store, and bring its information to the user when required underneath of that first link, in a more fast manner than usual.

    Such step, is considered as one of the main advantages in an instructed website done by a web developer.

Wednesday, January 28, 2015

Connected Paper, What does they mean ?

Connected paper innovation 


    it is a new-released innovation, for that producer "Ericsson", which is basically depends on that famous type of-papers, in addition to that technique of capacitive coupling.

    

    So, how does this technique introduce itself ?

Connected papers, enables us to view that intended information about a specific product or service using intelligence devices such as mobile phones, through one touch for both of that paper and your intelligence-viewing-device, user is identified,then, information can be transformed through your body using  capacitive coupling technique immediately, and finally, it will appear in a human-readable form again.

    Capacitive coupling technique, extensively, depends on transferring electrical signals through human's body using the same idea of fingers-touched devices principle, with a speed rate of 10 megabit per second.
    


Kindly, if you are interested, you are able to follow me on my youtube channel, press subscribe here, then you will be notified with all of my news.