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

Multiple Dex Files Exception in Android Studio
Android ListView with edittext in items
VideoCast Sample App on Android does not detect cast device
Custom Android calendarView
Mobile user and Geolocation
Why Process is Restarting Automatically?
Why is using an implicit intent to start a service not safe?
Android webview video to play in mediaplayer
How to make Notification text Marquee in android?
Android ListView with two buttons set visibility issue
Reference Points To Anchor Points? (Newbie)
is there any way prevent filter from Google Play for S4 device only ?
Android : send sms with images (more smileys)
How Do Implement This In Android [closed]
Compound TextView Padding Issue
Column _ID doesn't exist error though it exists in table

Categories

HOME
beautifulsoup
phpword
microsoftgraph
porting
ggplot2
wakanda
redux-form
fftw
spring-data-redis
can
database-normalization
cakephp-3.4
tail
babeljs
x264
polling
mvc5
nfs
okhttp
arangodb
fosrestbundle
emoji
filechannel
supervisor
radgridview
coin3d
searchview
atlassian-stash
dreamweaver
asp.net-mvc-viewmodel
identity-management
oledb
asciidoctor-pdf
articulate-storyline
ksh
object-storage
draft-js-plugins
ckfinder
google-cloud-print
android-maps
underscore.js
browser-sync
event-flow
complex-numbers
jbutton
playstation-portable
contacts
android-maps-extensions
gnat-gps
pop3
password-protection
drupal-theming
pom.xml
flask-restful
magento-2.0.7
convex-optimization
cd-burning
pocketsphinx-android
juice-ui
atlas
actor-platform
dup
toast
contentcontrol
avisynth
video-player
vacuum
amiga
branch-and-bound
avahi
actionfilterattribute
public-html
infosphere-spl
execve
packet-sniffers
android-vibration
ssis-data-flow
iso-prolog
tweenlite
mobility
tinyxml
websphere-esb
multiautocompletetextview
conditionaltagsupport
hibernate-entitymanager
light
windows-phone-8-sdk
flex++
epiceditor
superscrollorama
faye
fusefabric
xcelsius
squishit
strtod

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