Knowledge Base - How to create your own APP with Xamarin (Android) and RadaeePDF PDF reader

  1. Install RadaeePDF-Xamarin demo from: https://github.com/gearit/RadaePDF-Xamarin
  2. Launch Visual Studio and click on New Project: (Note: this was created using VS 2015)
     
  3. Create an Android project, select the Android then Blank App (Android). Enter a project name (TestRadaee):
  4. Now add the Radaee base project as project dependency:
  5. Now add the project dependency, right click on TestRadaee->Build Dependencies->Project Dependencies:
  6. And select RadaeePDF-Xamarin:
  7. Add the project reference, TestRadaee->References->Add Reference...-> and select RadaeePDF-Xamarin:
  8. Open TestRadaee's Properties->Android Manifest, and add WRITE_EXTERNAL_STORAGE (if needed) and set the correct Package name.
    (If you do not have an active license, please use "com.radaee.reader" as package name, to be able to test all the SDK features)
  9. Open TestRadaee->AndroidManifest.xml, and add the Radaee main activity to it:
     <application android:label="TestRadaee"> <activity android:name="com.radaee.reader.PDFViewAct" android:configChanges="orientation|keyboardHidden|screenSize" 
    android:theme="@android:style/Theme.NoTitleBar" />

     <activity android:name="com.radaee.util.PopupEditAct" android:theme="@android:style/Theme.Translucent"
    android:configChanges="orientation|keyboardHidden|screenSize"/> </application>
  10. Open TestRadaee->MainActivity.cs, and add the following code to open a pdf file:
    public class MainActivity : Activity
    {
         private RadaeePDFManager mPdfManager;
    protected override void OnCreate(Bundle bundle)
            {
                base.OnCreate(bundle);

                SetContentView(Resource.Layout.Main);

                mPdfManager = new RadaeePDFManager();

                mPdfManager.Show(this, "file:///mnt/sdcard/Download/pdf/Test.pdf", "");
            }
        }


 


For more details about the available configurations, please check Xamarin plugin configuration


 

Applies To

RadaeePDF SDK for Xamarin

Related Articles

RadaeePDF PDF, Xamarin plugin configurations

Details

Created : 2017-02-23 11:27:01, Last Modified : 2023-04-17 11:04:26