Giter VIP home page Giter VIP logo

Comments (13)

BreakfastSerial avatar BreakfastSerial commented on May 23, 2024 1

Hey mate, I've just downloaded that app and checked the AndroidManifest.xml (see AndroidManifest.txt, if you're interested).

I believe (again, I'm no dev), the issue you're having is, that the IDOS only expects sending data to apps that offer the following schemes.

<data android:scheme="smsto"/>
<data android:scheme="mailto"/>

from simple-notes.

Aga-C avatar Aga-C commented on May 23, 2024

It works on my Android 13 - I see Simple Notes among other apps. Can you provide more details about your phone?

from simple-notes.

ShadyMedic avatar ShadyMedic commented on May 23, 2024

I also have Android 13, my phone is Motorola E30. App version is 6.17.0 Pro (from F-droid).

Not sure what other details would be useful, but feel free to ask.

from simple-notes.

Aga-C avatar Aga-C commented on May 23, 2024

Maybe it is among other apps and you just haven't noticed it? I don't know what language you use, but for most languages the app name is translated (e.g. in Polish instead of "Simple Notes" I have "Notatki"). Please check by icon and the name in your language.

from simple-notes.

ShadyMedic avatar ShadyMedic commented on May 23, 2024

Nope, just double-checked, not there.

If that helps, I was trying to degoogle my phone and uninstall many google-related packages with ADB, but I don't think that is something that could intervine with this, right?

from simple-notes.

BreakfastSerial avatar BreakfastSerial commented on May 23, 2024

This also works for me already. I believe it also depends what the source app defines as a valid destination for their shared content.
For example, Simple-Notes shows up as a possible destination if I share the URL from Firefox. Can you verify if that works for you?

from simple-notes.

ShadyMedic avatar ShadyMedic commented on May 23, 2024

Hello. Yes, I can confirm that Firefox offers this app as a possible target for sharing. The popup that opens in Firefox looks different than what it looks like in the app where it doesn't work though.

How can the developer of the app decide which apps will be available in the share menu? Since I can see some really obscure apps in the app, I believe that the devepopers do not need to specify a list of exact package names that are supported 🤔

from simple-notes.

BreakfastSerial avatar BreakfastSerial commented on May 23, 2024

I am by no means a developer, but I believe this is achieved by the source app, defining an intent and a source MIME Type (e.g. text/plain). The Android base system then offers all target apps, that match these values in their intent-filter. See also https://developer.android.com/guide/components/intents-filters.

So I believe the source app you're attempting to share data from, attempts to send a MIME type that is not registered by Simple-Notes. If you wanted to, that could be easily reverse engineered, by checking the AndroidMainfest.xml of both apps.

But again - I am no developer.

edit: I just checked. I think Simple-Notes has an intent-filter for <data android:mimeType="text/*" />, so any MIME type starting with text/

from simple-notes.

ShadyMedic avatar ShadyMedic commented on May 23, 2024

That sounds like how it might actually work. And if it's so, it might be a key to solving this issue.

I don't know what MIME type does the app in question use when I want to share content out of it, but one of the apps I can select as a target is the Simple SMS App. So if we compare the lists of content types that Simple Notes and Simple SMS listens to, we will see which content type should be implemented in Simple Notes.

from simple-notes.

BreakfastSerial avatar BreakfastSerial commented on May 23, 2024

Kinda. I see Simple SMS Messenger uses <data android:mimeType="*/*" />, so basically anything ;)

text/* for simple notes makes sense, as it only processes text. What app, or rather what type, are you trying to export data from?

from simple-notes.

ShadyMedic avatar ShadyMedic commented on May 23, 2024

from simple-notes.

ShadyMedic avatar ShadyMedic commented on May 23, 2024

Thank you for putting so much time into a niche issue like this. So from what I undestand, the only thing that is needed is to make Simple Notes listen to smsto schemes, right?

Any idea what file would I need to edit in a fork of this repository? I know pretty much nothing about Kotlin and programming for Android.

from simple-notes.

BreakfastSerial avatar BreakfastSerial commented on May 23, 2024

You're welcome. I believe that would resolve your issue. Either patch the IDOS app to export to text/* or make SimpleNote accept smsto or mailto.

I have no idea, what kind of work forking and building this project yourself entails. Personally I'd try to get the .apk of SimpleNotes, take it apart with apktool, change the AndroidManifest.xml to also accept smsto and then repack the apk with apktool again.

I also just noticed that I've mixed scheme and mimetype in my previous comments.

from simple-notes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.