2011-09-29 Miguel de Dios <miguel.dedios@artica.es>
* AndroidManifest.xml: level down the SDK version requirements, need test in Android 2.1. * src/pandroid_event_viewer/pandorafms/Options.java: added the clean url the last '/' char. * src/pandroid_event_viewer/pandorafms/EventList.java: change the url to show agent in browser. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5025 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
e360d94aee
commit
6ca43b2c40
|
@ -18,7 +18,7 @@
|
||||||
package="pandroid_event_viewer.pandorafms"
|
package="pandroid_event_viewer.pandorafms"
|
||||||
android:versionCode="1"
|
android:versionCode="1"
|
||||||
android:versionName="1.0">
|
android:versionName="1.0">
|
||||||
<uses-sdk android:minSdkVersion="8" />
|
<uses-sdk android:minSdkVersion="7" />
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|
|
@ -1,3 +1,14 @@
|
||||||
|
2011-09-29 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* AndroidManifest.xml: level down the SDK version requirements, need test in
|
||||||
|
Android 2.1.
|
||||||
|
|
||||||
|
* src/pandroid_event_viewer/pandorafms/Options.java: added the clean url
|
||||||
|
the last '/' char.
|
||||||
|
|
||||||
|
* src/pandroid_event_viewer/pandorafms/EventList.java: change the url to
|
||||||
|
show agent in browser.
|
||||||
|
|
||||||
2011-09-29 Miguel de Dios <miguel.dedios@artica.es>
|
2011-09-29 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* AndroidManifest.xml: added activity about.
|
* AndroidManifest.xml: added activity about.
|
||||||
|
|
|
@ -441,7 +441,10 @@ public class EventList extends ListActivity {
|
||||||
//http://127.0.0.1/pandora_console/mobile/index.php?page=agent&id=1
|
//http://127.0.0.1/pandora_console/mobile/index.php?page=agent&id=1
|
||||||
//Log.e("url", this.object.url);
|
//Log.e("url", this.object.url);
|
||||||
text.setText(Html.fromHtml(
|
text.setText(Html.fromHtml(
|
||||||
"<a href='" + this.object.url + "/mobile/index.php?page=agent&id=" + item.id_agent
|
"<a href='" + this.object.url +
|
||||||
|
"/index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente="
|
||||||
|
//"/mobile/index.php?page=agent&id="
|
||||||
|
+ item.id_agent
|
||||||
+ "'>" + item.agent_name + "</a>"));
|
+ "'>" + item.agent_name + "</a>"));
|
||||||
text.setMovementMethod(LinkMovementMethod.getInstance());
|
text.setMovementMethod(LinkMovementMethod.getInstance());
|
||||||
//text.setText(item.agent_name);
|
//text.setText(item.agent_name);
|
||||||
|
|
|
@ -69,8 +69,12 @@ public class Options extends Activity {
|
||||||
SharedPreferences.Editor editorPreferences = preferences.edit();
|
SharedPreferences.Editor editorPreferences = preferences.edit();
|
||||||
|
|
||||||
EditText text = (EditText) findViewById(R.id.url);
|
EditText text = (EditText) findViewById(R.id.url);
|
||||||
|
String url = text.getText().toString();
|
||||||
|
if (url.charAt(url.length() - 1) == '/') {
|
||||||
|
url = url.substring(0, url.length() - 1);
|
||||||
|
}
|
||||||
|
|
||||||
editorPreferences.putString("url", text.getText().toString());
|
editorPreferences.putString("url", url);
|
||||||
text = (EditText) findViewById(R.id.user);
|
text = (EditText) findViewById(R.id.user);
|
||||||
editorPreferences.putString("user", text.getText().toString());
|
editorPreferences.putString("user", text.getText().toString());
|
||||||
text = (EditText) findViewById(R.id.password);
|
text = (EditText) findViewById(R.id.password);
|
||||||
|
|
Loading…
Reference in New Issue