Using the GPUImageFilter library in android - android

i m new to android and after having long search and also tried some java code for implement filter effect like the instagram so going with java code filter effect are working but too slow,so week before stop using that effect and after search found one library GPUImageFilter(on github) and start working on that library .The library for filter effect work very fine and produce some good effect also and i m able to implement in my project also but the next thing arise as after saving the image with filter in the sdcard ,if again i try to fetch that file from the sdcard it showing nothing but blank screen and if we look inside the device sdcard it showing as file is saved and opening in the gallery also.can any tell me how to overcome this problem.Here is the link where u can find the lib:
link:-GPUImageFilter library
any help will be very much helpfull to me.Thanks and waiting for reply.

Related

Pick multiple images in react native Expo with Imagepicker

It seems like Expo only supports imagepicker for selecting one image rather than multiple images. Is there any way to pick multiple images without ejecting expo or starting new react-native-init?
Did you get the link from Oleg working?
I found that library as well, updated the Expo/SDK version because it was to old but now I get the following message when trying to open the gallery;
Invalid filter option: '(null)'. Expected one of photos, video's or all. To me unfortunately it is unclear where to place this filter exactly.
enter image description here

Android Log - print link to line of code in c++ file

If you print in log (fileName:lineNumber) you get a nice link in Android Monitor that gets you to that code line when you click on it. This however does not seem to work for my cpp files. Is there a way to achieve this for c++ files?
Edit
I already know how to create string (fileName:lineNumber), but when it is printed in Android Monitor it is not a clickable link. The question is how to make clickable.
To appear as a clickable link in the Android studio Logcat window, (filename.cpp:filenumber) should be associated at least with one file that is part of your AS project:
You can see that some system logs are resolved to clickable links, while the others are not.
In the example above, Socket.java is part of public API, while PlaneSocketImpl.java is not, therefore AS does not show a link for the latter.

Android Multiple File Selector/Chooser Dialog

I have been scouring the internet for a simple easy to implement Android file chooser dialog that also has the option of selecting multiple files and returning a uri or string array with all the files selected.
Currently I use aFileChooser on github and it is according to me better than android-file-dialog. But neither address the issue of passing multiple files.
I am only an intermediate android developer but I think this would be something not so hard to implement by a pro.
I have looked at the code of aFileChooser and I think adding a check box to the file item would be the way to go but as far as code is concerned i am clueless and the developer seems he's not really gonna work on it in the foreseeable future
So in short im requesting for help to either add the select multiple files option to aFileChooser via the github or here, or maybe suggest to me a better dialog that does what i want.
I don't know any file chooser you could use, but I can show you how I made my own long time ago. It's actually pretty ugly, but it does what you ask for. You can select multiple files and an ArrayList<File> is returned via Intent.
So you could use it as an example of how to do it, and implement it yourself, if you really need it to (I wouldn't recommend you to use mine as it is now).
Here are the links to GitHub:
FileSelectionActivity.
Used layout file for the FileSelectionActivity.
MainActivity, on line 225 the FileSelectionActivity is started.
Below there's a screenshot of FileSelectionActivity, as I said, ugly.
"Go Up" goes to a higher level of the file hierarchy, there are two ListViews, one for directories and one for files. The files have checkboxes. When the share button is pressed, each item in the second ListView is checked to see if the checkbox is active or not. That's line 71 of the FileSelectionActivity file.
Anyways, I hope this helps you make your own file selector, or something.
Thank's to the answer above, I've made a simple library that addresses the concern. It not only passes an array of file paths but you can also use to select a folder.
It has thumbnails for image files
auto scrolls to last scroll position
will soon have language support for several locales
Here it is: https://github.com/tapaulo/Android-Multiple-file-Selector-Dialog

Android OCRSample using tesseract in Android

I want to make an application in that text is extracted and converted into another language like below app at time of camera is viewing like below screen shot of below app in play store CamDictionary
Below is the screen shot
Look in this camera is scanning and translating is done at real time can anybody suggest me example like this
I googled and find out one library
https://github.com/komamitsu/Android-OCRSample
but in that it suggested that
checkout http://code.google.com/p/tesseract-ocr/ and copy traineddata file(s) into "/mnt/sdcard/ocrsample/tessdata/" on your Android like this:
adb push ~/src/tesseract-ocr-read-only/tessdata/eng.traineddata /mnt/sdcard/ocrsample/tessdata/
I have searched out whole thing but there is no any file that should i have to put in /mnt/sdcard/ocrsample/tessdata/ can any body suggest me what is that file because i have checkout following link
svn checkout http://tesseract-ocr.googlecode.com/svn/trunk/ tesseract-ocr-read-only
but it contain so many source code for windows app also and there is like more than 700 MB
i want just andorid files that should i have to put in SDCARD please any body help me
is there any other solution than also please suggest me

android:fusion charts shows nothing

I am making an app in which i am using fusion charts and when i use "file:///android_asset/www/indexx.html" (which contains html and js code) and when it loads it shows page with no image and white background means no chart is displayed.Can anyone help me in this.Any help will be appreciated.Can anyone help step by step method to implement fusion charts.I have read the given page of stack overflow FusionCharts in Android? but it couldnt help me.
Thanks.
Have you put all the .js files(FusionCharts.js, FusionCharts.HC.js, FusionCharts.HC.Charts.js, and jquery.min.js) in the asset or www folder?
because generally in Web Apps when .js files are missing or the Path error is there at that time this problem arises.
Please share a code snippet!

Categories

Resources