title: How Do I Import From 'com.gluonhq.impl.charm.down.plugins.android.*' For Custom PicturesService for Gluon Mobile
body: <p>I did not like how gluon <code>PicturesService</code> only gives you a javafx Image object when taking a picture or choosing from the phone's gallery, so after a lot of searching I ended up making a <code>FilePicturesService</code> by tweaking the source code. Instead, this service return a byte array for the image's JPEG file.</p>
  
  <p>This worked out fine for the IOS native code. I built my own FPictures.h and FPicture.m files and copied the IOSPicturesService code into my project to create my own custom service. Tutorial used to create custom services is <a href="http://docs.gluonhq.com/samples/gonative/" rel="nofollow noreferrer">here</a>.</p>
  
  <p>I thought that the android portion of this service would be the easy part. With the service interface already defined for the IOS code all I had to do was copy the <strong>AndroidPicturesService.java</strong> into my <strong>AndroidFilePicturesService.java</strong> and adjust the class name and return types. However when I tried to do this I got this error:</p>
  
  <p><code>package com.gluonhq.impl.charm.down.plugins.android does not exist</code></p>
  
  <p>Below are the two import statements that are effected by this.</p>
  
  <p><strong>AndroidFilePicturesService.java</strong></p>
  
  <pre><code>package com.gluonhq.charm.down.plugins.android;
  
  ...
  
  import com.gluonhq.impl.charm.down.plugins.android.FileUtils;
  import com.gluonhq.impl.charm.down.plugins.android.PermissionRequestActivity;
  
  ...
  
  public class AndroidFilePicturesService implements FilePicturesService {
  
      ...
  
      @Override
      public Optional&lt;byte[]&gt; takePhoto(boolean savePhoto) {
          ...
      }
  
      ...
  }
  </code></pre>
  
  <p><strong>AndroidManifest.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.multiplatformgluonapplication" android:versionCode="1" android:versionName="1.0"&gt;
      &lt;supports-screens android:xlargeScreens="true"/&gt;
      &lt;uses-permission android:name="android.permission.CAMERA"/&gt;
      &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
      &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
      &lt;uses-sdk android:minSdkVersion="4" android:targetSdkVersion="21"/&gt;
      &lt;application android:label="MultiplatformGluonApplication" android:name="android.support.multidex.MultiDexApplication" android:icon="@mipmap/ic_launcher"&gt;
              &lt;activity android:name="javafxports.android.FXActivity" android:label="MultiplatformGluonApplication" android:screenOrientation="portrait" android:configChanges="orientation|screenSize"&gt;
                      &lt;meta-data android:name="main.class" android:value="com.multiplatformgluonapplication.MultiplatformGluonApplication"/&gt;
                      &lt;meta-data android:name="debug.port" android:value="0"/&gt;
                      &lt;intent-filter&gt;
                              &lt;action android:name="android.intent.action.MAIN"/&gt;
                              &lt;category android:name="android.intent.category.LAUNCHER"/&gt;
                      &lt;/intent-filter&gt;
              &lt;/activity&gt;
  
              &lt;activity android:name="com.gluonhq.impl.charm.down.plugins.android.PermissionRequestActivity" /&gt;
      &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>How can I resolve this error? I am not sure where to even begin?</p>