SlideShare a Scribd company logo
Answer:
1)Responsive design is the idea where all the developed pages are embedded with model,view
and controller in the same page of the design so that it is easy for the user to transfer the data
from model to view and view to model.This also reduces the burden on the server when the user
makes any request all the form elements will not reach the server in responsive design but makes
the specific action element to reach the server and gives the output to the user.
2)Application templates in android involves both the layouts and UI components which are used
to build the design pages of the front end of the page.The common layouts which are used are
Gird Layout,Flow Layout,Relative Layout and UI components such as
listview,gridview,spinner,togglebuttons,radiobuttons,progressbar etc are used in any of the front
end design of the android for application to develop.We use XML for the design of the front end
in design in the application.
Android Application :
Note : Deploy the below files in Eclipse Id or Android Studio and run
MainActivity.java
package com.example.listviewcustom;
import java.io.File;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
/*
String path="/storage/sdcard0/sample_images/";
File f=new File(path);
if(f.exists()){
String[] files=f.list();
ArrayAdapter adapter=new ArrayAdapter(getApplicationContext(),
android.R.layout.simple_spinner_dropdown_item,files );
*/
ListView lView=(ListView)findViewById(R.id.listView1);
lView.setAdapter(new MyAdapter(this));
/*
}else{
Toast.makeText(getApplicationContext(), "Path is not available ....",2000).show();
}
*/
}
public void reload(){
ListView lView=(ListView)findViewById(R.id.listView1);
lView.setAdapter(new MyAdapter(this));
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
}
MyAdapter.java
package com.example.listviewcustom;
import java.io.File;
import android.net.Uri;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView.FindListener;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
public class MyAdapter extends BaseAdapter{
//String path="/storage/sdcard0/sample_images/";
String path="/mnt/sdcard/sample_images/";
File f=new File(path);
String[] files=f.list();
MainActivity activity;
public MyAdapter(MainActivity mActivity){
this.activity=mActivity;
}
@Override
public int getCount() {
// TODO Auto-generated method stub
return files.length;
}
@Override
public Object getItem(int position) {
// TODO Auto-generated method stub
return position;
}
@Override
public long getItemId(int position) {
// TODO Auto-generated method stub
return position;
}
@Override
public View getView(int position, View v, ViewGroup arg2) {
LayoutInflater inflater=LayoutInflater.from(activity);
v=inflater.inflate(R.layout.individual_view, null);
ImageView iv=(ImageView)v.findViewById(R.id.imageView1);
TextView tv1=(TextView)v.findViewById(R.id.textView1);
TextView tv2=(TextView)v.findViewById(R.id.textView2);
ImageView iv2=(ImageView)v.findViewById(R.id.imageView2);
final File f=new File(path+files[position]);
iv.setImageURI(Uri.fromFile(f));
tv1.setText(files[position]);
tv2.setText(f.length()/1024 + "kb");
iv2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
f.delete();
activity.reload();
}
});
return v;
}
}
AndroidManifest.xml
activity_main.xml
individual_view.xml
Solution
Answer:
1)Responsive design is the idea where all the developed pages are embedded with model,view
and controller in the same page of the design so that it is easy for the user to transfer the data
from model to view and view to model.This also reduces the burden on the server when the user
makes any request all the form elements will not reach the server in responsive design but makes
the specific action element to reach the server and gives the output to the user.
2)Application templates in android involves both the layouts and UI components which are used
to build the design pages of the front end of the page.The common layouts which are used are
Gird Layout,Flow Layout,Relative Layout and UI components such as
listview,gridview,spinner,togglebuttons,radiobuttons,progressbar etc are used in any of the front
end design of the android for application to develop.We use XML for the design of the front end
in design in the application.
Android Application :
Note : Deploy the below files in Eclipse Id or Android Studio and run
MainActivity.java
package com.example.listviewcustom;
import java.io.File;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
/*
String path="/storage/sdcard0/sample_images/";
File f=new File(path);
if(f.exists()){
String[] files=f.list();
ArrayAdapter adapter=new ArrayAdapter(getApplicationContext(),
android.R.layout.simple_spinner_dropdown_item,files );
*/
ListView lView=(ListView)findViewById(R.id.listView1);
lView.setAdapter(new MyAdapter(this));
/*
}else{
Toast.makeText(getApplicationContext(), "Path is not available ....",2000).show();
}
*/
}
public void reload(){
ListView lView=(ListView)findViewById(R.id.listView1);
lView.setAdapter(new MyAdapter(this));
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
}
MyAdapter.java
package com.example.listviewcustom;
import java.io.File;
import android.net.Uri;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView.FindListener;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
public class MyAdapter extends BaseAdapter{
//String path="/storage/sdcard0/sample_images/";
String path="/mnt/sdcard/sample_images/";
File f=new File(path);
String[] files=f.list();
MainActivity activity;
public MyAdapter(MainActivity mActivity){
this.activity=mActivity;
}
@Override
public int getCount() {
// TODO Auto-generated method stub
return files.length;
}
@Override
public Object getItem(int position) {
// TODO Auto-generated method stub
return position;
}
@Override
public long getItemId(int position) {
// TODO Auto-generated method stub
return position;
}
@Override
public View getView(int position, View v, ViewGroup arg2) {
LayoutInflater inflater=LayoutInflater.from(activity);
v=inflater.inflate(R.layout.individual_view, null);
ImageView iv=(ImageView)v.findViewById(R.id.imageView1);
TextView tv1=(TextView)v.findViewById(R.id.textView1);
TextView tv2=(TextView)v.findViewById(R.id.textView2);
ImageView iv2=(ImageView)v.findViewById(R.id.imageView2);
final File f=new File(path+files[position]);
iv.setImageURI(Uri.fromFile(f));
tv1.setText(files[position]);
tv2.setText(f.length()/1024 + "kb");
iv2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
f.delete();
activity.reload();
}
});
return v;
}
}
AndroidManifest.xml
activity_main.xml
individual_view.xml

