« first day (726 days earlier)      last day (2524 days later) » 

07:00
@AnshulTyagi Like ?
@PiyushGupta multithreading environment me hota h
like onCreate me define kiya

typeface_normal = Typeface.createFromAsset(getAssets(), "fonts/ufonts.com_cambria.ttf");
@PRB then kya hota?
ok
@Rahul ye bhi sahi?
user6043117
07:01
@Rahul Typeface ka multithreading me hota he? I really didn't know
abhi tester ko deta hoon pata karegi crash ka
@PiyushGupta hota hai re
1 web service me 3 level ki category aa rha h (root->main categoey-> subcategoey-> child category) ab mujhe 1activity me edittext ke click pe 1 list bnanani h jisme pehle main category ko show krwani h uspe click krne pr usi list me sub category fir uspe click krne pr child category fir automatic set hojqayegi edittext me. @AnshulTyagi @Kaushik
user6043117
@AnshulTyagi ok bad me kaha lagaya tune use?
@PiyushGupta object to use hota h
?
agar koi object synchronize na ho to
multi-threading me kya hoga
user6043117
ok got it..
user6043117
07:03
@AnshulTyagi be sale tere me to kitni WS call hoti he or kitne sare nested fragments he.. He na ?
@PiyushGupta haan ek screen pe 14-15
user6043117
OMG.. These are too much
@Prabhakar haan i think hashmap arraylist use hoga isme
Picasso vs volley image laoding
07:06
@PiyushGupta and image ki har row me hoti glide picasso
sabhi web service listview me data diplay kar rahi using images
koi listview 2 show kar rhi image koi 3 ek item me
@AnshulTyagi ha bhai wo toh pta h
manage kaise kru 1 hi list me
user6043117
@AnshulTyagi Oh.. tune sab kese handle kar liya.. Bhai bhai
wait maine kiya hai kuch kuch aisa but usme 2 hi the parent and child
@PiyushGupta Code se :P
puri app customized hai
single textview bhi
user6043117
Cool APK to share karo test k lie :P
weekend pe
pehle mujhe el cheez ka answer do
Interstitial ads hai
07:11
Hii guys
wo close karne par onResume call kar rha hai
gm to all
uska solution
@Prabhakar 1 hi listview hai
@Kaushik ha
07:13
ho gaya rehne dena
matlab 1 st category pe click kiya uska sub category aaya aur
category wala value replace ho gaya
ha
but adapter se kaise kru?
3 alag alag list view le lo aur visible gone karo condition k basis pe
3 alag alag adapter hoga
07:16
ok
@ShubhankGupta VGM
user6043117
@Rahul One que.. Jese server se 100 data aa rahe he? Mene 50 save kar lie means fetch karva lie.. Ab Net gaya.. To jab net aata he to muje 51 wale records he start karna he to kya iske lie SyncAdapter ka use kar sakte he ? Usse wo hoga?
@PiyushGupta nope sqllite
aur broadcastrecevier
@PiyushGupta don't you think, jab net aayega toh sequence may change, if additional data arrives meanwhile, that is 51th wala may be 60 par shift ho jaaye
user6043117
OK so net ke broadcast receiver me db me se last wala data fetch karva ke arraylist se compare karna padega? Or ya fir server ko koi flag send karu jis se wo muje 51 se data de??
user6043117
07:20
@DroidWormNarendra Yeah It may be possible
@PiyushGupta har jagah SyncAdapter mat ghusaao
bada kaam hota hai
FB jaisi app nahi banaani
ek ban gayi bahut hai :v
user6043117
FB jesi hi banani he bhai muje to :P
ye Offline apps k liye hota hai
offline thodi na chalaani hai jyada
user6043117
Yes Sir
Good morning to all
07:22
@Gorgeous_DroidVirus nice name :)
Good morning...!!!
@DroidWormNarendra thnks
Dev
Dev
@Rahul country code mil jata hai kya os se?
@Dev like IN ,US like that ?
07:25
I guess 91 is country code for India
Dev
Dev
+91, +1
like this
IN< US is locale
26
A: how can i get my android device country code without using GPS?

RawkodeYou shouldn't be passing anything in to getCountry(), remove Locale.getDefault() String locale = context.getResources().getConfiguration().locale.getCountry();

@Kaushik: kaise yaar
@Gorgeous_DroidVirus ka SAISHNAV
aavi gayo tu
07:30
@pawankumar adapter kaise set kiye ho dikhao
Dev
Dev
@DroidWormNarendra ye code ni deti
user6043117
@DroidWormNarendra ne mind ko bhaga diya he
@PiyushGupta nooooooooope
name change toh nhi kiya usne again
Is it fine to use
vto.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@Override
public void onGlobalLayout() {

}
});

