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: member variable becoming null
How to detect color of the center of camera streaming in android without OpenCV
Missing App Icon after modifying Manifest
Save Image from res/drawable to Image Gallery Android
SQL lite select for actual week (from monday till sunday)
how to get imageview height and width after pinch zoom?
How to properly create a customized animated drawable?
Android Backstack Management
how to get mobile number from my current Phone? it's display blank Mobile Number in Log. but when run on emulator its display emulator Number [duplicate]
Is it possible to have different label name of launcher activity & application name
script popup for android and iOS - for your device exist app, how?
Android border on a button difference between 4.4 and 4.0.3
Programmatically how to create Video in android
Separate favicon and android homescreen icon
Data loss while reading from Blackberry device file containing data sent from an accessory using the AOA protocol
Android - how to add a badge count to an application icon?

Categories

HOME
beautifulsoup
fabricjs
prism
webdriver
numbers
sh
permissions
cq5
square
bookmarks
python-multithreading
webix
p2p
openpyxl
why3
line
supervisor
magnetic-cards
pyramid
production
nodemcu
database-connection
selinux
jquery-ias
ios10.2
joptionpane
epsilon
siri
fat
finagle
aws-codecommit
paragraph
utorrent
classcastexception
jwplayer6
lubridate
openerp-7
apic
reason
sql-server-ce
reactivekit
loading
mongoose-schema
mcustomscrollbar
levenshtein-distance
install.packages
file-sharing
procfile
phpdbg
servermanager
nanoc
openal
clarifai
cnc
datamaps
convex-optimization
posixct
boxing
otp
trigger.io
choice
materialized-path-pattern
grails-plugin
segment-io
model-associations
delta
refinerycms
lz77
cycle2
asyncdisplaykit
ons-api
baasbox
alloy-ui
typeconverter
nsurlsessiondatatask
node-serialport
uvc
entity-framework-4.3
packet-sniffers
cocos3d
with-statement
codeplex
winginx
git-repo
android-usb
sphinxql
tlf
nebula
superscrollorama
android-sdk-2.3
idn
android-loadermanager
nokia-s40
web-farm
cakephp-1.2
saleslogix
os.system
infobright
promotion-code
winmain
uideviceorientation
addchild
strtod
java1.4

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