« first day (885 days earlier)      last day (1360 days later) » 

3:50 AM
here is the code i m trying to save arraylist in sharedpreferences but getting error
 
4:17 AM
@ErumHannan Have you googled ?
 
yes i have aplied code but evry time it gets crashed and i have added gson in libs as well
 
what have you applied to resolve this err ?
9
A: Gson 2.2.2 causing a stackoverflow on 4.2.1 only

Tom celicSo it turns out this is a bug as Erik Nedwidek pointed out. I took the easy route and downgraded gson from 2.2.2 to 1.7.1, everything works a treat now !

 
4:35 AM
@SweetWisherツ that issue resolved now there is another error
12-08 09:34:18.543: E/AndroidRuntime(14942): Caused by: java.lang.RuntimeException: Unable to invoke no-args constructor for class android.graphics.drawable.Drawable. Register an InstanceCreator with Gson for this type may fix this problem.
 
@ErumHannan Google again
 
my target is only to save arraylist in sharedpreferences
can u suggest me any sample code
 
but arraylist of custom objects
i wanna save objects everytime in a list and then store the same list in sharedpreferences
any sample code ?
 
checked the link ?
use hashSet
 
4:43 AM
ok and one thing more may i need toinclude ObjectSerializable class?
 
4:55 AM
i m adding Common-logging.jar file but still there is an error
@SweetWisherツ
 
yup @SweetWisherツ previously used the same and was getting lots of errors
thats why i changed
right now there are simply two errors
 
Yo!
 
5:24 AM
WrappedIOException cannot be resolved
 
5:41 AM
@SweetWisherツ any idea i m trying from 3 hrs but still no luck
 
5:54 AM
gm frendz
 
6:14 AM
Good Morning
 
6:32 AM
Hey @DroidDev
@Abhi Guud mwngss @NarendraPrajapati
@ErumHannan nop. sorry
 
this error is in SerializableClass have followed this tutorial github.com/apache/pig/blob/…
 
@SweetWisherツ Hi!
 
need help, wanna add screenshots in README.md file
 
@SweetWisherツ never done. You are talking about git, right?
 
If i write like ![alt tag](link-to-image) in .md file, will it add them ?
@DroidDev Yup
wondering if .md file works with html tags
whom can I contact then :/
 
6:44 AM
@SweetWisherツ ya, I think you are right. Try that way
 
what if i get something weird :P
Mrngsss @Shadow:)
 
anybody worked in google+ integration?
Good morning :) @SweetWisherツ
 
@SweetWisherツ don't worry, I am here... :P
 
@Shadow yes I did a sample
@DroidDev we can revert na ?
 
done in fragments?
 
6:46 AM
@Shadow Nop
 
oh k
 
issue?
 
@SweetWisherツ yes, you can edit readme.md anytime and commit again
 
@DroidDev lemme try then
noooooo..dint wrk :(
 
i referred this sample but i am doing in fragments. but how to use onActivityResult in fragments? but it can't use but any other way? @SweetWisherツ
 
6:49 AM
@SweetWisherツ try this or that
...just a quick google search
 
<img src >wrks :)
 
Great!
 
html tag works:)
 
 
1 hour later…
Sun
8:18 AM
0
Q: Date Time formatting

SunI am selecting date in datepicker and getting something like this is edittext: 13/12/2014 but i have to show like this: 13 Dec 2014 public class DatePickerFragment extends DialogFragment implements DatePickerDialog.OnDateSetListener { public EditText activity_edittext; public DatePickerFragmen...

 
8:35 AM
hi guys
 
@Sun it seems simple problem
SimpleDateFormat df = new SimpleDateFormat("dd-MMM-yyyy");
Date oldDate = df.parse(df.format(date)); //this date is your old date object
 
@maveňツ hi any event calendar sample
github.com/alamkanak/Android-Week-View like this way but i try this cant work because this android studio
 
@senti use studio
its better than ADT
 
@maveňツ now its not possible
 
8:58 AM
afternoon
 
9:11 AM
@Shadow get it in fragment activity na
wake up @Shadow
 
i done @SweetWisherツ in fragment itself
 
congo bingo :)
 
but when i sign out and once again login google plus, it's not working
 
@Shadow means? show code..
 