More Related Content

Similar to Answer1)Responsive design is the idea where all the developed pag.pdf

Android Workshop
Android WorkshopAndroid Workshop
Android Workshop
Junda Ong
 
Day 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesDay 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesAhsanul Karim
 
Day 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesDay 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesAhsanul Karim
 
Introduction to Android Programming
Introduction to Android ProgrammingIntroduction to Android Programming
Introduction to Android Programming
Raveendra R
 
Native Android Development Practices
Native Android Development PracticesNative Android Development Practices
Native Android Development Practices
Roy Clarkson
 
07_UIAndroid.pdf
07_UIAndroid.pdf07_UIAndroid.pdf
07_UIAndroid.pdf
ImranS18
 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android Application
Arcadian Learning
 
Unit5 Mobile Application Development.doc
Unit5 Mobile Application Development.docUnit5 Mobile Application Development.doc
Unit5 Mobile Application Development.doc
KNANTHINIMCA
 
Introduction To Google Android (Ft Rohan Bomle)
Introduction To Google Android (Ft Rohan Bomle)Introduction To Google Android (Ft Rohan Bomle)
Introduction To Google Android (Ft Rohan Bomle)
Fafadia Tech
 
Android Application Development - Level 1
Android Application Development - Level 1Android Application Development - Level 1
Android Application Development - Level 1
Isham Rashik
 
Beginning Native Android Apps
Beginning Native Android AppsBeginning Native Android Apps
Beginning Native Android Apps
Gil Irizarry
 
Synapseindia android apps introduction hello world
Synapseindia android apps introduction hello worldSynapseindia android apps introduction hello world
Synapseindia android apps introduction hello world
Tarunsingh198
 
Android activity, service, and broadcast recievers
Android activity, service, and broadcast recieversAndroid activity, service, and broadcast recievers
Android activity, service, and broadcast recieversUtkarsh Mankad
 
Compose In Practice
Compose In PracticeCompose In Practice
Compose In Practice
Kelvin Harron
 
android training_material ravy ramio
android training_material ravy ramioandroid training_material ravy ramio
android training_material ravy ramio
slesulvy
 
Android Tutorials : Basic widgets
Android Tutorials : Basic widgetsAndroid Tutorials : Basic widgets
Android Tutorials : Basic widgets
Prajyot Mainkar
 
Android Lab
Android LabAndroid Lab
Android Lab
Leo Nguyen
 
