ViewPager with TextView - android

I have this application that is visible in the Gallery build in Android application. When I selected multiple images and press via "Share Application", the application I'm developing, the application starts and all the images selected are displayed in ViewPager to swipe between them.
On each page, I have an ImageView, TextViewandEditText. TheImageViewto display the image. TheTextViewto set the date (using date picker) andEditText` to set the title.
The problem is when i set the date or title on a certain and swipe to the next then re-swipe back the information i set is erased.
I want the information to be saved not wiped or edited due to a change on the next pages.
How can I do that?
I have the codes if anyone would like to see.

Related

How to programatically save website title and URL for speed dial buttons like opera or Firefox?

I'm creating a browser with a start page and edittext that that directs you to the actual browsing section of the app when a URL is entered. On the start page I also have 5 working static speed dial keys in a gridview. I have placed an add button which opens a dialog box with two edittexts, one for the title and one for the URL along with two buttons, create and cancel. After getting this far I'm stuck. I tried to add another Room database and tried to set it up similar to how I have my tabs but that didn't work at all. I think I need to somehow be able to dynamically add an image button that saves the website URL and title and possibly grab it's favicon. At this point at least the button, title and URL, and I can figure out the favicon later. Can anyone give me a little insight as to how this would work? I can post code if needed.

Adding options to mobile gallery?

Can we add any other extra options like set wallpaper or add any extra button to action bar for mobile gallery programmatically in android. In my application i have a grid View with num of images taken from mobile gallery.
When grid view item click it directly navigate to image location which is mobile gallery. I have done this using concept MediaScannerConnection.
Now I want to add extra option to mobile built in gallery.
Is there any possible ways to do this?
Thank you and sorry for my English.
You can use Image to set wallpaper. Similarly the image can be used as "set contact pic" or "set as app icon", then you will select the app you want to change its icon. change icon of any app and use ur own icon search this in google u have to write code for this..but this is hard...

Select picture from android gallery (not a camera picture) and user input text and save it to an app folder to be recalled in a new activity

I am trying to build an android app that on one activity "onClick" opens the native picture gallery and allows you to pick an image and store it in a folder within the app to be recalled and presented in a different activity. The same with user input text. A user inputs text in a textbox, "onClick" saves this text to be recalled later in a different activity. I have tried several different codes to make this happen and I get errors.
Any help with example code would be appreciated.

Changing the language in fragment is destroying the view

I have a MainActivity wherein I am inserting a fragment over it.
In fragment there is EditText, Button ,TextView , ImageView.
When i enter some text in EditText it shows the same in TextView. And when i click on profile-image default Icon(Image View) it asks us to upload image from sd card and sets that as Profile Image.
Before clicking on submit button if i go to settings and change the language to say Japanese then after coming back to my app does not refresh the same using Japanese text. And even image uploaded but not saved also disappears.
I have values-ja for the Japanese script.
I read about onConfigChanges method in Activity. I tried that also but that method is also not getting called.
I think you should read those article, then you can solve your problem
How to refresh activity after changing language (Locale) inside application
Changing Locale within the app itself

UI Component for Launching ListView with onActivityResult

I have this SearchMenuActivity that has a bunch of options the user can select. Two of the options fires an intent to a ListView where the user can select a value and then it reports back to the SearchMenuActivity. I also have another option like this except it allows the user to select multiply options. The problem that I am having is choosing a UI component that will launch the ListActivity and hold the results when it reports back via onActivityResult. I have come up with a couple solutions here they are ...
Solution 1
Use a button which default text is "Choose item a". This will launch the ListView and then when the user selects an item the text of the button will become the selection.
Solution 2
Use a spinner. The problem with this is that spinners do not support multi selection items. It would also complicate things because the items in the list view are being pulled from a server backend and displaying a loading message on top of the spinner would look ugly.
Solution 3
Have a clickable textview which default text is "Click here to select item". This will launch the ListView and then when the user selects an item the text of the textview will become the selection.
Right now I am implemented solution 3. The "Click here to select item" seems intrusive. Anyone have any ideas as to what is the best method to solve this problem?
Option 3 is the best
However it is not very nice for changing his choice. I think you must add a small icon to the right of the TextView that allows the user to re-select.

Categories

Resources