Menu

#18 [Android] associate with MID-files

open
nobody
None
1
2014-10-09
2014-08-08
No

Currently opening a midi-file doesn't emerge MidiSheetMusic as an app to open with.
This is important when opening with a cloud app, e.g. Google Drive. A file is not in FS -> MidiSheetMusic can't find it. No association -> Google Drive can't give the file to MidiSheetMusic.
Volunteers to fix?

Discussion

  • Ferenc Hechler

    Ferenc Hechler - 2014-10-08

    Created a new activity OpenMidiStreamActivity and added it to the Manifest for the mime type "audio/midi":


    ..
    <activity android:name="com.midisheetmusic.OpenMidiStreamActivity" android:label="Midi Sheet Music">
    <intent-filter>
    <action android:name="android.intent.action.VIEW"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <data android:mimeType="audio/midi"/>
    </intent-filter>
    </activity>
    ..


    Attached is the class OpenMidiStreamActivity which basically useses a content resolver to get the content of the data (uri) given in the intent. On success the SheetMusicActivity is started with the given content.

     
  • Ferenc Hechler

    Ferenc Hechler - 2014-10-09

    A patched version was published and will be available in a few hours in the Google Play store: https://play.google.com/store/apps/details?id=com.midisheetmusic.patched
    As a test an attached "xxx.mid" file from the e-Mail client could be opened directly.

     
    • Anonymous

      Anonymous - 2014-10-09

      Ferenc, thank you very much, that's so great!

       
  • Ferenc Hechler

    Ferenc Hechler - 2014-10-09

    Attached is the complete patch (containing features 14, 16 and 18).

     
  • Ferenc Hechler

    Ferenc Hechler - 2014-10-09

    Opening midi files from Internet URLs (HTTP) is not possible, because this would need to add the Internet-Access right to the manifest.

     

Anonymous
Anonymous

Add attachments
Cancel