Pages

Thursday, April 28, 2016

Android Gallery Control

In Android the Gallery control is a selection control that displays items in a horizontal gallery. the items in the gallery appear beside each other. they can appear separated by a pre-defined space.

remember that there is a sample demo application for the gallery to download at the end of the post

we can use the gallery to display String items using a simple ArrayAdapter.
so lets see how to create a gallery that displays the word "Hello" in several languages:

the layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android_orientation="vertical"
android_layout_width="fill_parent"
android_layout_height="fill_parent"
>
<TextView
android_layout_width="fill_parent"
android_layout_height="wrap_content"
android_text="Gallery Demo"
/>
<Gallery
android_id="@+id/gallery"
android_layout_width="fill_parent"
android_layout_height="wrap_content"
android_gravity="center_horizontal"
android_spacing="100px"

/>
</LinearLayout>

and in the OnCreate method
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
gallery=(Gallery)findViewById(R.id.gallery);
//String array holding the values
String [] text=new String[]{"Hello","Hi","Alloha","Bonjour","Hallo","¡Hola"};
//Array adapter to display our values in the gallery control
ArrayAdapter arr=new ArrayAdapter(this, android.R.layout.simple_gallery_item, text);
gallery.setAdapter(arr);
}

the gallery will be like this

we can increse the spacing between the items by increasing the value of android:spacing property.

we can display a scroll bar to indicate the position of the current selected item in the gallery like this:
<Gallery
android_id="@+id/gallery"
android_layout_width="fill_parent"
android_layout_height="wrap_content"
android_gravity="center_horizontal"
android_spacing="100px"
android_scrollbars="horizontal"
android_scrollbarFadeDuration="0"
android_scrollX="100px"
/>




setting the android:scrollbarFadeDuration="0" makes the scroll bar always visible.

The android:scrollX property defines the initial scroll offset of the scroll bar which is the initial distance that the gallery is scrolled for.

Handling Gallery Events
since the gallery is a selction Control (a adapter view) so it can register a OnItemSelectedListener to handle the selection of items within the gallery.

final String [] text=new String[]{"Hello","Hi","Alloha","Bonjour","Hallo","¡Hola"};
gallery.setOnItemSelectedListener(new OnItemSelectedListener() {

@Override
public void onItemSelected(AdapterView parent, View view,
int position, long id) {
// TODO Auto-generated method stub
TextView txt=(TextView)findViewById(R.id.txt);
txt.setText(text[position].toString());
}

@Override
public void onNothingSelected(AdapterView parent) {
// TODO Auto-generated method stub

}
});


now the final step is to add two navigation buttons: Next and Previous to navigate throught the items in the gallery.
the layout is gonna be like this:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android_orientation="vertical"
android_layout_width="fill_parent"
android_layout_height="fill_parent"
>
<TextView
android_layout_width="fill_parent"
android_layout_height="wrap_content"
android_text="Gallery Demo"
android_id="@+id/txt"
/>
<Gallery
android_id="@+id/gallery"
android_layout_width="fill_parent"
android_layout_height="wrap_content"
android_gravity="center_horizontal"
android_spacing="100px"
android_scrollbars="horizontal"
android_scrollbarFadeDuration="0"
android_scrollX="100px"
/>
<LinearLayout
android_layout_width="fill_parent"
android_layout_height="wrap_content"
android_orientation="horizontal"
android_layout_marginTop="5px"
>
<Button
android_text="Previous"
android_layout_width="wrap_content"
android_layout_height="wrap_content"
android_id="@+id/btnPrev"
android_onClick="onClick"
/>
<Button
android_text="Next"
android_layout_width="wrap_content"
android_layout_height="wrap_content"
android_id="@+id/btnNext"
android_onClick="onClick"
/>

</LinearLayout>

</LinearLayout>


now in order to keep track of the index of the currently selected item we need to define two variables
//Variable to store the number of items in the gallery
int ItemsInGallery=0;
int CurrentIndex=0;

and the navigation buttons click handlers:
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
switch(v.getId())
{
case R.id.btnNext:
//Increase the index
CurrentIndex++;
//if reached the end of the gallery, then start from the first item
if(CurrentIndex>ItemsInGallery-1)
CurrentIndex=0;
gallery.setSelection(CurrentIndex,true);
txt.setText(String.valueOf(CurrentIndex));
break;
case R.id.btnPrev:
//Decrease the index
CurrentIndex=CurrentIndex-1;
//If reached the first item, then return to the last item in the gallery
if(CurrentIndex<0)
CurrentIndex=ItemsInGallery-1;
gallery.setSelection(CurrentIndex,true);
txt.setText(String.valueOf(CurrentIndex));
break;
}
}
you can download a sample program from here
Read More..

