Mallem Mahesh

I am a Writer

Mallem Mahesh

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit .
Erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper.

  • hyderabad.
  • +91-8341762450
  • mallemmahesh@gmail.com
  • https://www.mindrock.in/
Me

My Professional Skills

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

Mobile apps development 80%
Android tv box app development 60%
HTML Development 90%
SQL DB 60%

Awesome features

Aliquam commodo arcu vel ante volutpat tempus. Praesent pulvinar velit at posuere mollis. Quisque libero sapien.

Animated elements

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed tempus cursus lectus vel pellentesque. Etiam tincidunt.

Responsive Design

Pellentesque ultricies ligula a libero porta, ut venenatis orci molestie. Vivamus vitae aliquet tellus, sed mollis libero.

Modern design

Duis ut ultricies nisi. Nulla risus odio, dictum vitae purus malesuada, cursus convallis justo. Sed a mi massa dolor.

Retina ready

Vivamus quis tempor purus, a eleifend purus. Ut sodales vel tellus vel vulputate. Fusce rhoncus semper magna.

Fast support

Suspendisse convallis sem eu ligula porta gravida. Suspendisse potenti. Lorem ipsum dolor sit amet, duis omis unde elit.

0
completed project
0
design award
0
facebook like
0
current projects
  • android studio tutorial for biggeners



    in  2012  Google announced Android Studio is official IDE for Develop android Application, it was developed by JetBrains, Android Studio we can use in Any popular operating systems like Windows, Linux, Apple ..etc
    Android Studio provided so many features to develop android apps to very fast and easy, Android studio works with griddle based build system,
    Android Studio Features, this environment supports all type of android application Development like Android Mobile, Tabs, watch and android smart tv
    Emulator :
     Android studio downloads with Emulator, it very useful for the test any type of device, we can run and check android application using this emulator, this emulator provides mobile, watch and tv etc type of supports.
    Instant Run:
    an instant run is most useful for pushing a quick change to the application, it helps to check updated code result without installing again
    it saves a lot of build time
    GitHub support: 
    we can configure Git in an android studio, this is very helpful for push and pull the latest code using a repository, and we can create a new repository from an android studio.
    Built-in support for Google Cloud Platform:
    it helps you, easy to integrate Google Cloud Messaging and App Engine etc.

    How to install :
  • Working With Android TV LeanBack Browsefragment


    Android TV Browsefragment: 

    We are Using  Leanback framework for android tv Application Development, in this Leanback framework browse fragment is Major concept to discussion so i am starting with browsefrgment
    When we are creating Application Most probably we use to display all modules and shortcuts display in Homepage to Building home page Browsefragment is Most useful. 
    In Android OS default launcher also using this browsefragment launch home screen,
    In this browfragment we have few deafult implementations like  Logo in Header, and Search, category list info etc.

    Lets goto hands-on Development : 
    in this session I am displaying default Browsefragement with array-object, next sessions we can learn more deep on Browse fragment. 


    Start a New Project with the name of  Browsefragement 
    -Open Android Stuido - > Start a new Android Studio Project- Give Application Name as SampleBrowseFrament -> select android tv and Finish




    Create An Activity with the name of MainActivity this activity is Launcher Activity.










    Create actvity with name MainActivity (github path : SampleBrowseFragment/app/src/main/java/mindrock/in/MainActivity.java)

    package mindrock.in;
    
    import android.app.Activity;
    import android.support.v7.app.AppCompatActivity;
    import android.os.Bundle;
    
    public class MainActivity extends Activity {
    
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
        }
    }
    

    The source code of Mainactivity  Layout:

    <?xml version="1.0" encoding="utf-8"?>
    <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:context=".MainActivity">
    
        <fragment
            android:id="@+id/root"
            android:name="mindrock.in.BrowseFragment"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            ></fragment>
    </android.support.constraint.ConstraintLayout>
    

    Then its time to change the manifest file  : use leanback Theam

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        package="mindrock.in">
        <!-- TV app need to declare touchscreen not required -->
        <uses-feature
            android:name="android.hardware.touchscreen"
            android:required="false" />
    
        <!--
         true:  your app runs on only TV
         false: your app runs on phone and TV -->
        <uses-feature
            android:name="android.software.leanback"
            android:required="true" />
    
    
        <application
            android:allowBackup="true"
            android:icon="@mipmap/ic_launcher"
            android:label="@string/app_name"
            android:supportsRtl="true"
            android:theme="@style/Theme.Leanback">
            <activity android:name=".MainActivity">
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
    
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
        </application>
    
    </manifest>
    

    and now Create java file for browsefragement :

    package mindrock.in;
    
    
    import android.graphics.Color;
    import android.os.Bundle;
    import android.support.v17.leanback.widget.ArrayObjectAdapter;
    import android.support.v17.leanback.widget.HeaderItem;
    import android.support.v17.leanback.widget.ListRow;
    import android.support.v17.leanback.widget.ListRowPresenter;
    import android.support.v17.leanback.widget.Presenter;
    import android.support.v17.leanback.widget.Visibility;
    import android.view.Gravity;
    import android.view.ViewGroup;
    import android.widget.TextView;
    
    public class BrowseFragment extends android.support.v17.leanback.app.BrowseFragment {
        private static final String TAG = BrowseFragment.class.getSimpleName();
    
        private ArrayObjectAdapter mArrayObjectAdapter;
        private static final int GRID_ITEM_WIDTH= 300;
        private static final int GRID_ITEM_HEIGHT= 200;
    
        @Override
        public void onActivityCreated(Bundle savedInstanceState) {
            super.onActivityCreated(savedInstanceState);
    
            setUpUI();
            loadRows();
        }
    
    
        private void setUpUI() {
            setTitle("Mind Rock");
    
            setHeadersState(HEADERS_ENABLED);
            setHeadersTransitionOnBackEnabled(true);
    
            setBrandColor(Color.RED);
    
            setSearchAffordanceColor(Color.BLUE);
    
        }
        private void loadRows() {
            mArrayObjectAdapter =new ArrayObjectAdapter(new ListRowPresenter());
    
            HeaderItem gridPresenterheader = new HeaderItem(0,"ONE");
            GridItemPresenter gridItemPresenter = new GridItemPresenter();
    
            ArrayObjectAdapter mRowAdapter=new ArrayObjectAdapter(gridItemPresenter);
            mRowAdapter.add(" ITEM ONE");
            mRowAdapter.add(" ITEM TWO");
            mRowAdapter.add(" ITEM THREE");
            mRowAdapter.add(" ITEM Four");
    
            HeaderItem gridPresenterheader2 = new HeaderItem(1,"TWO");
            //GridItemPresenter gridItemPresenter = new GridItemPresenter();
    
            ArrayObjectAdapter mRowAdapter2=new ArrayObjectAdapter(gridItemPresenter);
            mRowAdapter2.add(" ITEM ONE");
            mRowAdapter2.add(" ITEM TWO");
            mRowAdapter2.add(" ITEM THREE");
            mRowAdapter2.add(" ITEM Four");
    
            HeaderItem gridPresenterheader3 = new HeaderItem(1,"Three");
            //GridItemPresenter gridItemPresenter = new GridItemPresenter();
    
            ArrayObjectAdapter mRowAdapter3=new ArrayObjectAdapter(gridItemPresenter);
            mRowAdapter3.add(" ITEM ONE");
            mRowAdapter3.add(" ITEM TWO");
            mRowAdapter3.add(" ITEM THREE");
            mRowAdapter3.add(" ITEM Four");
    
            HeaderItem gridPresenterheader4 = new HeaderItem(2,"Four");
            //GridItemPresenter gridItemPresenter = new GridItemPresenter();
    
            ArrayObjectAdapter mRowAdapter4=new ArrayObjectAdapter(gridItemPresenter);
            mRowAdapter4.add(" ITEM ONE");
            mRowAdapter4.add(" ITEM TWO");
            mRowAdapter4.add(" ITEM THREE");
            mRowAdapter4.add(" ITEM Four");
    
    
            mArrayObjectAdapter.add(new ListRow(gridPresenterheader,mRowAdapter));
            mArrayObjectAdapter.add(new ListRow(gridPresenterheader2,mRowAdapter2));
            mArrayObjectAdapter.add(new ListRow(gridPresenterheader3,mRowAdapter3));
            mArrayObjectAdapter.add(new ListRow(gridPresenterheader4,mRowAdapter4));
    
    
            setAdapter(mArrayObjectAdapter);
    
    
    
        }
        private class GridItemPresenter extends Presenter {
            @Override
            public ViewHolder onCreateViewHolder(ViewGroup parent) {
                TextView view = new TextView(parent.getContext());
                view.setLayoutParams(new ViewGroup.LayoutParams(GRID_ITEM_WIDTH, GRID_ITEM_HEIGHT));
                view.setFocusable(true);
                view.setFocusableInTouchMode(true);
                view.setBackgroundColor(Color.GRAY);
                view.setTextColor(Color.WHITE);
                view.setGravity(Gravity.CENTER);
                return new ViewHolder(view);
            }
    
            @Override
            public void onBindViewHolder(ViewHolder viewHolder, Object item) {
                ((TextView) viewHolder.view).setText((String) item);
            }
    
            @Override
            public void onUnbindViewHolder(ViewHolder viewHolder) {
    
            }
        }
    
    }
    

     Create a java file with the name of Browsefragment, and extend leanback browsefragment.

    Browse fragment alredy have few pre implementations  like title and rows and search,

    full source code of project available in Github 






    GET A FREE QUOTE NOW

    Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

    Search This Blog

    Powered by Blogger.

    Pages

    android studio tutorial for biggeners

    in  2012  Google announced Android Studio is official IDE for Develop android Application, it was developed by JetBrains, Android Stud...

    ADDRESS

    4759, NY 10011 Abia Martin Drive, Huston

    EMAIL

    mallemmahesh@gmail.com

    TELEPHONE

    +91 8341762450

    MOBILE

    0177 7536213 44,
    017 775362 13