ipdCardBuilder.addItem(new MaterialAboutActionItem.Builder()
.text("Уже не ВКонтакте")
.icon(R.drawable.ic_vk_grey600_24dp)
.setOnClickListener(new MaterialAboutActionItem.OnClickListener() {
@Override
public void onClick() {
Intent i = new Intent(getApplicationContext(), SecondActivity.class);
startActivity(i);
}
})
.build());
ParseText.execute(hashMap.get(arrayList.get(position)));
parseText.execute(hashMap.get(arrayList.get(position)));
String doc="https://docs.google.com/viewer?url="+link;
webView.loadUrl(doc);
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Button button = (Button) findViewById(R.id.button);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent =new Intent(MainActivity.this, PreferenceScreen.class);
startActivity(intent);
}
});
}
}
out.setOnDrawerItemClickListener(new Drawer.OnDrawerItemClickListener() {
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l, IDrawerItem iDrawerItem) {
Intent intent = new Intent(this, NewActivity.class);
startActivity(intent);
}
});