inside adapter?
@Rahul @PiyushGupta
@DroidWormNarendra activity ka bolta toh haan bolta mai
user6043117
07:41
@DroidWormNarendra Adapter me he to fir interface ka use karke ho sakta he..
okay
koi link h?
user6043117
Link to dekhna padega bhai
mujhe layout ki width find out krni h jo list item m h
uske liye use krna h
@DroidWormNarendra bus itna sa hi?
choti baat
bina iske first time me width 0 aa rhi h
scrolling k baad sahi ho jaati h
07:43
maine bahut kiya hua hai for progress bar
haan bas itna hi
progress bar kahan se aa gya
uski bhi width find out ki thi kya?
yup
adapter me
okay
toh ye use krna pdega na
vto.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
??
don't know actually
07:45
ye bahut cheezo k liye kar chuka hoon mai
kaise kiya tha wo
adapter me
progress bar I think fixed kiya tha
initially kuch dena hoga
scenario aisa h...ki list item me ek recyclerview h, jisme dynamic no of items hain, maximum 3 honge
unki static width wrap content di h, but dynamically usme maxWidth add krna h, jo ki "screen width/3" hoga
usi ke liye recyclerview ki width nikalni h
PRB
PRB
@PiyushGupta FragmentActivity kab n kyun use karte hai
maine adapter me recyclerview.getMeasuredWidth(); kiya but usse first item wale recyclerview ki width 0 mil rhi h,
fir niche scrolling kr k upar aate hain again
tab sahi ho jaati h
@AnshulTyagi
07:53
@PRB support v4 library k time par
PRB
PRB
@AnshulTyagi actually my ques is whn to use FragmentActivity n whn Fragment
user6043117
@PRB FragmentActivity me se tum apne fragment call karva sakti ho.. Fragment is the part of FragmentActivity...
user6043117
U can open nested fragments from one activity
PRB
PRB
@AnshulTyagi login screen se login k baad Success fagment ko jana hai n in that fragment i have to show logged in user name and list of data
ok toh fragment ki parent activity kon si hai
wahaan send karne ka
PRB
PRB
07:58
aure i have only one main activty
ok login ko bhi fragment bana liya?
user6043117
@PRB main activity fragmentactivity se extends he ka ?
PRB
PRB
na AppCompatActivity
@PiyushGupta
@AnshulTyagi na re
toh wahi baat hai
problem kya hai
uske success se intent call hota hai na
PRB
PRB
see whts my scenario
login page hai.username n pwd enter k baad it will go to one fragment.there it ll show user name and list of data coming from server
08:10
yahi hota hai sab jagah Lol
user6043117
ok this is common scenario
user6043117
aage?
PRB
PRB
:\
what happened
PRB
PRB
aure login k baad user name wohi login page pe dikha raha hai
user6043117
08:13
login activity se he extends?
PRB
PRB
??
koi meri baat samajh nahi paa raha :( its so simple bt m getting confused ;(
you're making confused to us
go step by step
@AnshulTyagi @PiyushGupta bhai maine bhi kuchh poochha tha
user6043117
sahi pakde he
@PRB ??
08:16
@PiyushGupta Bhabhi ji Ghar pe hai? :P
chup be
23 mins ago, by PRB
@AnshulTyagi actually my ques is whn to use FragmentActivity n whn Fragment
PRB
PRB
@DroidWormNarendra kya hatta diye
@Rahul mene ek activity class banaya n uska xml.in that xml i hav 2 edit text n one btn.
after login it ll go to one fragment.in that fragment it ll show user name n list of data frm server.
so my doubt is where to put fragmentContainer bcz m doing fragmentTransaction.replace(R.id.fragmentContainer, fragobj);
agar m keeping this fragmentContainer in main xml then after logged in the user name is showing along with those 2edit texts n btn.
@AnshulTyagi @PiyushGupta
ab doobara mat pucchna :'(
08:21
@PRB ok an activity xml use FrameLayout
@PRB I misunderstood your question actually
and create on Fragment in that put 2 edit text n one btn.
on Click of button throught interface replace fragment from activity
got it ?
PRB
PRB
no
PRB
PRB
@DroidWormNarendra worm ka thodi na dimaag hota hai :P
08:23
:(
name change krna padega ab
2 mins ago, by Rahul
@PRB ok an activity xml use FrameLayout
ye sajjha
PRB
PRB
haan
kon samjhaaye inko
FrameLayout ko id fragmentContainer dena
confuse hai actvioty between fragmetn activity
PRB
PRB
08:24
haan
ab activity lunch hogi to
Fragment add karna first time
PRB
PRB
@AnshulTyagi chup raho beech mein aake fir se confuse mat karo :P
vo fragment me editext aur button rahega ye samajhha
?
PRB
PRB
ab activity lunch hogi to
Fragment add karna first time==>dynamically?
@PRB yes
PRB
PRB
08:27
ohh :(
ok
jise tum LoginFragment bhi bol sakti ho
@PRB you mean this?
2 hours ago, by DroidWorm Narendra
m too missing mind too much :)
mind = curiousMind here :)
@DroidWormNarendra mai yahi hu
miss mat kar
user6043117
@DroidWormNarendra bhai tu chup re
user6043117
tuner hi bhaga diya he
PRB
PRB
akhir worm hai sab ko daraa k bhagayega hi :P
@PRB there going to one problem if your first fragment is LoginFragment
ek kaam krte hn ek chhota sa session rkhte hain mujhe kosne ka
sab milkar koso
user6043117
Nahi Pura din rakhte he uske lie
kaam kb hoga fir
08:29
Hi guys
PRB
PRB
@Rahul ok
i need a help
kaam kon kart waise bhi? @DroidWormNarendra
PRB
PRB
@Dhaval U
@Dhaval @PRB krti hai kaam
:D
08:29
@PRB so use as the LoginActivity
user6043117
Sabse jyada kam @PRB krti he
lol @DroidWormNarendra
I am trying to post image from my android app to the ruby server, but its not happening. can any one help me out
and in second activity use fragments
PRB
PRB
haan wo to maine banaya hai LoginActivity @Rahul
08:30
ok
PRB
PRB
@Rahul ok after logged in i ll make that also an activity?
@PRB yes
see inside activity you add Fragment
PRB
PRB
ok then that very easy na :D @Rahul
hmm
08:32
@SantonuBuragohain how can we tell you problem when we dont know what have you done yet?
@PRB activity me orientation fix h
?
user6043117
@Dhaval Dhaval re Dhaval re tu Androididians ka Dhaval hua re
@Dhaval i have a imagename and image path from my device gallery, i have a ruby API where in m using carrierwaver ruby on rails attachment library to upload images to the server. i m not understanding how to post the image to rails server code
08:35
@PRB tumhe toh nhi bhagaya dara k
@DroidWormNarendra to ab bhaga de :P
@SantonuBuragohain in which form your server accept image
@SantonuBuragohain no idea about ruby on rails
base64 ,multipart or something else
uploadAvatar is the link, It has a Image file as parameter along with userId.. how can i post a file via android is my question
@Dhaval
08:39
MultipartUtility m=new MultipartUtility( requestURL, "utf-8")
@Rahul tag kiya kar answer dete wakt
m.addFilePart(fieldName, File uploadFile)
m.addFormField(userid,id)
m.finish()
try that way
@Dhaval usako puchha
koi mere question ka bhi jawaab de do yaar plz
scenario aisa h...ki list item me ek recyclerview h, jisme dynamic no of items hain, maximum 3 honge
unki static width wrap content di h, but dynamically usme maxWidth add krna h, jo ki "screen width/3" hoga

usi ke liye recyclerview ki width nikalni h runtime par


maine adapter me recyclerview.getMeasuredWidth(); kiya but usse first item wale recyclerview ki width 0 mil rhi h,
fir niche scrolling kr k upar aate hain again
tab sahi ho jaati h
@Rahul @Shvet @PRB @AnshulTyagi @PiyushGupta
...........
kya ye use krna pdega mujhe -
---- vto.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
in order to get the recyclerview width for the first time??
Dev
Dev
08:55
@Rahul
@Dev ?
Dev
Dev
public Integer loginUser(User contact) {
SQLiteDatabase db = this.getReadableDatabase();
Cursor cursor=db.query(TABLE_USERS, null, KEY_EMAIL_ID +"=?", new String[]{contact.get_emailId()}, null, null, null);
if(cursor.getCount()<1){
cursor.close();
return 0;
}else{
cursor.moveToFirst();
String password= cursor.getString(cursor.getColumnIndex("KEY_PASSWORD"));
if (password.equals(contact.get_passWord())){
String user_id= cursor.getString(cursor.getColumnIndex("KEY_ID"));
cursor.close();
return Integer.parseInt(user_id);
@DroidWormNarendra no idea
Dev
Dev
}
Dev
Dev
08:57
Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
@Rahul
db.query(TABLE_USERS, new String[]{colum1,column2},
or db.rawQuery("Select * FROM TABLE_USERS"
)
Dev
Dev
db.query(TABLE_USERS, new String[]{colum1,column2},
isme where query ?

« first day (726 days earlier)      last day (2524 days later) »