Recent API information on opening a camera in Android Studio (Kotlin) - android

This might come off as a weird post, because I don't directly want answers to how to fix this just yet. Over the past few weeks now I've been searching for good tutorials/information on opening the camera in Android Studio Kotlin with a button and having it ask for permission and all that jazz and allow you to take a picture and save it to the app, not the camera roll (I want to use the picture in several places of the app, and having it in the camera roll is not needed and also just takes up space). As of now I've tried several YouTube tutorials, and tried a few different ways that have been posted over the years but it seems most don't work and are severely outdated. I don't know if I'm implementing them wrong, which is very possible, I'm not well versed in Android Studio, and have been trying to learn. However most of the times the button just ends up not working, sometimes it doesn't do anything, sometimes it ends up crashing depending on which tutorial I use to help, or whatnot. I'm mainly here asking if anyone has any updated sources that I can look towards and at this point I will take anything, API Pages, YouTube, another Forum, anything that can point me in the right direction for this is insanely appreciated, the only thing I don't want is direct answers because I do want to be able to learn from this experience and hopefully be able to move forward with it without having to use a tutorial every time in the future, and direct answers aren't really going to help me achieve that.
I've tried to use several different ways to open the android camera, ask permission, and take a picture. So far the farthest I've gotten is it crashing, but most often it just doesn't do anything when said button is pushed. I even went for a more direct approach originally, eliminating the button as a whole and using just the navigation bar, but that went about as well as anything else did. Over this time I've tried maybe half a dozen or more tutorials and/or posts on another sites and stack overflow, and not only are each a different way, they're either many years old or using deprecated ways to complete the objective, and none seem to work. From this I would greatly appreciate just a link to a more up to date spot to learn how to use the camera.

Related

Flutter / App development beginner seeking wisdom, general direction

I am a student working on a senior project. It will be a very simple android app to organize karaoke. We are using Flutter for the front-end work.
My education has been in Java, but this is my first time working with Dart/Flutter, let alone on a smartphone app. I have gone through Get Started (https://flutter.io/get-started/), as well as 2-3 step-by-step youtube tutorials that help you build very simple apps from scratch. These have been helpful, but I'm still having trouble wrapping my head around the organization of a Flutter app. All tutorials say "everything is a widget", as if that should make things simple. And maybe it does in the end. But I end up with so many widgets, and I am getting confused about what widget should be inside what other widget and why.
Take a look at this picture (in the middle of the picture I have the widget-tree on display). I have a stack, two columns, scaffold, container, etc. Do I really need all of those? Is this normal for a simple login page?
What helped you get a grip on Flutter? Or maybe it is app development, rather, that I am having trouble understanding. Regardless, I am getting a bit discouraged. Any advice? Maybe there is a particular tutorial that helped you a lot?
Thank you for any help.
I like to learn by downloading and running examples from the developers (like these ones in their GitHub repo).
One thing I struggled with at first too from the whole "everything is a widget" idea was figuring out how to handle state / data changes appropriately. If you're struggling with that, this Google I/O video does a great job showing how you can better architect an app in regard to handling state in a reactive way. A bit more advanced, but from beginning to end they go from their opinion on the worst way to handle state changes to their recommended way(s).

Just starting Android Studio, I need guidance

I just decided today that I wanted to make a gallery app for my phone, pretty much just combine several features I like from different apps I've tried into one, perfect app, for me. The problem however is that although I know some java, took Programming 1 & 2 and currently taking AP Computer Science in high school, I have no idea where to begin. I roughly know and even less so understand the layout of Android Studio, but I can get by. I need help finding useful resources online to help me learn or even someone who is able to answer the probably many questions I have. I've watched some youtube videos and tried reading some tutorials but I haven't found anything that clears things up for me. I will ask a few questions now:
1.) I have no idea where to start or what to use to get the app to show images from device storage and micro sd card in a grid view. I have read things about using the RecyclerView to not use as much resources, and also something about Glide for better performance(I think thats what both those do, if I understand correctly) but I have no idea what to do with either or even how to use either.
2.) In the xml design portion I'm not good at navigating everything and understanding what I should use for what. I can make a good design in photoshop or other programs but I'm not sure how to actually take that vision and translate it into working pieces.
3.) Pretty much I just need help and will probably think of more questions as someone tries to answer those.
Thanks!
There are lots of good, free tutorials on the net. For example on the official Android Developer site: https://developer.android.com/training/index.html
- where you can find a lot of useful example code snippets, but there are other sites also - https://www.tutorialspoint.com/android/index.htm . It starts with the very basics and has lots of examples too.
Other non-free tutorials can be found at
udacity.com - Android Developer Nanodegree by Google
udemy.com
To reach data from your device storage or from your micro SD card you have to understand the principle working of content providers.
I do not recommend Recycle View, when you are a beginner, because it is a more complex thing than a List View (or Grid View). Start with these and then upgrade.
Glide is cool thing, because it saves you from a lot of useless coding and easy to use. On their GitHub page you find detailed instructions how to import it to your project - I recommend Gradle - and how to use it.
In my point of view, start reading one of the free sites patiently and than you are going to get answer for your questions, but it is very important to understand the basics.
I hope I helped! Sorry for my bad English, I used it a long time ago.

