implementing code

Hello everyone, does anyone know where i can implement this code so that i can purchase a mobile module.

 

Code -->In WebPageActivity.java file, add:

1- 

import android.webkit.ValueCallback;

2-Inside the function "publicclass WebPageActivity extends ActivityBase" Add:

       

private ValueCallback<Uri> mUploadMessage;

privatefinalstaticintFILECHOOSER_RESULTCODE = 1;


         @Override

         protected void onActivityResult(int requestCode, int resultCode, Intent intent) {

         if (requestCode == FILECHOOSER_RESULTCODE) {

         if (null == mUploadMessage)

         return;

         Uri result = intent == null || resultCode != RESULT_OK ? null: intent.getData();

         mUploadMessage.onReceiveValue(result);

         mUploadMessage = null;

            }

        }

 

2.1. Inside "publicvoid onCreate(Bundle savedInstanceState)", Add:


        m_viewWeb = new WebView(this);

 

       public void openFileChooser(ValueCallback<Uri> uploadMsg) {

 

       mUploadMessage = uploadMsg;

       Intent i = new Intent(Intent.ACTION_GET_CONTENT);

       i.addCategory(Intent.CATEGORY_OPENABLE);

       i.setType("*/*");

 

       WebPageActivity.this.startActivityForResult(

       Intent.createChooser(i, "File Chooser"),

       FILECHOOSER_RESULTCODE);

 

       }

 

// For Android 3.0+

      public void openFileChooser(ValueCallback uploadMsg,String acceptType) {

      mUploadMessage = uploadMsg;

      Intent i = new Intent(Intent.ACTION_GET_CONTENT);

      i.addCategory(Intent.CATEGORY_OPENABLE);

      i.setType("*/*");

 

      WebPageActivity.this.startActivityForResult(

      Intent.createChooser(i, "File Browser"),

      FILECHOOSER_RESULTCODE);

     }

 

// For Android 4.1

     public void openFileChooser(ValueCallback<Uri> uploadMsg,String acceptType, String capture) {

     mUploadMessage = uploadMsg;

     Intent i = new Intent(Intent.ACTION_GET_CONTENT);

     i.addCategory(Intent.CATEGORY_OPENABLE);

     i.setType("*/*");

     WebPageActivity.this.startActivityForResult(

    Intent.createChooser(i, "File Chooser"),

    WebPageActivity.FILECHOOSER_RESULTCODE);

    }

Everyday is a new beginning.
Quote · 28 Apr 2014

You need to download the source code of the android mobile app from the boonex website if you have a license. If you import the project into Eclipse IDE you can find the file under /Main/src/com.boonex.oo.home/WebPageActivity.java

 

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 28 Apr 2014
 
 
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.