[Q] [Help] Fake image_capture intent by selecting photo from gallary - Android Q&A, Help & Troubleshooting

Dear Xda-Developers,
My friends and I are having a bit of fun with the app 'Happening' and i thought that it would be great to select images from your gallery instead of taking it.
So what I actually need to know if there is a way to fake the image_capture intent and replace it by a selected photo from the gallery.
I have tried using the xposed module 'Complete action plus' to add an custom action to the image_capture intent but without any luck.
Is there a way or an app that allows you to do so?
I am fully rooted with custom recovery and Xposed installed on kitkat.
I have a bit experience with Tasker so if there is a way to fake an intent with that I would love some help.
Yours,
Mikhail

Related

[Q] need help about default intents for sytem apps in android

i am an app developer with few apps already in the play store. i am currently in a project in which i need to make an app that functions likes the launcher apps. for example if i click a button named camera the default camera app should start,or clicking on setttings button should start default android settings activity.
i am having a big trouble in finding the default intent codes for the system apps.
actually this is what i meant to start the default camera app we do
Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
startActivityForResult(intent, 0);
i want the intent actions for other system apps. googling doesnt brings me to a correct solution.stack overflow doesnt helps much too.
could someone help me in this or give me a link to the source were i could find it..
thanks
i am still waiting for a helping hand.

Camera: Burst Mode pictures after wipe/new ROM

So I have been using the burst mode option on the S5 camera quite regularly to get that perfect shot of lightning or to catch the waves crashing in on a lake, even to get some action shots of my kids. One of the great things about this feature I found was the ability to play them almost like an animated gif right from your gallery so when showing off some of my pictures I could play them for people.
After wiping and installing a new ROM, it seems the association between these pictures has been lost. The pictures are still there, but the "play" feature has been lost. If anybody out there has any experience with this and found a way to get the pictures to re-associate with each other so they can be played again and could provide me with their solution that would be awesome.
Thanks in advance, and I completely understand that wiping and installing a new ROM may have lost that "play" option forever with the older photos, but I'd like to at least try.
Custom ROM: XtreStoLite 1.3a G900T UVU1BNG3
Kernal: 3.4.100--KT-SGS5-KK4.4-TW-G900-08.04.2014--ktoonsez #2
First you should make an effort to see if that "feature" is present in your new ROM. There is no reason to necessary expect it to be there. Make some new brackets (burst shot sequences) and see if they play he way you want. If they don't and there is nothing in the settings menu to toggle such an option, it would be reasonable to conclude that it isn't a feature in this ROM. In which case you will have to go without the feature, revert to your previous ROM or look for a third party app that may add that feature.
If the feature does work for new brackets, then look for an "import" feature in your gallery app. Failing that ensure that your old shots are in the same directory as the new brackets. If not, then move the old ones to your the new folder that the system uses and then do a media scan.
As a last resort, you can try going to the application manager in the settings menu and clear the cache and data for the gallery app. This will reset all settings and after the system rescans the media folders (after a reboot anyway), it may index all of your brackets.
.
Thanks for the reply. The new ROM has burst mode, but the wipe seems to have killed to any connected indexing of old pics. Tried all your suggestions, nothing got me where I wanted to go.

How to create a limited ROM

Hi Everyone,
I'm working on a project on android tablet, and I need to limit some android and device feature.
We wrote apps and specific launcher which can intercept a lot of intent to limit access, but with newer version of android (since kitkat)
our solution doesn't work anymore, and the user is able to quit the specific launcher or the launched app.
I need some advice, before developping a limited ROM.
Specs :
1 - Disable device action (LongPress on switchOff)
2 - Disable message notification (Low Bat, SignalLost, ...)
3 - Hide the navigation bar
4 - Preload apps / Remove some apps
The limitation, is justified by the fact that human mistake shouldn't fail the device and the running apps
For the points 1 and 4. I read some tutorial that mention how to reaffect actions for a keycode, and which apps can be deleted in system/apps.
I need your help for point 2 and 3.
Thanks
XDArnaud
For #3, one easy way is to disable SystemUI. This will get rid of the status bar and navigation bar, and disable recents. It may also solve #2, though I'm not 100% sure.
Just make sure to DISABLE SystemUI (i.e. from Settings->Applications), don't delete it. Disabling will stop the app itself from starting but allow it to be available for other apps which need it to exist. Deleting may cause your device to fail to boot.
Thank you so much kived, thats a good hint you gave me
I will test this in the few days, and try to disable this automatically after boot.
After that I'll just have to limit access to settings app to avoid user to enable it.
Will I have to deodex the ROM and replace the default settings.apk by mine ? or just adding settings.apk in app and android will launch mine.
Thx
XDArnaud

