« first day (652 days earlier)      last day (198 days later) » 

4:10 AM
GOood Morning @Prince princii @Adi G!!
 
4:21 AM
Alone?? :(
 
4:33 AM
@TopCat You are not Alone :D
Good morning
 
Thank God :)
we two alone i think :P
 
lols
 
:D
 
gd mrng !!! @all
 
4:57 AM
hi @Prince
 
Helo
 
@Prince how to use countdown timer for current date time to event date time
 
@all Good Morning
 
@Ramani like ? can you show me snapshot ?
@JaiSoni Vgm bro
 
5:16 AM
hello GM
 
@Prince Good morning.. have a good day :)
 
@BhavinChauhan Vgm buddy
 
good morning everyone
 
5:42 AM
@Ramani i didnt get it
 
@Prince 17-05-2015 12:00:00 this is event date and current date (today) i want show the remaining year,month,day hour,min sec show
 
24
A: How to calculate the time difference between two time fields , with respect to the date changes

PrinceTime Difference is calculated by following code: long difference = date2.getTime() - date1.getTime(); days = (int) (difference / (1000*60*60*24)); hours = (int) ((difference - (1000*60*60*24*days)) / (1000*60*60)); min = (int) (difference - (1000*60*60*24*days) - (1000*60*60*hours)) / (1000*...

 
@Prince gm
@Adi gm
 
6:01 AM
@Prince long diffSeconds =(diff - (1000*60*60*24*diffdays) - (1000*60*60*diffHours) -(1000*60*diffMinutes))/ (1000); this is correct for second?
 
yes
@AndoMasahashi Vgm
 
@Prince but not show the second
 
6:19 AM
@any android dev??
 
6:40 AM
@Prince hello
 
@AndoMasahashi Hello
@Ramani its working code
 
@Prince just show for years, months and weeks
 
@Prince have you worked on Youtube API for android
i have some doubt
 
7:42 AM
hello friends, is there any library to get ISD Code in android ?
 
 
2 hours later…
9:21 AM
hello@ChiragPatel
 
long diffdays =(diff/ (1000*60*60*24));
long diffHours = ((diff - (1000*60*60*24*diffdays)) / (1000*60*60));
long diffMinutes = (diff - (1000*60*60*24*diffdays) - (1000*60*60*diffHours)) / (1000*60);
this is days,hours, mins
how to show the year weak months
@ChiragPatel ?
 
means ?
@Ramani
 
@ChiragPatel i show current date - eventdate
 
9:39 AM
@Shweta store in string.xml file and retrive it
@Ramani hmmm it was for days hours and mins only
 
@Prince ya its work correctly how to show year,month,week
 
10:06 AM
@Prince hie.. free to help ?
 
@User22791 hello
 
@AndoMasahashi hie
 
@User22791 @Ramani @AndoMasahashi hi buddies.. little bit work load
 
@Prince ok
 
@Prince okay.. no problem
 
10:08 AM
@User22791 yes tell me
 
@AndoMasahashi any effective pagination library ?
 
means what you need >
?
 
@AndoMasahashi I have a listview with populated data which are coming from server DB.
 
I want to implement pagination in that listview
 
10:11 AM
means you want to display like pages ?
 
yes
 
so use viewpager
thats best one and apply effect like page scrolling
 
viewpager for listview ?
 
no replace listview with viewpager.
 
Actually I cant replace the listview with viewpager it's a stickyheader listview
 
10:15 AM
can you show me image ??
 
@AndoMasahashi sorry cant show.It's a company product and cant reveal any detail or snaps before launch
 
ok
can you show me ruff sketch
?
 
ok.. wait
 
10:31 AM
@ChiragPatel thanx :)
 
@User22791 wc :)
 
11:23 AM
@User22791 when i am run app on Android 2.2 API 8 then its display text and icon on tabs but when i am run on Android 4.0 API 14 then its dispaly only text and if remove text then display image......... how to solve this
 
@GB_Bhayani are you using tab control for this ?
 
@GB_Bhayani have you implemented tab widget ?
 
@User22791 yes
@User22791 @AndoMasahashi look this pastie.org/9431454
 
@GB_Bhayani use custom one
to solve it
 
@GB_Bhayani have you used actionbar in your app ?
 
11:28 AM
@User22791 no...not use actionbar
@AndoMasahashi means??
 
make custome layout and inflate it and display both image and text @GB_Bhayani
 
@GB_Bhayani use custom layout for your tabview
 
@AndoMasahashi @User22791 any related example??
 
@GB_Bhayani addTab("More", R.drawable.ic_more, MoreActivity.class);
// method for adding tabs
private void addTab(String labelName, int drawableId, Class<?> clazz) {
tabHost = getTabHost();
Intent intent = new Intent(this, clazz);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
TabHost.TabSpec spec = tabHost.newTabSpec(labelName);
View tabIndicator = LayoutInflater.from(this).inflate(
R.layout.tab_indicator, getTabWidget(), false);

TextView title = (TextView) tabIndicator.findViewById(R.id.title);
 
@GB_Bhayani Search in Google :D :P
 
11:33 AM
@GB_Bhayani this is simple code and search in google
:)
 
