HOWTO: lock the app to connect to one site only?

Since v.1.4 this procedure is simplified, just change the following line in Main.java file:

public static final String LOCK_TO_SITE = null; // specify site you want to lock to, for example: "mysite.com/dolphin"

Rules → http://www.boonex.com/terms
Quote · 25 Jul 2011

not work

i change to public static final String LOCK_TO_SITE="kontakton.pl";

compile and not work

I can still add other sites with diffrend domain name

 

that is blocking the possibility of adding another page but still can add a page other than kontakton.pl

 

if buys license to use this application does not want to get my application downloaded from the Android Market can serve as a client to pages of other people

 

 

site url must have be invisible with static value from LOCK_TO_SITE string if string not null

Quote · 25 Jul 2011

Try to clear "OO" app data in Settings -> Applications -> Manage Applications -> OO -> Clear Data.

It will simulate situation, when application is opening at the first time.

Your site will appear by default automatically and it will not be possible to add another site. 

Rules → http://www.boonex.com/terms
Quote · 26 Jul 2011

I have already released the 1.4 version. If i change this in the projct and upload the new apk will users have to re-download the app?

Quote · 27 Jul 2011

Yes, it should appear as update for the old version. 

I have already released the 1.4 version. If i change this in the projct and upload the new apk will users have to re-download the app?

 

Rules → http://www.boonex.com/terms
Quote · 28 Jul 2011

ps: after add lock site you must change file  res--->layout---->login.xml

 

find:

<EditText android:id="@+id/site"
            android:singleLine="true"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" />

and replace with:

<EditText android:id="@+id/site"
            android:singleLine="true"
            android:editable="false"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" />

if you not add:

android:editable="false"

 

application open screen keybord and checked site url where you can edit the field even though it should be blocked

dolphin-forum.pl - Polish support for Dolphin 7
Quote · 12 Aug 2011

You can also hide the site url:

 

Go to "../res/layout" and open "Login.xml"

 

Find

                                <TextView android:id="@+id/site_title"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:textAppearance="@style/MyDefaultTextAppearance"
                                android:text="@string/login_site_url" />
                               <EditText android:id="@+id/site"
                                android:singleLine="true"
                                android:editable="false"
                                android:layout_width="fill_parent"
                                android:layout_height="wrap_content" />

Replace with

                                <TextView android:id="@+id/site_title"
                                 android:layout_width="0dip"
                                 android:layout_height="0dip"
                                 android:textAppearance="@style/MyDefaultTextAppearance"
                                 android:text="@string/login_site_url" />
                                <EditText android:id="@+id/site"
                                 android:singleLine="true"
                                 android:editable="false"
                                 android:layout_width="0dip"
                                 android:layout_height="0dip" />

Quote · 4 Nov 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.