« first day (497 days earlier)      last day (2753 days later) » 

7:00 AM
@Roman hmm...then?
 
@Rahul yar map comperitor se sort kar rha hu but problem is 0,2,4,6,8,10 aisa aane ke jagah pe 0,10,2,4,6,8 aisa aa raha hai
 
issue is its not working with gmail and facebook and other app
but works fine with whts app messanger
 
Dekho me 10 item h aur screen pe 13 item fit hinge right @PiyushGupta ?
 
Yes right
 
To tumahe 3 item black add karne h
With alternate color
 
7:03 AM
@DroidWormNarendra
@Rahul
@PiyushGupta
 
Abb list tumahre list aur tumhe pata bhi item item black add karne h @PiyushGupta
 
to uske lie check kese karna he wo pata ni chal raha muje. can you pls show me in hastiebin ?@Rahul
 
@Roman startActivityForResult
 
can you tell what is the iisue
 
7:04 AM
I don't know, let me check it
 
@PiyushGupta list me dynamically add kaise karte ho
 
@Rahul ArrayList ki loop se
 
Just you need check tumane last color kain Sa add kiya h
@PiyushGupta vo tum nahi kar sakte ?
 
@Roman check this
9
A: Android: Share Image intent not working with Facebook?

ReX357So I figured out the problem. I was saving the picture to internal storage with getFilesDir() which put the picture into my apps sandbox and made inaccessible to the other apps. I replaced my code with the following: String file_path = Environment.getExternalStorageDirectory().getAbsolutePath(...

 
i did not get you
@Rahul
 
7:06 AM
Hi

can we make a copy of ArrayList so that by making change in copied ArrayList object, does not affect the origional ArrayList object.

here is the problem I am facing: http://pastie.org/10330635#1,7,13,16,49
 
@LuminiousAndroid yes you can
 
how, @Rahul.
I tried several ways but could not succeded.
When I make changes to Copied ArrayList object it automatically changs to origional ArrayList object
 
@Rahul I need to clear the notifications for notification id between 1 & 100. Is there any way to do this?
 
@LuminiousAndroid you can make the copy of arrayList
@DroidWormNarendra using notification I'd
You can clear the notification
 
7:10 AM
@DroidWormNarendra
i am getting image from my gridview
 
okay, do I loop for the notification ids 1 to 100, and clear them 1 by 1? @Rahul
 
check pastie
@DroidWormNarendra
 
@LuminiousAndroid use ArrayList.clone()
@Roman k
 
@LuminiousAndroid you can use Arrays.copy
 
yes I can make copy but how can we change the reference of objects.
check this :http://pastie.org/10330635#1,7,13,16,49
 
7:13 AM
@Rahul is the only way to clear the notificaitons is clearing them 1 by 1?
 
@DroidWormNarendra don't know
 
@Rahul k, np
 
@LuminiousAndroid first clone the list in new list
Then make the changes
 
@Rahul I tried same, I copied a Arraylist into other using addAll(), I made changes to this new Arraylist copued then it itself make changes to origional list.
 
@DroidWormNarendra
 
7:21 AM
@Roman still not working?
 
no
did you see pasite
 
@Rahul @Roman @DroidWormNarendra

clone is not working and Arrays.copy does not come along with ArrayList :(
 
is it bad practice to use static methods and varibales in code ? @Rahul @DroidWormNarendra
 
@LuminiousAndroid list.toArray()
Require in Arrays.copy
 
@Rahul help buddy
 
7:27 AM
@Erum kaun bola
 
@Rahul
can you tell
how to share image in any messenger using intent share
?
@DroidWormNarendra
 
mene apne code me bhut saare static methods bnaye hain tu client ne code dekh k kaha this is bad practice aur me ek method call kr k arguments pass krti hon us method wo method apne pass kuch fnction perform krta hae aur dosra method call krta hae dosre method ko wahi same arguments jo pehle method ko pass kye the wo pass krdeti hon is pe issue create kia hae
@Rahul
 
check this @Erum @Rahul
348
A: Why are static variables considered evil?

Jon SkeetStatic variables represent global state. That's hard to reason about and hard to test: if I create a new instance of an object, I can reason about its new state within tests. If I use code which is using static variables, it could be in any state - and anything could be modifying it. I could go ...

 
k code clean nhi ha
prj code clean nhi hae
 
7:30 AM
@Erum tumane vaisha kiya kyu Ki koi guide karne wala nahi tha
 
nops ab bta rhe hain
k issue ye ye tha client ne report kia
 
@Erum hmm
But project chal raha h na
 
yes but prj cancel krdiya hae code dekh k
 
Vaise bhi jo client code mage usako esi tarah ka code dene ka
 
k clean nhi hae
 
7:33 AM
@PankajSharma nahi hua
 
@DroidWormNarendra
 
btao static k ilwa singleton se krun kia ? model class ka singleton bna k
@Rahul
 
@Roman check this
2
A: Android: How to share image with text on facebook via intent?

Rithchard JavierTry with this private void initShareIntent(String type,String _text){ File filePath = getFileStreamPath("shareimage.jpg"); //optional //internal storage Intent shareIntent = new Intent(); shareIntent.setAction(Intent.ACTION_SEND); shareIntent.putExtra(Intent.EXTRA_TEXT, _te...

 
@Erum model class singletons kyu
 
because mene method model class me rkha hae
aur us method ko call krna hae
tu mene pehle static bna k call kia tha
ab static htana hae
 
7:37 AM
@Erum model class setter getter method rahata h
To tum usaka object bana ke use kar sakti ho
 
@Erum yes, model class should not have static methods
 
Java Beans
 
@Rahul @DroidWormNarendra how to post data of base64 string image to server one at a time
 
@ResearchDevelopment are you able to convert to base64 String?
 
yes
i have 10 image base 64 i want post data
 
7:39 AM
@ResearchDevelopment so, whats the trouble in sending it in a similar way to the other params?
 
@Rahul @AnshulTyagi hashmap ka comparator se sort nai ho raha hai
 
can we do this @DroidWormNarendra
 
Yes, We Can.
 
0
Q: Trying To Sort HashMap But Not Produce Correct Result

TufanI have a HashMap Which Has Unsorted values [{cols=2, row=2}, {cols=0, row=2}, {cols=6, row=1}, {cols=8, row=1}, {cols=4, row=1} , {cols=10, row=1}, {cols=2, row=1}, {cols=0, row=1}, {cols=8, row=4}, {cols=6, row=2}, {cols=8, row=2}, {cols=4, row=2}, {cols=6, row=4}, {cols=2, row=4}, {cols=10...

 
@DroidWormNarendra i amsending it using Soap web service i have made it in JSOn format
 
7:40 AM
@ResearchDevelopment yes, thats fine
 
@Tufan number sort searchar
 
when i post it then it tell image cant be serlized actully that Json format is not strilizing
how to fix its
how to serlize its
 
ye kya hai @Rahul
 
@ResearchDevelopment are you sure you converted it to Base64? or is it in the byte array format
how r u converting it to Base64?
 
@Tufan hasmap me number h
 
7:46 AM
nai na ...key values me stor kiya hai use
 
Vo key kya return karta h
 
no success :(
 
integer
 
@DroidWormNarendra
 
@Roman yes
 
7:51 AM
that one too
 
not working?
 
@Tufan check answer
 
okay @Shvet
 
BRB, after lunch @Roman
 
class UserNotificationAdapter extends ArrayAdapter<UserNotificationRecords> now i m pasing arraylist to my constrcutor class and takig local arraylist in my adapter class .... and initializing in adapter constructor class is this wrong way ? @DroidWormNarendra @Rahul
@AnshulTyagi
 
8:03 AM
Noap why
 
ispe bhi isue raise hua hae k ye kaam aese nhi hota hae code wrong hae
and inside
 
Ha ho sakta h
Kyu Ki ArrayAdapter work lit list
You can add object directly
Like adapter.addAll and adapter.add
Aur getItem me already vo object return karta h
 
@DroidWormNarendra in base64
 
Esaka reason h ki jab adapter me add method and addAll method h to tum extra object kyu use kar rahi ho @Erum
 
tu phir main adapter ko arraylist kese pass krun ?
 
8:10 AM
ArrayList me add karne jarurat h nahi
Tum adapter.add method h
To vo list ke kaise adapter me add kar deta h
 
adapter.add method main obejct add krwaun ? ya puri arraylist bhi maintain hojati hae isme addAll main
private void displayNotification(ArrayList<UserNotificationRecords> userNotificationRecordList)
{
userNotificationAdapter = new UserNotificationAdapter(UserNotificationsFragment.this.getActivity(),R.layout.categoryitem);
userNotificationAdapter.addAll(userNotificationRecordList);

} @Rahul is it riht ?
 
Constructor me pass karne Ki jararurat nahi h
Tum addAll(list) ye kar salti ho
 
aese theek hae ?
 
Ha
Ha vo adapter me jasha list.get(pos) use kiya h vaha pe getItem(pos) use karna
 
@Rahul hi
 
8:18 AM
@Ramani hi
 
@Rahul recycler view with gridlayout manager me row 1 and 3 ke bich me sapce deni hai ..kaise hoga
item decoration se psble hai but how
 
@Rahul "java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $ " can u help me for this
gson exception @Rahul
 
@Tufan ek black item item add kar de
 
means a empty view kya
 
Yes
 
8:21 AM
dekh kisne answer diya hai but no idea how to implement
0
A: RecyclerView with GridLayoutManager

Avinash RBased on the type of bus choice, switch between GridLayoutManager, and StaggeredGridLayoutManager. For all the types, use a header view with just a steering wheel icon right aligned. For the seater-only type: use a 4 span GridLayoutManager use an item decorator for providing the spacing betw...

okay karta hu me
 
@Rahul kuch search kr k btao agr me listview item ko swipe krun tu right side pe ek imageview hae wo visible hojaye aur visible hi rhe jb tk ..... user left swipe na kre ya button pe click na kre ya second listview item ko right swap na kre
 
Gmail ke jaisha
 
@iAnum hi u there
 
gmail ka dekha nhi hae mene
link do ?
 
https://github.com/baoyongzhang/SwipeMenuListView
https://github.com/47deg/android-swipelistview
 
8:34 AM
@Rahul can we change font color in searchview in Actionbar
 
github.com/baoyongzhang/SwipeMenuListView isme koi issue tu nhi hae lib main easy saara kaam hojaega na ? @Rahul
aur iska layout kese bnaun ?
items k lye
 
@Shvet yes
 
not worked
 
i have tried style change but didnt work
 
@Shvet hint color Ki bat kar rahe ho
 
8:38 AM
yes and also textColor bhi
i need white textcolor
 
@Rahul link me jo 2 buttons arahe hain demo main delete k aur ek aur ye buttons layout me kese add kye hain ?
 
@Rahul kiya ni hua bhai
 
@Erum demo h na usame
 
yes demo ka hi poch rhi hon
usme buttons layout me kese add kye hain
 
ok
 
@Rahul
at least chechk
bro
 
@Roman ??
@Erum usame dekho SwipemenuItem h
 
0
Q: Image sharing with Intent share is not working properly

RomanI am trying to share image from my gridview using intent share,but the issue is I am able to share image only in whats app messenger,but when i try with gmail or facebook application,it is not working,there is no crash but image is not getting,following is the code..can any one help? Intent shar...

see here
 
hi @Rahul @Roman @Shvet @PiyushGupta paste.ofcode.org/dUJCZR4XQTPQDamWcCB5TS
 
8:43 AM
@Rahul
 
yes but is se positions wagera me isue tu nhi ayega ?
@Rahul
 
@Roman try with image/*
@Roman
Check binary content
 
Intent share = new Intent(Intent.ACTION_SEND);
share.setType("image*//*");
Uri imageUri = Uri.parse("android.resource://com.adult_emoji/drawable/"+imageId[position]);
Log.i("imageUri", "" + imageUri);
share.putExtra(Intent.EXTRA_STREAM,imageUri);
startActivity(Intent.createChooser(share, "Share Image"));
did that way too
but not working
 
hello all i am integrating twitter login fabric and also facebook login using fbsdk but when i added booth button in xml at that time i am facing inflating layout
android.view.InflateException: Binary XML file line #44: Error inflating class com.twitter.sdk.android.core.identity.TwitterLoginButton
any one have idea ?
last is xml code
 
@Rahul dependencies add krne k bad red arha hae import nhi kr rha hae
 
8:52 AM
@Roman did you check the link
 
@Erum ibin.co/2B4i3wVkLdAQ hello how to design that last button.image in half layout and half outer
 
@Rahul hey
 
@Michel have u worekd on Saop for sending complex data
 
@ResearchDevelopment nope dude
 
or u know how to serilized base64 String in android
 
8:54 AM
i have reslved parse date issue
@rahul
 
yes @Rahul
 
@Shvet
 
yes
 
@Shvet ek help karne bhai
 
bolo marathi thase to karish
 
8:58 AM
aa image check karne bhai
 
ok
avu banavu chhe? @PiyushGupta
 
Avu thai gayu che
pan tu j data jetla che ema to alternate color che
pan jema data nathi ema pan alternate color che to mare e karvu che
hu su keva magu chu padi khbr bhai tane ?
 
nope
confused
 
Error:(36, 13) error: cannot find symbol class SwipeMenuListView even have added dependevices
 
@Shvet Ok img ma ketla data che e k mane
 
9:02 AM
total 5 rows chhe
 
Ok. fine. have jo e five row ma alternate color che grey and white. ok ?
 
ane biji 5 rows empty chhe
ok got it
je empty rows chhe eno color pan alternate karvo chhe?
 
ha to j empty che ne row ene pan mare same alternate color apvo che j filled row che same
ha bas e j barabar samjyo
 
je empty row chhe e dekhay chhe?
 
na ema white space j ave che bhai
 
9:04 AM
kem ke generally apne jetlo data hoy etli j row generate karta hoy chhe
 
ha e j ne.. to pan mare em karvan che
to khbr che kai rite thase em ?
 
mane nai lagtu evu thase kem ke ios ma screen size fix hoy chhe
apne screen size fix nathi hoti
nahiter data ni entry vadhari dai ane show kari dai
 
@Shvet Pan dummy data add kem karu ? Jo e karu to mare app crash thay che
 
dummy data null rakh and try and catch no use kari ne getview method run karvya rakh
 
pan getView() method ma dummy data use karis ne to mare app crash thay che bhai me kari joyu yar
 
9:09 AM
error su ave chhe?
 
Out of Array
 
indexoutofbound vadi hase to
 
ha e j ne
 
e to array ni size ne lidhe hase
 
Pan e dummy data add karu chu ne etle ave che
 
9:10 AM
ek kam kar kaik dummy data api ne e view j hide kari de
 
means ?
 
how to serlize null value in android
 
je childview nu parent layout hoy eni visibility set kari devani and jyare getview method ma main data puro thai pachhi kaik dummy data add karvno je null na hoy and ene hide kari devano
@ResearchDevelopment null value will give nullpointerexeption
 
@Shvet how to serlize base64 String using KvmSerlizable interface
 
sorry dont know about it
http://stackoverflow.com/questions/9363119/displaying-empty-rows-in-android-listview

@PiyushGupta
 
9:18 AM
@Shvet
any idea about sharring image
via intent share
any idea about sharring image
 
search in google there is some example
 
no example is working properly
works only with wths app
startActivity(Intent.createChooser(shareIntent, getResources().getText(R.string.send_to)));
@Rahul
here what is send_to
??
 
@Shvet Accepted answer nathi bhai ek pan
 
i mean custom listview banavi ne try kari jovo @PiyushGupta
 
Pan ena thi thai jase ?
 
9:30 AM
Can anyone tell me this error com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine occurred while retrieving value. ??
 
yup
 
say @Shvet
 
i was telling to piyush
 
ok np
 
but it seems VM is not connected to internet
 
9:48 AM
@Shvet pala ma set to thayu ane divider pan avyu but alternate color nathi avyo
 
e alter native color set karvo padse ne
 
pan ema bhai position j nathi
 
Bitmap icon = mBitmap;
Intent share = new Intent(Intent.ACTION_SEND);
share.setType("image/jpeg");
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
icon.compress(Bitmap.CompressFormat.JPEG, 100, bytes);
File f = new File(Environment.getExternalStorageDirectory() + File.separator + "android.resource://com.adult_emoji/drawable/"+imageId[position]);
try {
f.createNewFile();
FileOutputStream fo = new FileOutputStream(f);
fo.write(bytes.toByteArray());
} catch (IOException e) {
e.printStackTrace();
 
are bhai getview method ma karay
 
@Shvet
can you tell
what is
mBitmap here
?
 
9:50 AM
@Shvet ema to already karelu j che bhai
 
to to thavu j joi ne
 
ema j filled items che ene to thay j che. empty mate nathi thatu
etle to custom listView ne set karvanu kahu chu
@Shvet to k solution have
 
@Shvet really? coz it works fine in one app
 
@AnshulTyagi check out response first if you get full response then check code you may have some error handling left
 
9:56 AM
@AnshulTyagi
 
Yes @Roman
 
any idea about sharring image
via intent share
any idea about sharring image
tried all example
 

« first day (497 days earlier)      last day (2753 days later) »