Please see the requirement below.
For instance, take Astro browser as a template. You might have seen context menu (with menu options such as Open as, Edit, Details and Send), popping up once an item in the list is selected. I want to implement a similar context menu, with different options, when user taps an email attachment irrespective of email clients. Ideally an option would be 'send via bluetooth', allowing the user to send the attachment straight away.
I looked for suitable APIs. However, there isn't any. This made me think about native programming. I am pretty new to those stuffs.
Could anyone throw some inputs on how to proceed?
Thanks in advance!
I want to implement a similar context menu, with different options, when user taps an email attachment irrespective of email clients.
That is not possible, sorry. You are welcome to implement your own mail client with your own context menu, though.
Related
I have an android app, which lets people share content from other apps to it. When it receives the shared data, it looks for the URL in the shared text and fetches the page and does processing on the data fetched. This is designed with specific purpose and not a generic for all apps.
It works fine, except that people have to click the share icon and then choose our app name. With accessibility we can reduce this work for the users. We are able to get the text displayed in the app.
Is it possible to get the content which we would get if we were to click the share button.
Or
Is it possible to trigger the share button and choose our app without disturbing the user in anyway
You could try that if it's only for 1 specific app. See question How to click button in settings using AccessibilityService? which clicks a button. This will not scale if you want to do this for more apps. You could however parse the text that is on the screen and look for http links and process them in a background service and then show a floating button like Link Bubble Browser
You can simply trigger the share activity of your app when you detect the text from the other app; but the question is how will you know when user is done typing the text?!
One way is you can place a system-wide floating button similar to Facebook Messenger and after user clicks it, the text can be shared. This will reduce number of clicks user has to do.
So,
1) Yes, its possible to get text content via AccessibilityService.
2) No, you cannot automate this action.
I gave up the task of sending a background email...i've tried a lot of things but none of them seems to work.
I'm working for my dad's delivery restaurant. My app is supposed to send an email to our servers containing the order of the user.
I tried to send an email after pressing a button (without the gmail interface), directly from my activity. I wasn't able to achieve this, so i would like to ask you any other way to do something like this.
If there's no way, i'm thinking about using the default gmail interface. In this case i'd like to know if there's any option to avoid the user being able to modify the email content, adress and subject, just look it, and press send button.
Thank you.
I am a newbie in android and trying hard to get on to it. I have searched a lot to find a better and reliable way to do what I want in my application. But didnt get lucky to find specific information. Can anybody tell me how to create a simple login page including form submission text input fields like name , address, age , sex and password and retype password etc. I want to have a "Create Profile" link on the Emulator Home Screen. Once the user clicked on it will direct the user to the profile creation page. I want to create login IDs or profiles many as I want, submit the form to my emulator, store them in a database and retrieve the information in a new page named "Profile Home page" by providing the password. So in a way when the user click on the Submit Form button then immediately a window will appear to type and enter the password. If the password is right then the "Profile Home page" will appear. Ofcourse the user should be able to edit their personal information. Is there any kind buddy who can help me out this? Any suggestion, ideas or clues are highly appreciated.
#Pervanee All you need to do is create simple activities and switch them based on the events. As andro said whatever you are asking for is a full application so break it down into screens and then find out how you can create each one. Plenty of code for what you ask will be there if you do some search. :)
I have a task to add a custom menu item to Android's built-in email client. This feature shows a custome item, such as "My menu item", in the menu when the user selects an email in the list view. When the user select this custome menu item, my java code should be called and retrieves the email information, such as sender, recipients, subject, body, attachment information, etc. to do custom job.
I am a BlackBerry developer. I can do this easily on BlackBerry. But I am new to Android. I need to know:
How do I add a custome menu item into the existing email client's menu?
How do I retrieve the selected email information in the event process?
Any response is appreciated.
Lawrence
You cannot do this in Android. You cannot alter another application, and even the native e-mail client counts as an application (everything does). Perhaps with a further description of what your menu item is supposed to accomplish, we can suggest a different strategy that fits in with Android.
I want to add a new menu or context menu item to existing applications like the Phone and Contacts.
For example, in the contact list, select a contact then you see "Send picture to this person" in the menu. Or from the phone app, while talking to someone, you see a button that says "Mark this call for follow-up" or anything like this.
I've looked at the source code but couldn't figure out how to do it.
The answer is: this cannot be done unless I write a modified OS and install on a rooted phone.