FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
com.freerdp.freerdpcore.presentation.ShortcutsActivity Class Reference
Inheritance diagram for com.freerdp.freerdpcore.presentation.ShortcutsActivity:
Collaboration diagram for com.freerdp.freerdpcore.presentation.ShortcutsActivity:

Public Member Functions

void onCreate (Bundle savedInstanceState)
 
void onResume ()
 
void onPause ()
 

Static Public Attributes

static final String TAG = "ShortcutsActivity"
 

Detailed Description

Definition at line 34 of file ShortcutsActivity.java.

Member Function Documentation

◆ onCreate()

void com.freerdp.freerdpcore.presentation.ShortcutsActivity.onCreate ( Bundle  savedInstanceState)
inline

Definition at line 39 of file ShortcutsActivity.java.

40 {
41
42 super.onCreate(savedInstanceState);
43
44 Intent intent = getIntent();
45 if (Intent.ACTION_CREATE_SHORTCUT.equals(intent.getAction()))
46 {
47 // set listeners for the list view
48 getListView().setOnItemClickListener(new AdapterView.OnItemClickListener() {
49 public void onItemClick(AdapterView<?> parent, View view, int position, long id)
50 {
51 String refStr = view.getTag().toString();
52 String defLabel =
53 ((TextView)(view.findViewById(R.id.bookmark_text1))).getText().toString();
54 setupShortcut(refStr, defLabel);
55 }
56 });
57 }
58 else
59 {
60 // just exit
61 finish();
62 }
63 }

◆ onPause()

void com.freerdp.freerdpcore.presentation.ShortcutsActivity.onPause ( )
inline

Definition at line 75 of file ShortcutsActivity.java.

76 {
77 super.onPause();
78 getListView().setAdapter(null);
79 }

◆ onResume()

void com.freerdp.freerdpcore.presentation.ShortcutsActivity.onResume ( )
inline

Definition at line 65 of file ShortcutsActivity.java.

66 {
67 super.onResume();
68 // create bookmark cursor adapter
69 ArrayList<BookmarkBase> bookmarks = GlobalApp.getManualBookmarkGateway().findAll();
70 BookmarkArrayAdapter bookmarkAdapter =
71 new BookmarkArrayAdapter(this, android.R.layout.simple_list_item_2, bookmarks);
72 getListView().setAdapter(bookmarkAdapter);
73 }

Field Documentation

◆ TAG

final String com.freerdp.freerdpcore.presentation.ShortcutsActivity.TAG = "ShortcutsActivity"
static

Definition at line 37 of file ShortcutsActivity.java.


The documentation for this class was generated from the following file: