Solved

Show Shortlisted and data which is not shortlisted both in a single custom ListView in android?

Posted on 2016-10-12
2
26 Views
Last Modified: 2016-11-02
I am new to android development. I need to implement user shortlisting concept in my android app.

In my android app, I retrieve user details arraylist from database which I shown in a custom ListView. My ListView consists of shortlist button. On which, when I clicked, the user is shortlisted and saved in database table successfully and background color of that button is changed. But when I close the app and reopen it, my shortlist button does not shown changed background color.

In my app, I want to show both

1. shortlisted data with changed background color and
2. data which is not shortlisted by the user

in one ListView.

How can I implement this in my app. Please help me.

Thanks in Advance.
0
Comment
Question by:Apurva Matey
  • 2
2 Comments
 
LVL 16

Accepted Solution

by:
Chris Harte earned 500 total points (awarded by participants)
ID: 41841734
We will probably have to see some code. However, I assume you are changing the colour of the item with an onClick() method. Are you storing the colour change?
If it is stored is the onCreate()  method reading the value of the colour change?
0
 
LVL 16

Expert Comment

by:Chris Harte
ID: 41869845
OP never responded to a request for more information.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
add software to phone 13 116
android app- saved password.. 7 64
Reading emails from an Android 3 39
see android hidden files 10 22
Introduction This article is a continuation of Part-1 as evident from the title. Please visit this page (http://www.experts-exchange.com/articles/18706/Backing-up-personal-data-on-your-Android-device-Part-1.html) to read the earlier Part -1. If y…
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now