Android Development : (Android Studio, PHP, XML, MySQL)
Android Development : (Android Studio, PHP, XML, MySQL)Android Development : (Android Studio, PHP, XML, MySQL)
Android Development : (Android Studio, PHP, XML, MySQL)
Kavya Barnadhya Hazarika
 
Android Bootcamp Tanzania:understanding ui in_android
Android Bootcamp Tanzania:understanding ui in_androidAndroid Bootcamp Tanzania:understanding ui in_android
Android Bootcamp Tanzania:understanding ui in_android
Denis Minja
 

Similar to Answer1)Responsive design is the idea where all the developed pag.pdf (20)

Android Workshop
Android WorkshopAndroid Workshop
Android Workshop
 
Day 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesDay 3: Getting Active Through Activities
Day 3: Getting Active Through Activities
 
Day 3: Getting Active Through Activities
Day 3: Getting Active Through ActivitiesDay 3: Getting Active Through Activities
Day 3: Getting Active Through Activities
 
Introduction to Android Programming
Introduction to Android ProgrammingIntroduction to Android Programming
Introduction to Android Programming
 
Native Android Development Practices
Native Android Development PracticesNative Android Development Practices
Native Android Development Practices
 
07_UIAndroid.pdf
07_UIAndroid.pdf07_UIAndroid.pdf
07_UIAndroid.pdf
 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android Application
 
Unit5 Mobile Application Development.doc
Unit5 Mobile Application Development.docUnit5 Mobile Application Development.doc
Unit5 Mobile Application Development.doc
 
Introduction To Google Android (Ft Rohan Bomle)
Introduction To Google Android (Ft Rohan Bomle)Introduction To Google Android (Ft Rohan Bomle)
Introduction To Google Android (Ft Rohan Bomle)
 
Android Application Development - Level 1
Android Application Development - Level 1Android Application Development - Level 1
Android Application Development - Level 1
 
Beginning Native Android Apps
Beginning Native Android AppsBeginning Native Android Apps
Beginning Native Android Apps
 
Synapseindia android apps introduction hello world
Synapseindia android apps introduction hello worldSynapseindia android apps introduction hello world
Synapseindia android apps introduction hello world
 
Android activity, service, and broadcast recievers
Android activity, service, and broadcast recieversAndroid activity, service, and broadcast recievers
Android activity, service, and broadcast recievers
 
Compose In Practice
Compose In PracticeCompose In Practice
Compose In Practice
 
android training_material ravy ramio
android training_material ravy ramioandroid training_material ravy ramio
android training_material ravy ramio
 
Android Tutorials : Basic widgets
Android Tutorials : Basic widgetsAndroid Tutorials : Basic widgets
Android Tutorials : Basic widgets
 
Android Lab
Android LabAndroid Lab
Android Lab
 
Android
AndroidAndroid
Android
 
Android Development : (Android Studio, PHP, XML, MySQL)
Android Development : (Android Studio, PHP, XML, MySQL)Android Development : (Android Studio, PHP, XML, MySQL)
Android Development : (Android Studio, PHP, XML, MySQL)
 
Android Bootcamp Tanzania:understanding ui in_android
Android Bootcamp Tanzania:understanding ui in_androidAndroid Bootcamp Tanzania:understanding ui in_android
Android Bootcamp Tanzania:understanding ui in_android
 

More from ankitcomputer11

#includestdio.h#includestdlib.h structure of a stack node .pdf
#includestdio.h#includestdlib.h structure of a stack node .pdf#includestdio.h#includestdlib.h structure of a stack node .pdf
#includestdio.h#includestdlib.h structure of a stack node .pdf
ankitcomputer11
 
Solution Since we know that the subshell with .pdf
                     Solution Since we know that the subshell with  .pdf                     Solution Since we know that the subshell with  .pdf
Solution Since we know that the subshell with .pdf
ankitcomputer11
 
let V be nonempty open subset of X then V inters.pdf
                     let V be nonempty open subset of X  then V inters.pdf                     let V be nonempty open subset of X  then V inters.pdf
let V be nonempty open subset of X then V inters.pdf
ankitcomputer11
 
