android


My adapter doesn't work in the loop and my logcast


#Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_absence4, container, false);
list = (ListView)v.findViewById(R.id.absence4);
context = getActivity().getApplicationContext();
adp = new AbsenceAdaptor(context, R.layout.list_absenes);
absence = new DBAdaptorAbsences(context);
passe = new DBAdaptorPasseEntrer(context);
absence.openDBAbsence();
passe.openDBPasseentrer();
list.setTranscriptMode(AbsListView.TRANSCRIPT_MODE_ALWAYS_SCROLL);
list.setAdapter(adp);
adp.registerDataSetObserver(new DataSetObserver() {
public void OnChanged(){
super.onChanged();
list.setSelection(adp.getCount()-1);
}
});
Toast.makeText(context, absence.getCours("4", passe.getPasse()).size()+"", Toast.LENGTH_LONG).show();
if(absence.getCours("4", passe.getPasse()).size()<=0){
;
}else{
int i = 0;
while(absence.getCours("4", passe.getPasse()).get(i)!=null){
adp.add(new AbsenceObjet(R.drawable.ic_launcher, absence.getCours("4", passe.getPasse()).get(i), absence.getPlages("4", passe.getPasse()).get(i)));
i++;
}
}
return v;
}

Related Links

Android custum listview layout issue
Android JNI Using Pre built .so file in C Code
Open Activity with backwards to MainActivity in my app
Problems Adding TextView Programmatically Without Erasing Views in XML - Android
ndk-build: Header file of static prebuilt static library not found even on LOAD_STATIC_LIBRARY
Android studio. Module not specified after import
Android Java getId() name not int value [duplicate]
Ntlm code works on only Samsung devices
Webview - open links in external apps and browsers / android
alarm never triggers , as it should do android
Enabling GPS programmatically, causes the GPS indicator to flash while the GPS button is disabled
Android SQL lite table insert issue
Count Total Number of List Items in a ListView
Facebook Share Dialog in Android not showing content
Google anlytics is not working integrated in android app ,real time data is not showing
ShapeRender issue

Categories

HOME
windows
embedded
gridview
mstest
oracle-apex-5
pclxl
mips
bookmarks
frontend
boto3
heap
azure-iot-hub
red5
git-extensions
soci
pyramid
oledb
sar
googlebot
string-concatenation
beautifier
corpus
appirater
ms-access-2003
angular-translate
iis-express
lubridate
google-knowledge-graph
modernizr
projects-and-solutions
tasm
claims
knime
android-checkbox
plan-9
nanoc
opennms
configurationmanager
tinymce-3
tf
lightning
spring-data-couchbase
sundials
dt
pybrain
materialized-path-pattern
pytables
jquery-jscrollpane
delta
observablecollection
nss
aurora
nupic
realsense
exim4
crouton-os
microsoft-reporting
include-guards
poppler
dock
pax-exam
mod-proxy
rdflib
cwrsync
typeconverter
gamekit
code-documentation
grouping-sets
mass-assignment
packet-sniffers
metatrader5
formview
genymotion-call
paw
human-computer-interface
xml-dsig
dct
solace-mq
nebula
route-provider
argouml
redis-py
monotouch.dialog
correlated-subquery
database-create
httponly
box2d-iphone
winmain
lr
pylucene
clrstoredprocedure
socketserver
ruby-1.8
undefined-index
scrollbars
spread
lxr
feasibility
google-wave
asynchronous-wcf-call
sifr3
fail-fast-fail-early
fdf

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App