:p>

tablayout,or,tabbed,view,android,developer,tutorial
Read More..

Wednesday, April 27, 2016

Car Toons Unlimited Tow Trucks Android Game Moded


Salam blogger :)
Game for kids nih gan, agan2 yg mau ngasih game berjenis puzzle casual ke anak2 agan or ade2 agan, inilah game yg cocok. oke cek its mod nya ..

Details Game: 
Name       : Car Toons
Genre       : Casual
Platform  : Android 
Requires  : Android 4.0  and up

Modification on Game: 
1. Unlimited Tow Trucks

Review Modif:


Screenshoot:


Tutorial Instal : 
1. Download game. 
2. Pindahkan Game ke Androidmu.
3. Uniinstal Version originalnya, jika ada.
4. Instal MOD apk & Play
5. Enjoyyy 

|DOWNLOAD|
Car Toons - Unlimited Tow Trucks[Android Game : Moded]

|Download Original game|
On Playstore

#Salam Blogger
#Semoga bermanfaat :)
#Ask? comment :)
Read More..

Game Covert OPS Condor Full v1 7

Persyaratan minimum: Android 2.1+

Aplikasi ini bisa digunakan sebagai Flight Simulator, Flight Sim, Condor, Airplane, Accelerometer. Saat kamu telah lulus ujian tes pilot dan sedang keluar menaiki pesawa tiba-tiba ada perintah dari atasan untuk terlibat dalam peperangan. Kamu sekarang bertanggung jawab menjaga stabilitas di wilayah musuh dengan dilengkapi senjata lengkap.

Download: filesonic | filepost
Read More..

Cara Menghemat PAKET DATA dan KUOTA INTERNET di HP Android

Cara Menghemat PAKET DATA Android

Cara Menghemat PAKET DATA dan KUOTA INTERNET di Smatphone Android - Hallo Selamat datang kembali di Blog Lingkaran Anda, Pada artikel kali ini yang menjadi bahasan atau topiknya adalah Cara Menghemat PAKET DATA dan KUOTA INTERNET di Ponsel Android , Internet itu adalah hal yang tidak bisa kita lepas dari kehidupan sehari-hari, apalagi seperti jaman modern sekarang ini, bahkan bukan hanya di indonesia namun di seluruh dunia pun menganggap bahwa internet adalah salah satu kebutuhan pokok dalam kehidupan.


Seperti anda ketahui kuota internet atau paket data ini mempunyai banyak sekali pilihan dari operator selullar yang menawarkan iming-iming dengan kuota melimpah dan pastinya juga dengan harga yang relatif terjangkau atau murah, Anehnya tetap saja dengan kuota yang berlimpah pada akhirnya akan habis sebelum masa pemakaian selesai. Anda juga sudah tahu bahwa operator selluar saling bersaing menawarkan paket internet dengan harga murah, Nah disini anda sebagai pembeli harus pandai memilih mana yang bagus untuk daerah anda, karena setiap daerah maupun wilayah memiliki perbedaan tentang harga maupun kecepatan.


Untuk itu anda , menghemat kuota internet di android merupakan hal yang sangat susah untuk di terapkan, namun kita harus tetap berusaha, oleh karena itu admin membuat postingan ini yang membagikan tentang cara menghemat kuota android ,Tips menghemat kuota android , Dan Aplikasi Menghemat kuota android, oleh karena itu langsung simak saja di bawah ini.


Cara Mudah Menghemat PAKET DATA atau KUOTA INTERNET di Android :

1. Gunakan Paket Data Internet Seperlunya saja

Langkah pertama ini yaitu langkah yang terpenting dari beberapa tips lain dibawah, yaitu gunakan paket data seperlunya saja, Jika anda memang ingin menghemat kuota internet anda, anda harus sering mematikan paket data jika memang tidak digunakan, soalnya takut disaat tidak terpakai namun koneksi internet tetap terhubung.


2. Manfaatkan Fitur Wifi Yang Ada