Look at the periodic table. When Be loses its f.pdf
                     Look at the periodic table. When Be loses its f.pdf                     Look at the periodic table. When Be loses its f.pdf
Look at the periodic table. When Be loses its f.pdf
ankitcomputer11
 
taking L.T.,,,,,,,,,,,,Y(s)[s^2+4s+14]=L(T(t))....pdf
                     taking L.T.,,,,,,,,,,,,Y(s)[s^2+4s+14]=L(T(t))....pdf                     taking L.T.,,,,,,,,,,,,Y(s)[s^2+4s+14]=L(T(t))....pdf
taking L.T.,,,,,,,,,,,,Y(s)[s^2+4s+14]=L(T(t))....pdf
ankitcomputer11
 
the salt is neutral in charge. OS of Ca is +2, so.pdf
                     the salt is neutral in charge. OS of Ca is +2, so.pdf                     the salt is neutral in charge. OS of Ca is +2, so.pdf
the salt is neutral in charge. OS of Ca is +2, so.pdf
ankitcomputer11
 
nonmetals, metals, metalloids, and gases. They ar.pdf
                     nonmetals, metals, metalloids, and gases. They ar.pdf                     nonmetals, metals, metalloids, and gases. They ar.pdf
nonmetals, metals, metalloids, and gases. They ar.pdf
ankitcomputer11
 
x= 2 (or) -2Solutionx= 2 (or) -2.pdf
x= 2 (or) -2Solutionx= 2 (or) -2.pdfx= 2 (or) -2Solutionx= 2 (or) -2.pdf
x= 2 (or) -2Solutionx= 2 (or) -2.pdf
ankitcomputer11
 
there are two types that are presented as ch3 and ch...Solution.pdf
there are two types that are presented as ch3 and ch...Solution.pdfthere are two types that are presented as ch3 and ch...Solution.pdf
there are two types that are presented as ch3 and ch...Solution.pdf
ankitcomputer11
 
In thermodynamics, a state function, function of .pdf
                     In thermodynamics, a state function, function of .pdf                     In thermodynamics, a state function, function of .pdf
In thermodynamics, a state function, function of .pdf
ankitcomputer11
 
The process of protein synthesis and secretion starts from the endop.pdf
The process of protein synthesis and secretion starts from the endop.pdfThe process of protein synthesis and secretion starts from the endop.pdf
The process of protein synthesis and secretion starts from the endop.pdf
ankitcomputer11
 
The IUPAC names of the given compounds is      2-chloro-1-butanol.pdf
The IUPAC names of the given compounds is      2-chloro-1-butanol.pdfThe IUPAC names of the given compounds is      2-chloro-1-butanol.pdf
The IUPAC names of the given compounds is      2-chloro-1-butanol.pdf
ankitcomputer11
 
Solution - (c) - 20001 SharesCalculation of Number of shares to be.pdf
Solution - (c) - 20001 SharesCalculation of Number of shares to be.pdfSolution - (c) - 20001 SharesCalculation of Number of shares to be.pdf
Solution - (c) - 20001 SharesCalculation of Number of shares to be.pdf
ankitcomputer11
 
NOBecause here we are not working on past experience of data.S.pdf
NOBecause here we are not working on past experience of data.S.pdfNOBecause here we are not working on past experience of data.S.pdf
NOBecause here we are not working on past experience of data.S.pdf
ankitcomputer11
 
Move decimal to behind the first number4.71Round4.714.71 X 1.pdf
Move decimal to behind the first number4.71Round4.714.71 X 1.pdfMove decimal to behind the first number4.71Round4.714.71 X 1.pdf
Move decimal to behind the first number4.71Round4.714.71 X 1.pdf
ankitcomputer11
 
Lewis acid is the electron pair acceptorLewis base is the electron.pdf
Lewis acid is the electron pair acceptorLewis base is the electron.pdfLewis acid is the electron pair acceptorLewis base is the electron.pdf
Lewis acid is the electron pair acceptorLewis base is the electron.pdf
ankitcomputer11
 
CsSolutionCs.pdf
CsSolutionCs.pdfCsSolutionCs.pdf
CsSolutionCs.pdf
ankitcomputer11
 