@AndoMasahashi thnx .. :)
 
@GB_Bhayani wc
 
Hey any one worked on fragments ?
 
@Harish no bro
 
@Harish yes say
 
11:50 AM
@AndoMasahashi changing the customactionbar title according to fragment change
 
@Harish in custom what you did means inflating layout or just background color etc ?
 
@Harish are you using sherlock actionbar or compat actionbar ?
 
@User22791 i'm trying in this way guys @AndoMasahashi
 
12:08 PM
@Harish you have used no actionbar theme so just set text when your fragment replaced
 
how to retrieve result from Intent intent = new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA);
 
@AndoMasahashi where you are saying?
 
@Harish you have added header layout right
 
@AndoMasahashi Yes
 
tell me your app theme
@Harish
 
12:12 PM
@AndoMasahashi android:theme="@android:style/Theme.Light.NoTitleBar"
 
@Harish so no titelbar means you have to actionbar
 
@AndoMasahashi what?
 
so just set text when you are changing fragments.
@Harish
 
@AndoMasahashi yes here the problem is when i'm coming back from the other fragment to my main i.e. fragmentactivity the title is not changing.
 
12:14 PM
@AndoMasahashi do u have any example of cutom tab???
 
@GB_Bhayani i give you every thing
just google it
 
can someone pls help me how can i implement it using android which widget i need to cutomize ? facebook.com/download/633814626715655/BMI%20APP.pdf
 
method for creating tabs just create layout file and inflate it @GB_Bhayani
@ErumHannan wait
@ErumHannan hey what you want to know
 
@AndoMasahashi this code i put in on create method ?????
addTab("More", R.drawable.ic_more, MoreActivity.class);
// method for adding tabs
private void addTab(String labelName, int drawableId, Class<?> clazz) {
tabHost = getTabHost();
Intent intent = new Intent(this, clazz);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
TabHost.TabSpec spec = tabHost.newTabSpec(labelName);
View tabIndicator = LayoutInflater.from(this).inflate(
R.layout.tab_indicator, getTabWidget(), false);

TextView title = (TextView) tabIndicator.findViewById(R.id.title);
title.setText(labelName);
for single tab???
 
@GB_Bhayani addTab("More", R.drawable.ic_more, MoreActivity.class); this is method to calll for number of tabs you required
 
12:20 PM
actually which widget i need to customizze ?
 
if you need one then call it once if you need more then once then call it according to req.
@Harish
 
@AndoMasahashi how i can change title of fragmentactivity when i'm coming back to the factivity
 
and which widgets i will use so that user can enter his/her weight
@AndoMasahashi
 
@ErumHannan for first one search for circular and linear pressure gauge view
 
@AndoMasahashi using these gadgets it will auto detect user's weight ?
or may i need to enter manually
 
12:25 PM
@Harish navigateUp() method for back right just get name of that fragment and set text
@ErumHannan no man you just get view you have to make custom widget
 
@AndoMasahashi but it is not setting
 
@Harish show me that code
 
@AndoMasahashi i required 3 tabs
 
@AndoMasahashi i still did nt get what view i have to customize ?can somone give me any startup
 
@AndoMasahashi look this is this correct or not ?? pastie.org/9431563
 
12:37 PM
@ErumHannan three part first one circular gauge second measure tool weight third height
@GB_Bhayani yes correct one just call three times add method and make this globle TabHost tabHost = getTabHost(); get it in oncreate
 
ok this is clear till yet @AndoMasahashi and now let me conside first measure tool weight is there any scale or anything else that i can customize in android
@AndoMasahashi
 
@ErumHannan no there is nothing all things you need to customize so for that search pressure gauge in circular and linear view or in scale type in github you will get some lib or example now bye talk on this topic tomorrow
 
@AndoMasahashi i create for two tab look this code and tell me its is correct or not???? pastie.org/9431583
 
Bye all @Prince Tc ! :)
 
@GB_Bhayani man this written one you just need to pass parameters only
and call in onCreate method
 
12:50 PM
@AndoMasahashi can u pls modify my pastie.org/9431583 and post as pastie.orge
 
@GB_Bhayani i can t edit this
 
@User22791 bbye dear tc :D :D :)
 
@AndoMasahashi edit means... just copy my code and modify it and then past here pastie.org
 
@GB_Bhayani i know private TabHost tabHost;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

// sets tabs at bottom.
addTab("*****", R.drawable.ic_****, ****Activity.class);
addTab("*****", R.drawable.ic_*****, *****Activity.class);
addTab("*****", R.drawable.ic_*****, *****Activity.class);


}

// method for adding tabs
private void addTab(String labelName, int drawableId, Class<?> clazz) {
check this
 
@AndoMasahashi please use pastie.org for long code
 
1:00 PM
@AndoMasahashi addTab method code repeat 3 times right???
 
1:17 PM
@AndoMasahashi i use ur code and gtting only one tab pastie.org/9431650
 

« first day (652 days earlier)      last day (198 days later) »