Create Pop-Up on camera while touching the camera using React-Native

I'm really new with React-Native and I'm not a front-end developer. That's why I don't know if it's possible to do what I'm asking.
I saw some apps, like Wikitude or NearestWiki, which have like pop ups in the camera while pointing with the camera to something.
I find it pretty amazing. I'm just wondering if it would be possible to make something like that with React-Native, but instead of giving the pop-up direct from backend, permitting that the user could "post" something and that other people that are near can see it with the camera. I mean, the user touch the screen, and can write something and when the post is saved, other people with the same app, can see the post of the first user in that place.
It would be quite funny. But I don't know if that's possible. And if that's possible, I would like to know, how.
Maybe someone knows a library or module that permits something like that. Or maybe someone can tell me how could I search for it, or give me some advice how could I start to write it.
I already solved the geolocation problem, that an user could open his camera, etc... but it remains the core, that the user could touch the screen and add a post, and then show it to other users.
I would be pretty glad if someone can at least tell me where to search.
From my experience of React Native so far I would have avoided it, but it seems there's a few others that think along the same lines. There's a similar question here that has some useful info, though it's a little out of date. A quick google search for "augmented reality react native" will bring up a few handy pages like this one.
Hope that helps, please let me know if you find anything that works!

Android App with HTML/CSS/jQuery. [How] Can it be done?

I know this has been asked before (did not find a straight forward answer) but can I (Or how can I) create and Android App using CSS/HTML/Jquery ?
I will not need to hook into native functions, such as the accelerometer, camera, or even the Toast Messages...I only need to create an app to show a list of names and some details when name is selected, therefore I don't know if it's worth learning to make my life more complicated for something like this.
PS: I need the app to work offline, otherwise I would have just made it with jQuery Mobile and uploaded it on a server.
UPDATE AFTER GETTING DOWNVOTED
Ok, so I get downvotes for this question, probably because it's been asked before, or maybe not, since he/she didn't take the time to write a reason...
Anyway, my point is: I did googled it and searched, but at this moment there are a lot of ads of websites and web apps that will help you do this BUT are they reliable, safe..do they really do the trick or it comes with bugs? That is why I asked the question, to see who used what and what was their experience with it. So yeah, you can downvote me for not trusting every ad and not taking the time to try out everything out there!
Well you can use https://software.intel.com/en-us/html5/tools to develop cross-platform apps. I used it to develop too. It is quite good but it only has one major issue: you can't use php. It also enables you to do on-device testing.

How to display RSS feed in app?

I don't normally whine this much, but this problem is really painful.
I've been searching for an answer since 4 months and I still don't know how to do this. I taught myself Android from square 1, but this is 1 problem I just can't get around my head.
I've asked at least 20 questions on SO, half got down-rated, the other half got no answer.
I've checked at least half a dozen libraries, spent days to try and integrate it in my app, but nothing has ever worked.
These were the most promising ones:
https://github.com/matshofman/Androi...Reader-Library
https://github.com/ahorn/android-rss
Took hours to integrate and I never felt real sorrow until I was unable to get anything to work.
If you know how to integrate an RSS feed in an app, please help me out! It's the one thing that's stopping my app from becoming the best in it's field. I reckon I would retain twice as many users if I could just have this. A working example is all I need. I've never even seen ONE. I don't how the News apps do it, it's practically magic for me.
I just want a Listview that shows the title, on clicking and item the description opens up. The rest I can do myself. Any working example will do.
Please Help.
If you haven't figured it out by now, I have made a simple library for this exact reason. The current ones are outdated and hard to customize. Try this one and let me know if you need help. The readme should walk you through basic set up.
https://github.com/ShirwaM/Simplistic-RSS
You may want to check out this new powerful RSS library I wrote:
https://github.com/Pkmmte/PkRSS
It's very easy to use, extremely customizable, and supports most feeds. For example, the following code loads a specific url in the background:
PkRSS.with(this).load(url).async();
And then you can get the list of feeds loading in that url:
List<Article> articleList = PkRSS.with(this).get(url);
You can then use that ArrayList in your ListView to populate it. Easy, right? :D

Categories

Resources