|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This report was generated with an evaluation server license. Purchase Clover or configure your license. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TextViewActivity | Line # 26 | 5 | 2 | 87,5% |
0.875
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
No Tests | |||
1 | /* | |
2 | Copyright (C) 2012 Sweetie Piggy Apps <sweetiepiggyapps@gmail.com> | |
3 | ||
4 | This file is part of Raspberry Bus Malaysia. | |
5 | ||
6 | Raspberry Bus Malaysia is free software; you can redistribute it and/or modify | |
7 | it under the terms of the GNU General Public License as published by | |
8 | the Free Software Foundation; either version 3 of the License, or | |
9 | (at your option) any later version. | |
10 | ||
11 | Raspberry Bus Malaysia is distributed in the hope that it will be useful, | |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | GNU General Public License for more details. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
17 | along with Raspberry Bus Malaysia; if not, see <http://www.gnu.org/licenses/>. | |
18 | */ | |
19 | ||
20 | package com.sweetiepiggy.raspberrybusmalaysia; | |
21 | ||
22 | import android.app.Activity; | |
23 | import android.os.Bundle; | |
24 | import android.widget.TextView; | |
25 | ||
26 | public class TextViewActivity extends Activity { | |
27 | ||
28 | /** Called when the activity is first created. */ | |
29 | 1 |
![]() |
30 | public void onCreate(Bundle savedInstanceState) { | |
31 | 1 | super.onCreate(savedInstanceState); |
32 | 1 | setContentView(R.layout.textview_layout); |
33 | 1 | Bundle b = getIntent().getExtras(); |
34 | 1 | String text = (b == null) ? "" : b.getString("text"); |
35 | 1 | ((TextView) findViewById(R.id.text)).setText(text); |
36 | } | |
37 | } | |
38 |
|