first treat with alcoholic KOH to get cyclo hexene and then treat it.pdf
first treat with alcoholic KOH to get cyclo hexene and then treat it.pdffirst treat with alcoholic KOH to get cyclo hexene and then treat it.pdf
first treat with alcoholic KOH to get cyclo hexene and then treat it.pdf
ankitcomputer11
 
An azeotrope is a mixture of two or more liquids .pdf
                     An azeotrope is a mixture of two or more liquids .pdf                     An azeotrope is a mixture of two or more liquids .pdf
An azeotrope is a mixture of two or more liquids .pdf
ankitcomputer11
 
Here we have sodium bisulfate NaHSO4, as you have shown the ions pr.pdf
Here we have sodium bisulfate NaHSO4, as you have shown the ions pr.pdfHere we have sodium bisulfate NaHSO4, as you have shown the ions pr.pdf
Here we have sodium bisulfate NaHSO4, as you have shown the ions pr.pdf
ankitcomputer11
 

More from ankitcomputer11 (20)

#includestdio.h#includestdlib.h structure of a stack node .pdf
#includestdio.h#includestdlib.h structure of a stack node .pdf#includestdio.h#includestdlib.h structure of a stack node .pdf
#includestdio.h#includestdlib.h structure of a stack node .pdf
 
Solution Since we know that the subshell with .pdf
                     Solution Since we know that the subshell with  .pdf                     Solution Since we know that the subshell with  .pdf
Solution Since we know that the subshell with .pdf
 
let V be nonempty open subset of X then V inters.pdf
                     let V be nonempty open subset of X  then V inters.pdf                     let V be nonempty open subset of X  then V inters.pdf
let V be nonempty open subset of X then V inters.pdf
 
Look at the periodic table. When Be loses its f.pdf
                     Look at the periodic table. When Be loses its f.pdf                     Look at the periodic table. When Be loses its f.pdf
Look at the periodic table. When Be loses its f.pdf
 
taking L.T.,,,,,,,,,,,,Y(s)[s^2+4s+14]=L(T(t))....pdf
                     taking L.T.,,,,,,,,,,,,Y(s)[s^2+4s+14]=L(T(t))....pdf                     taking L.T.,,,,,,,,,,,,Y(s)[s^2+4s+14]=L(T(t))....pdf
taking L.T.,,,,,,,,,,,,Y(s)[s^2+4s+14]=L(T(t))....pdf
 
the salt is neutral in charge. OS of Ca is +2, so.pdf
                     the salt is neutral in charge. OS of Ca is +2, so.pdf                     the salt is neutral in charge. OS of Ca is +2, so.pdf
the salt is neutral in charge. OS of Ca is +2, so.pdf
 
nonmetals, metals, metalloids, and gases. They ar.pdf
                     nonmetals, metals, metalloids, and gases. They ar.pdf                     nonmetals, metals, metalloids, and gases. They ar.pdf
nonmetals, metals, metalloids, and gases. They ar.pdf
 
x= 2 (or) -2Solutionx= 2 (or) -2.pdf
x= 2 (or) -2Solutionx= 2 (or) -2.pdfx= 2 (or) -2Solutionx= 2 (or) -2.pdf
x= 2 (or) -2Solutionx= 2 (or) -2.pdf
 
there are two types that are presented as ch3 and ch...Solution.pdf
there are two types that are presented as ch3 and ch...Solution.pdfthere are two types that are presented as ch3 and ch...Solution.pdf
there are two types that are presented as ch3 and ch...Solution.pdf
 
In thermodynamics, a state function, function of .pdf
                     In thermodynamics, a state function, function of .pdf                     In thermodynamics, a state function, function of .pdf
In thermodynamics, a state function, function of .pdf
 
The process of protein synthesis and secretion starts from the endop.pdf
The process of protein synthesis and secretion starts from the endop.pdfThe process of protein synthesis and secretion starts from the endop.pdf
The process of protein synthesis and secretion starts from the endop.pdf
 
The IUPAC names of the given compounds is      2-chloro-1-butanol.pdf
The IUPAC names of the given compounds is      2-chloro-1-butanol.pdfThe IUPAC names of the given compounds is      2-chloro-1-butanol.pdf
The IUPAC names of the given compounds is      2-chloro-1-butanol.pdf
 