congo vaapus :(
 
9:17 AM
@Shadow How
 
0
Q: How to connect with Google plus after sign out android?

ShadowWhen I have google plus connected, it directly displays username and email. Till now it works good. I have logout button, when I click logout and then when I sign in, it's not connecting with google plus and not displaying mail and username. How to solve this? I am using fragments. My code is as...

@MysticMagic @SweetWisherツ
 
hi any event calendar sample
http://www.github.com/alamkanak/… like this way but i try this cant work because this android studio
 
@Shadow Problem with Fragment only ? or facing same in activity too ?
 
Try with `mGoogleApiClient.clearDefaultAccount();
mGoogleApiClient.disconnect();` for logout @Shadow
no connect there
 
i think in onActivityResult
 
9:22 AM
working in activity?
 
try to move onActivityResult in parent one
 
trying
activity it's working super dupper @MysticMagic
but i need to implement in fragment
 
hmm.. then don't remove that connect... try SW's suggestion..
 
debug n see what are you getting in 'OnConnected'
 
9:47 AM
Hi
2
Q: After app has been idle for hours, it crashes onResume, because resources are missing. How to solve via onTrimMemory

J. K.When my app starts, I load all the string data coming from the server in a hashmap and all the screens read from this hashmap in order to display button names, texts and screen titles. I count on this object (and a lot of other similar objects)'s lives to be maintained for my app to remain funct...

 
do not mass ping.. checking..
I never worked with onTrimMemory.. So giving two suggestions if you want
option 1: fetch data in onResume instead of onCreate
option 2: idle timeout of 1 hour.. After that exit idle app.
 
10:28 AM
0
Q: How to access method in fragment from different class?

droid_devI have navigational drawer and fragment for each drawer item. Now Under each fragment we have created multiple fragments using FragmentPagerAdapter. I've 3 drawer items as Home, Group and Feedback. Under Home, there are 2 fragments i.e My Profile and Logged so i've created a swipeable tabs for ...

 
still not resolved? :|
 
10:43 AM
nopes :(
 
10:53 AM
hi any event calendar sample
http://www.github.com/alamkanak… like this way but i try this cant work because this android studio
 
@MysticMagic where is lalit?
 
@droid_dev busy now a days :|
 
Is he available in any room @MysticMagic
 
Nope @droid_dev try pinging in Casual chat.. May reply if he checks SO and sees ping.
 
thanks
 
11:06 AM
:)
 
11:27 AM
@MysticMagic hello
 
Hi..
 
how's u miss
 
hi @NareshSharma there ??? need help
 
@maveňツ I am good. you?
 
@MysticMagic trying to be good :-P
 
11:41 AM
ok.
 
@Shadow done ?
 
@MysticMagic sir dard+work :/
 
take care + rest.
 
tanks :-)
 
2
Q: Automatic line wrap/return carriage in Zebra printers with CPCL

momoI am printing with a Zebra printer MZ 320 over bluetooth. I have some texts that can be wider than the paper and I want them to be printed in several lines. Right now, when the text exceeds the page width it is just printed overlapping the previous printed text on the same line. I want the printe...

 
11:55 AM
Can FB command help? @SweetWisherツ
 
@MysticMagic FB ?
 
12:49 PM
50-50 @SweetWisherツ
 
@SweetWisherツ what you can try is to get the width of widest character for your font size, normally that is "M"(I think). Then you can count the number of characters(including white-spaces), that you can allow in single line, based on page width. Can't you?
 
@DroidDev "W"
@DroidDev ya but no idea how to get that WIDTh
 
ulta M
 
12:55 PM
@SweetWisherツ I think you might need to waste some papers for that. Try printing 100 Ws on a paper, then 150, eventually, you'll get how many Ws you can print in single line and that's the limit of maximum characters in one line. Simple yet efficient logic.
 
wow Adi.. u r so smart :-o
 
but it wil change according to font SIZE and FONT
 
@SweetWisherツ if you aren't allowing a static font size of style, then I'm afraid, you are just hitting stone wall with cotton. (I think you got my point)
 
@DroidDev hahahah that why searching for some in-built functionality of that PRINTER only
if any command can help me
 
@SweetWisherツ printer usually has only one in-built functionality, "Print" :P
 
1:05 PM
:-o
 
1:27 PM
tc.. tata
 
@MysticMagic cee yaa!
@MysticMagic btw, if you see DroidDev, tell him, I want to talk to him...
 
 
1 hour later…
2:57 PM
@MysticMagic when u back pls ping me
 
 
5 hours later…
7:44 PM
posted on December 08, 2014 by Android Developers

h3 { font-size:20px; font-family:Roboto,sans-serif; font-weight:400; line-height:1.25em; margin-top:1.1em; } h4 { font-size:16px; font-family:Roboto,sans-serif; font-weight:900; line-height:1.25em; margin-top:1.3em; } ul.featurelist li { margin-top:1.3em; line-height:1.25em; } By Jamal Eason, Product Manager, Android Today we are excited to introduce Android Stu

 

« first day (885 days earlier)      last day (1360 days later) »