Tips kedua ini tidak kalah pentingnya dari langkah pertama tadi, yaitu memanfaatkan fitur wifi yang ada, jika tetangga anda atau rumah anda dekat dengan corner free wifi seperti telkom, wifi.id dan sebagainya, usahakan memanfaatkan itu untuk mendownload, karena jika anda mendownload lewat paket data anda sendiri, hal itu hanya akan menyebabkan pemborosan 100% dengan kuota internet yang anda miliki.


3. Non-Aktifkan Fitur Auto Update dan Auto Download

Ketiga yaitu menonaktifkan fitur auto update dan auto download yang biasanya firut auto update ada pada aplikasi Google Play dan fitur auto download biasanya ada pada aplikasi Whats App dan semacamnya, anda harus menyetelnya untuk menggunakan fasilitas wifi saja, karena dengan memanfaatkan fasilitas wifi tersebut kuota anda akan ama 100% dari auto update tersebut.


4. Kurangi Kebiasaan Streaming Video

Nah langkah ke terakhir ini biasanya sangat di abaikan oleh para pengguna android, padahal langkah terakhir yakni Kurangi Kebiasaan Streaming Video adalah salah satu pokok yang menyebabkan kuota boros, karena dengan anda menonton video secara streaming, paket data atau kuota internet anda tersebut, terus-menerus mengirimkan paket data pada server video tersebut, oleh karena itu lebih baik mendownload kemudian dilihat daripada melihat tapi tidak di download :v.


Demikian Artikel kali ini tentang Tips Menghemat Paket Data atau Kuota Internet Di Smartphone Android .Semoga apa yang saya tulis ini bisa bermanfaat untuk anda semua.
Read More..

Latest IDM 6 23 Final Build 8 Full Version Full Patch



Latest IDM 6:23 Final Build 8 Full Version

Latest IDM was released on 19 March 2015. The usefulness of this IDM itself to speed up the process of downloading files on the Internet. Such as downloading videos, images, audio, video games and software etc. If you are using IDM is eating you easily download files that exist on the internet and the latest IDM also has better features than the previous one.

Latest Feature IDM 6:23 Build 8 Final Full Version


  • Fixed a critical bug in the IDM network drivers
  • Fixed compatibility problems with antiviral and internet security software
  • Improved taking over downloads of videos from web players in Google Chrome
  • Added a feature to change video resolution for rtmp protocol
  • Added support for SeaMonkey 2:33
  • Fixed problems with video / audio recognition for Several types of web sites
  • Fixed compatibility problems of the Google Chrome extension with Several applications
  • Fixed bugs in Chrome integration module
  • Added support for Firefox 37
  • Added support for Google Chrome 42
  • Added support for new types of video streaming sites
  • Fixed bugs


How to Install IDM:


  1. Download and extract the file "Final 6.23 IDM Build 8 Full Version"
  2. Then install the IDM software it as usual. After the installation is completed do not always open the program. (For those of you that have previously been installed IDM, IDM his first uninstall the new install it again with this latest IDM).
  3. Run the patch by right click and select run as administrator
  4. click patch
  5. Then copy and paste also IDMGrHlp.exe files to C: Program Files (x86) Internet Download Manager
  6. Finish
Link Download

IDM 6.23 Final Build 8 Full Version - (6 mb)

IDM Patch - (320 Kb)


Read More..

Dots Hero Mod Gems Gold Android Game Moded


Salam blogger :) 
Akhirnya gua ngerasain juga KKN(Kuliah kerja Mahasiswa) :D , Ini gua lagi di desa update. haha . oke lahhhh. kali ini ane mau update game mod lagi nih , game ini game action. yaa jika kalau tidak memakai mod mungkin susah banget ini game. tapi kali ini ane share mod nya free. dan juga klo instal via playstore berbayar. tapi disini ane kasih free :D . oke cek it dot... 

Details Game: 
Name      : Dots Hero
Genre      : Action
Platform  : Android 
Requires  : Android 4.0  and up

Modification on Game: 
- MOD Gold
- MOD Gems


Review Modif:


Screenshoot:


Tutorial Instal : 
1. Download game. 
2. Pindahkan Game ke Androidmu.
3. Uniinstal Version originalnya, jika ada.
4. Instal MOD apk & Play
5. Enjoyyy 

|DOWNLOAD|
Dots Hero - Mod Gems/Gold[Android Game : Moded]

|Download Original game|
On Playstore

#Salam Blogger
#Semoga bermanfaat :)
#Ask? comment :)
Read More..