Solution - (c) - 20001 SharesCalculation of Number of shares to be.pdf
Solution - (c) - 20001 SharesCalculation of Number of shares to be.pdfSolution - (c) - 20001 SharesCalculation of Number of shares to be.pdf
Solution - (c) - 20001 SharesCalculation of Number of shares to be.pdf
 
NOBecause here we are not working on past experience of data.S.pdf
NOBecause here we are not working on past experience of data.S.pdfNOBecause here we are not working on past experience of data.S.pdf
NOBecause here we are not working on past experience of data.S.pdf
 
Move decimal to behind the first number4.71Round4.714.71 X 1.pdf
Move decimal to behind the first number4.71Round4.714.71 X 1.pdfMove decimal to behind the first number4.71Round4.714.71 X 1.pdf
Move decimal to behind the first number4.71Round4.714.71 X 1.pdf
 
Lewis acid is the electron pair acceptorLewis base is the electron.pdf
Lewis acid is the electron pair acceptorLewis base is the electron.pdfLewis acid is the electron pair acceptorLewis base is the electron.pdf
Lewis acid is the electron pair acceptorLewis base is the electron.pdf
 
CsSolutionCs.pdf
CsSolutionCs.pdfCsSolutionCs.pdf
CsSolutionCs.pdf
 
first treat with alcoholic KOH to get cyclo hexene and then treat it.pdf
first treat with alcoholic KOH to get cyclo hexene and then treat it.pdffirst treat with alcoholic KOH to get cyclo hexene and then treat it.pdf
first treat with alcoholic KOH to get cyclo hexene and then treat it.pdf
 
An azeotrope is a mixture of two or more liquids .pdf
                     An azeotrope is a mixture of two or more liquids .pdf                     An azeotrope is a mixture of two or more liquids .pdf
An azeotrope is a mixture of two or more liquids .pdf
 
Here we have sodium bisulfate NaHSO4, as you have shown the ions pr.pdf
Here we have sodium bisulfate NaHSO4, as you have shown the ions pr.pdfHere we have sodium bisulfate NaHSO4, as you have shown the ions pr.pdf
Here we have sodium bisulfate NaHSO4, as you have shown the ions pr.pdf
 

Recently uploaded

Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 

Recently uploaded (20)

Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 

