Android: How to allow user to set custom wallpaper in an activity? - android

I'm making a simple chat application which I want users to be able to set their own chat room background.
Which directory should I store the images and in what format ?
Will user be able to access and delete the file from some file browser app ?
The requirements are:
The selected image should be stored in the device (not uploaded to the database)
If new user logs in, and logs out. Then, the old user logs in again, the wallpapers should remain there.
Different chat room can have different wallpapers.
(Basically, the wallpaper feature is only apply to that device.)

Related

Ask the user for an input and giving an output based on it, but all gets output from a file that can be updated remotely?

So I'm making an app that asks users for their percentage and then give them a list of colleges that they can apply to. There's just one problem, the colleges release four different lists of cut-offs over a span of four weeks, and I want the app to be made in such a way that the I don't have to update a static list inside the app and make the user download the updated version but rather to make the app read that data from a remote location? Is that possible?

Is it possible to use another application(android) as a data source of any other application

We want to use an android app(not developed by us) as a data source for our app(developed by us). The user of our app will input the data, that data will be input to the app that we want to be our data source. There, data will be matched to the existing data in the app. If matched, the output will be displayed on the console of our app.
The question is, it is possible to use other android app into the app you want to build such that your user will not know that the other app is working in the background. How would that be possible?
Thanks in advance.

How to send information to users on Xamarin Android

assume I have an Android app written in Xamarin. Is there a way for me (i.e. the developer who publish that app on the Play Store) to interact with the users of my app by sending some information that is automatically stored in a local DB?
In particular, I want to send the users a new code that will change the behaviour of the app based on some previously coded logic.
For example, assume the app when loaded reads a table on a SQLite DB and looks at the most recent record. Say that when the app is installed and launched the first time, the first record has a value equal to 1.
The app reads that table every time the app is launched and based on the most recent record some behaviour of the app changes.
For example, at start (i.e. when the most recent record is equal to 1) the background color of my main activity is white. Then I send a new code to the users and say that the new record added to that DB table is 2.
The app now reads that record and changes the background color to green (because, when designed, the app has some switch case that changes the background color based on a given value, i.e 1=white, 2=green, etc.).
Is there a way to achieve this?
Yes you can.
First, when starting the application, you send a request to the server to synchronize your local database, so you will get always the latest values.
After that, you can load the views according to the information that you have, and apply your logic.

AS3 / AIR : How to make a dynamic text clickable (to load a saved progress)

Where to start...
I want to make a list of users in an Android application (in a dynamic txt box). When the user clicks their name as shown on the list, a button will appear so that his/her previous progress will be loaded. This is a Flash/AIR using Actionscript 3 code.
A broad question, but I'll offer some suggestions as a starting point.
You might consider Feathers for your UI components (clickable user names) and assuming user progress only needs to be saved to the local device, the Encrypted Local Store can be used as a simple means to locally store/save user progress.

Need to implement an image selection dialog of web-based images

I am developing a chatting/messaging app and I want to let the user select an image that they've stored online (i.e. picasa, photobucket, flickr, etc) which will be shown as part of the chat User Interface for anyone that is chatting with the user.
For example:
User_A is messaging/chatting with
User_B.
User_B will see a small thumbnail
image of User_A
User_A will see a small thumbnail of
User_B.
note: my web server is facilitating the text exchange between the two users.
At first I thought I would implement a photo upload function in my app and store the photo's on my server that each client would download. But then I realized that this is just re-inventing the wheel because there are now a lot of online picture sharing services.
So I want my server to simply store the URL of the images that User_A and User_B have selected - my app is notified of the URL's and downloads the pictures.
However, how is this implemented ? (Specifically, the image selection to obtain the URL in a userfriendly manner)
I've visualized the following userfriendly use-case...
user opens the options activity in my
app and pushes the button to select
an image to present in the chat UI.
an intent dialog is shown with all of
the possible image hosting services
installed on the mobile phone
(picasa, photobucket, etc) - but
local storage shall not be shown.
the image picker of the chosen
application is shown and the user
chooses the image.
the image picker closes and returns
the URL to my app.
If this can't be implemented, then my only alternative (that I know of) is to have users copy'n'paste the URL of the image they want to use - which is not userfriendly on mobile devices.
Any help is greatly appreciated.
That doesn't seem very difficult to me.
You can predefine which Image hosting services you wish to use.
Picassa and Flickr have their APIs AFAIK.
Present user with an option to choose from your predefined offerings.
When they choose, present the album of the user.
When the user ends up selecting an image, Image hosting will let you know about their URLs (You can download all images of that album and display them natively in your app, it will fetch information about them, like their URL with them, which will be easy to track)
Get the URL, and update the chat webservice about it.
Create the Chat activity in a way that it polls your webservice after a particular interval to check whether any one of both the users involved in chat have changed their images. If they have, load the new one.
I can detail you on this if you have any doubts.

Categories

Resources