Please help with app shortcuts on home screen!

I know that there are much tutorials and forum threads about this, but I couldn't find anything helpful for my case.
I'm customizing a ROM (AOSP 4.4.2) and need that some third party apps appear on the home screan each time I reset the device to default - just like phone app or stock browser.
So I'm not developing new apps where I could resolve it with permissions in the manifest and intent in the main activity - this are already compiled third party apps and as I need the possibility to update them through the market I can't do reverse ingeneering and editing them.
I would be thankful for any help.

[MOD][XPOSED][GrindrMod](NEW!!)

New and improved GMod!
Custom location picker, inbox filters, backup/restore chats, bulk chat erase, grid layout, profile history, and more!
Please note that each release of GMod is specifically tied to a particular range of versions of the app. Each release will be guaranteed to function only with the specified versions of the app.
This release is compatible with version 5.6.0 - 5.13.2 (Skipped 5.12.0)
FEATURES:
Custom location picker with favorites
Optional persistent statusbar notification
Selectable 2, 3, 4 or 5-column grid layout
Individual control over notification sounds
Retain chats from blocked profiles
Option to show social media icons on the profile bar (long tap to copy username to clipboard)
Smaller "send location" button to prevent accidental sending location
Send on SHIFT+ENTER in chat text field (for WifiKeyboard)
Optional GPS Accuracy overlay on cascade
Darken the bottom button bar in chat view
Double-tap to clear text field in chat
Map overlay option on cascade*
Option to replace "Fresh Faces" with Profile History (long-tap "profile history" to clear the history)**
Bulk chat erase***
Undo the last cascade refresh by long-tapping the home tab (not for Xtra with unlimited cascade!)
Advanced inbox filters: filter by online users, received photos, blocks, search term, has profile photos, ads, one-sided chats
Received photos indicator (camera icon) option for chat inbox (tap on icon to open received photos)
Option to set the minimum GPS accuracy level to avoid registering a precise location
Option to disable sending Taps on single-tap (Prevent sending accidental taps)
Sort Cascade, Favorites or Explore page by online users (show online users first)
Remove photos sent by other users by long-tapping the photo in the chat screen
Long-tap social media icons to display username and copy to clipboard
Disable automatic deletion of older chats (truncate chats)
Disable smooth scroll to top for chat inbox (get to the top more quickly)
Inverse filters allow you to filter by "not blocked" users as well as users who have sent/received photos
Custom notification sounds. Tap the "Android" selection to open the Ringtone Picker.
Bulk tap erase (long tap on inbox tab while viewing taps)
Backup/Restore chats locally or to Google Drive
Disable Fresh Faces
Delete conversation from chat screen
Auto-generate profile display names for blank profiles
*NEW* Show message count on Inbox tab (can be disabled in module settings)
*Tapping on the GPS Accuracy text will display your current location as an overlay in the upper-left corner of the cascade.
**To view profile history, replace "Fresh Faces" with Profile History in module settings. Clear the profile history by long-tapping on the "PROFILE HISTORY" title.
***Long-tap the inbox tab to bring up a dialog giving you the option to bulk-erase one-sided chats before a certain date. You can also clear ALL chats at once. Bulk chat operations will respect currently set inbox filters.
Like my work? Please consider donating!
NOTE: This module does NOT unlock any paid features!! It does NOT allow you to view more guys than what your subscription allows. It merely fits more profiles on the display at once by increasing the number of columns
in the grid.
Works for both free Grindr and GrindrXtra.
Disclaimer: This module is neither affiliated with nor endorsed by the official Grindr app. It is provided for free with no warranty of any kind. Use at your own risk! I am not responsible for lost chats, user data, or any other problems incurred from the use of this module. GMod does not collect any personal information nor does it display advertisements of any kind. No revenue is generated or collected from the use of this software.
[Reserved]
Are you the same guy who made the old grindrmod?
How this work?
It's good like "old" version?
So far works great, thanks! Is there anything new we should be aware of coming from the other version?
A couple of things :
- I do notice that not all profiles with chats have the orange border.
- would it be possible to add swipe across screens (I think previous version of app or mod had this)?
Thanks and great job!
Everytime it's opened, it can't get a location as 'I have no Internet connection' apparently, when obviously I have.
willysmith said:
So far works great, thanks! Is there anything new we should be aware of coming from the other version?
A couple of things :
- I do notice that not all profiles with chats have the orange border.
- would it be possible to add swipe across screens (I think previous version of app or mod had this)?
Thanks and great job!
Click to expand...
Click to collapse
There is a paid feature now which too closely matches the active chats border, so it has been removed.
GrindrGuyNYC said:
There is a paid feature now which too closely matches the active chats border, so it has been removed.
Click to expand...
Click to collapse
The mod introduced that far before the app did. One might argue that they took it and monetized it from @GrindrGuy. Does this mean that if the app starts mimicking other features introduced by the mod to monetize from them that the mod will just start taking them away? Nah, I'm against this move... You and GrindrGuy ultimately decide, but I wanted to share my two cents.
willysmith said:
The mod introduced that far before the app did. One might argue that they took it and monetized it from @GrindrGuy. Does this mean that if the app starts mimicking other features introduced by the mod to monetize from them that the mod will just start taking them away? Nah, I'm against this move... You and GrindrGuy ultimately decide, but I wanted to share my two cents.
Click to expand...
Click to collapse
If you want to get "super technical" about it, this feature was introduced years ago in the original app but taken away around v3.0.
EDIT: Since I do not have Grindr Xtra, if someone would like to actually send me screenshots of what this feature looks like, I may be able to re-work it so that the module provides a similar feature that is not a direct replica of the paid feature.
I found a bug.
If i see a fresh face and hi back, module ask ne to "undo last refresh"
GrindrGuyNYC said:
If you want to get "super technical" about it, this feature was introduced years ago in the original app but taken away around v3.0.
EDIT: Since I do not have Grindr Xtra, if someone would like to actually send me screenshots of what this feature looks like, I may be able to re-work it so that the module provides a similar feature that is not a direct replica of the paid feature.
Click to expand...
Click to collapse
Oh, wow - didn't know that! Here I thought @GrindrGuy was the genius behind it!
Don't have Xtra, but something to bring back that function making it different enough might be to have a little circle with counter in it: currently app gives you a yellow circle with the number of new messages. You could play with that idea: just a yellow dot if there are viewed messages, or include the number (?).
Along the same lines, I have a suggestion: In my area you often get a few users who don't upload a photo and you just see the generic black profile pic with no user name. Would there be any harm / Would it be possible to give those profiles a random name (user1123) so as to know which user is which?
I'm still used to swiping left/right to switch between profiles and inbox. It's annoying you actually have to tap on those now. Dunno if you can revert that behavior.
Say you're chatting with someone and you want to go back to "nearby" view. you have to go back and then tap on "nearby". It might be interesting to have that navigation bar with nearby/inbox/favs persistant throughout the app, with it autohiding and showing back up when you scroll down. This way there's an easy way to always go back to home, and we also always see if there's a new message notification.
Another suggestion I had way back when was to further customize this navbar: for example, I'd love to order it to have first favs, then nearby, then inbox, and being able to swipe between the views. At this point it might also be nice to have the option of having the navbar either on the (new) bottom or (old) top.
Sorry for the long post! Thanks for your efforts, and it's also fun to think about UI design like this!
willysmith said:
Oh, wow - didn't know that! Here I thought @GrindrGuy was the genius behind it!
Don't have Xtra, but something to bring back that function making it different enough might be to have a little circle with counter in it: currently app gives you a yellow circle with the number of new messages. You could play with that idea: just a yellow dot if there are viewed messages, or include the number (?).
Click to expand...
Click to collapse
That's actually how the GrindrMod feature used to work, by "hijacking" the unread messages count to always display the yellow border regardless of whether the messages were unread or not.
willysmith said:
Along the same lines, I have a suggestion: In my area you often get a few users who don't upload a photo and you just see the generic black profile pic with no user name. Would there be any harm / Would it be possible to give those profiles a random name (user1123) so as to know which user is which?
Click to expand...
Click to collapse
That's a really good idea.
willysmith said:
I'm still used to swiping left/right to switch between profiles and inbox. It's annoying you actually have to tap on those now. Dunno if you can revert that behavior.
Say you're chatting with someone and you want to go back to "nearby" view. you have to go back and then tap on "nearby". It might be interesting to have that navigation bar with nearby/inbox/favs persistant throughout the app, with it autohiding and showing back up when you scroll down. This way there's an easy way to always go back to home, and we also always see if there's a new message notification.
Another suggestion I had way back when was to further customize this navbar: for example, I'd love to order it to have first favs, then nearby, then inbox, and being able to swipe between the views. At this point it might also be nice to have the option of having the navbar either on the (new) bottom or (old) top.
Click to expand...
Click to collapse
I'd rather not alter the UI to that extent since there may be some underlying reason for them changing it in the first place (one person suggested that the toolbar was moved to the bottom in order to encourage accidental clicks on the banner ads).
willysmith said:
Sorry for the long post! Thanks for your efforts, and it's also fun to think about UI design like this!
Click to expand...
Click to collapse
No problem. Thanks for the suggestions!
From today Grindr crash after some seconds, but no problem without the module.
How can I send a log?
Inviato dal mio ONEPLUS A3003 utilizzando Tapatalk
Take my money!
Looks like the app attachment was removed from this thread? I'm running 3.24.x or something just so Grindrmod will work. I'm being told when I open Grindr that I can only use that version for two more days until it is mandatory that I update to the latest version. At which point grindrmod will not work.
So, I'm looking forward to an update =_=
typhoonikan said:
Take my money!
Looks like the app attachment was removed from this thread? I'm running 3.24.x or something just so Grindrmod will work. I'm being told when I open Grindr that I can only use that version for two more days until it is mandatory that I update to the latest version. At which point grindrmod will not work.
So, I'm looking forward to an update =_=
Click to expand...
Click to collapse
The NEW GrindrMod is available in the Xposed repository.
LATEST VERSION:
GrindrMod 3.28.1.2
CHANGELOG:
Preserve block state with chat backup
GrindrGuyNYC said:
The NEW GrindrMod is available in the Xposed repository.
Click to expand...
Click to collapse
Thanks! I didn't know it was a whole new app there. The links to it seem dead in the xda app with the xposed modules.
@GrindrGuyNYC, is it possible to amend the photo viewer activity (when tapping on a profile picture) to always show the Android soft-keys? Every time I tap on a profile photo to open it, I have to swipe up to show the soft-keys to go back. Starts getting annoying really fast. Thanks.
PS. GrindrMod isn't listed on Xposed module library when I check in Xposed Installer (I use the one by DVDAndroid). I had to go to the repo online to download and install manually.
badelie said:
@GrindrGuyNYC, is it possible to amend the photo viewer activity (when tapping on a profile picture) to always show the Android soft-keys? Every time I tap on a profile photo to open it, I have to swipe up to show the soft-keys to go back. Starts getting annoying really fast. Thanks.
PS. GrindrMod isn't listed on Xposed module library when I check in Xposed Installer (I use the one by DVDAndroid). I had to go to the repo online to download and install manually.
Click to expand...
Click to collapse
I see it just fine in the official Xposed Installer.
@GrindrGuyNYC I'm on oreo 8.1 with systemless xposed.
The module won't show in notification bar even if I choose show always.
Another bug (on nougat too, with "standard" xposed) is if I swipe or open a new profile module ask me to undo last refresh.

Categories

Resources