Answer1)Responsive design is the idea where all the developed pag.pdf

  • 1. Answer: 1)Responsive design is the idea where all the developed pages are embedded with model,view and controller in the same page of the design so that it is easy for the user to transfer the data from model to view and view to model.This also reduces the burden on the server when the user makes any request all the form elements will not reach the server in responsive design but makes the specific action element to reach the server and gives the output to the user. 2)Application templates in android involves both the layouts and UI components which are used to build the design pages of the front end of the page.The common layouts which are used are Gird Layout,Flow Layout,Relative Layout and UI components such as listview,gridview,spinner,togglebuttons,radiobuttons,progressbar etc are used in any of the front end design of the android for application to develop.We use XML for the design of the front end in design in the application. Android Application : Note : Deploy the below files in Eclipse Id or Android Studio and run MainActivity.java package com.example.listviewcustom; import java.io.File; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); /* String path="/storage/sdcard0/sample_images/"; File f=new File(path); if(f.exists()){
  • 2. String[] files=f.list(); ArrayAdapter adapter=new ArrayAdapter(getApplicationContext(), android.R.layout.simple_spinner_dropdown_item,files ); */ ListView lView=(ListView)findViewById(R.id.listView1); lView.setAdapter(new MyAdapter(this)); /* }else{ Toast.makeText(getApplicationContext(), "Path is not available ....",2000).show(); } */ } public void reload(){ ListView lView=(ListView)findViewById(R.id.listView1); lView.setAdapter(new MyAdapter(this)); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.activity_main, menu); return true; } } MyAdapter.java
  • 3. package com.example.listviewcustom; import java.io.File; import android.net.Uri; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.webkit.WebView.FindListener; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; public class MyAdapter extends BaseAdapter{ //String path="/storage/sdcard0/sample_images/"; String path="/mnt/sdcard/sample_images/"; File f=new File(path); String[] files=f.list(); MainActivity activity; public MyAdapter(MainActivity mActivity){ this.activity=mActivity; } @Override public int getCount() { // TODO Auto-generated method stub return files.length; } @Override public Object getItem(int position) { // TODO Auto-generated method stub return position; }
  • 4. @Override public long getItemId(int position) { // TODO Auto-generated method stub return position; } @Override public View getView(int position, View v, ViewGroup arg2) { LayoutInflater inflater=LayoutInflater.from(activity); v=inflater.inflate(R.layout.individual_view, null); ImageView iv=(ImageView)v.findViewById(R.id.imageView1); TextView tv1=(TextView)v.findViewById(R.id.textView1); TextView tv2=(TextView)v.findViewById(R.id.textView2); ImageView iv2=(ImageView)v.findViewById(R.id.imageView2); final File f=new File(path+files[position]); iv.setImageURI(Uri.fromFile(f)); tv1.setText(files[position]); tv2.setText(f.length()/1024 + "kb"); iv2.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { f.delete();
  • 5. activity.reload(); } }); return v; } } AndroidManifest.xml activity_main.xml individual_view.xml Solution Answer: 1)Responsive design is the idea where all the developed pages are embedded with model,view and controller in the same page of the design so that it is easy for the user to transfer the data from model to view and view to model.This also reduces the burden on the server when the user makes any request all the form elements will not reach the server in responsive design but makes the specific action element to reach the server and gives the output to the user. 2)Application templates in android involves both the layouts and UI components which are used to build the design pages of the front end of the page.The common layouts which are used are Gird Layout,Flow Layout,Relative Layout and UI components such as listview,gridview,spinner,togglebuttons,radiobuttons,progressbar etc are used in any of the front end design of the android for application to develop.We use XML for the design of the front end in design in the application. Android Application : Note : Deploy the below files in Eclipse Id or Android Studio and run MainActivity.java package com.example.listviewcustom; import java.io.File; import android.app.Activity; import android.os.Bundle; import android.view.Menu;
  • 6. import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.Toast; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); /* String path="/storage/sdcard0/sample_images/"; File f=new File(path); if(f.exists()){ String[] files=f.list(); ArrayAdapter adapter=new ArrayAdapter(getApplicationContext(), android.R.layout.simple_spinner_dropdown_item,files ); */ ListView lView=(ListView)findViewById(R.id.listView1); lView.setAdapter(new MyAdapter(this)); /* }else{ Toast.makeText(getApplicationContext(), "Path is not available ....",2000).show(); } */ } public void reload(){
  • 7. ListView lView=(ListView)findViewById(R.id.listView1); lView.setAdapter(new MyAdapter(this)); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.activity_main, menu); return true; } } MyAdapter.java package com.example.listviewcustom; import java.io.File; import android.net.Uri; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.webkit.WebView.FindListener; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; public class MyAdapter extends BaseAdapter{ //String path="/storage/sdcard0/sample_images/"; String path="/mnt/sdcard/sample_images/"; File f=new File(path); String[] files=f.list(); MainActivity activity;
  • 8. public MyAdapter(MainActivity mActivity){ this.activity=mActivity; } @Override public int getCount() { // TODO Auto-generated method stub return files.length; } @Override public Object getItem(int position) { // TODO Auto-generated method stub return position; } @Override public long getItemId(int position) { // TODO Auto-generated method stub return position; } @Override public View getView(int position, View v, ViewGroup arg2) { LayoutInflater inflater=LayoutInflater.from(activity); v=inflater.inflate(R.layout.individual_view, null); ImageView iv=(ImageView)v.findViewById(R.id.imageView1); TextView tv1=(TextView)v.findViewById(R.id.textView1); TextView tv2=(TextView)v.findViewById(R.id.textView2); ImageView iv2=(ImageView)v.findViewById(R.id.imageView2);
  • 9. final File f=new File(path+files[position]); iv.setImageURI(Uri.fromFile(f)); tv1.setText(files[position]); tv2.setText(f.length()/1024 + "kb"); iv2.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { f.delete(); activity.reload(); } }); return v; } } AndroidManifest.xml activity_main.xml individual_view.xml