« first day (457 days earlier)      last day (3018 days later) » 

03:34
Good morning @all friends :)
@JaiSoni:GM
@HarshalKalavadiya VGM
Any one have worked on Achart Engine?
03:55
Gm all :)
@Aamirkhan not me
MY issue is i am getting such bar graph
you can see half portion is filled with red color and half with cyan color
Now i want that red color for only first bar not for all
any one have any idea about this issue?
it doesn't help
04:01
@Aamirkhan oh...
any way here is my code
@ALL Good Morning guys :)
@TheLittleNaruto @SweetWisherツ good morning
04:16
@KetanAhir What's up buddy ?
@Aamirkhan Where is this function "buildBarRenderer"
?
I can guess, this one is used for showing those bars
progress bar for video download. @TheLittleNaruto
@TheLittleNaruto protected XYMultipleSeriesRenderer buildBarRenderer(int[] colors) {
XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
renderer.setAxisTitleTextSize(16);
renderer.setChartTitleTextSize(20);
renderer.setLabelsTextSize(15);
renderer.setLegendTextSize(15);
int length = colors.length;
for (int i = 0; i < length; i++) {
SimpleSeriesRenderer r = new SimpleSeriesRenderer();
r.setColor(colors[i]);
renderer.addSeriesRenderer(r);
}
return renderer;
}
Go ahead , let me know if you're done with it
here is that function
@TheLittleNaruto I can find total length but not the length of downloaded content.
04:20
What is the purpose of adding two arrays of type double ? @Aamirkhan
@KetanAhir that's not a big deal
@TheLittleNaruto It's client's requirement
@TheLittleNaruto really ?
@Aamirkhan Ohh! is this x and y values of the graph
@KetanAhir Yes , while reading data , you can actually know the amount of data read
for (int x = 0; x < fileData.length; x++) { // fill byte array with bytes from the data input stream
fileData[x] = dis.readByte(); //here x is the data read till now

}
Get it ?
@TheLittleNaruto but I am using vget lib.
Ohh! How it works ?
@Aamirkhan One thing I dint get , how it's filling color for all bars ?
04:28
@TheLittleNaruto :P
@TheLittleNaruto do you know string format ?
Found it
@KetanAhir String format ?
@Aamirkhan I also want to look this function
"buildBarDataset(titles, values)"
@TheLittleNaruto String.format()
04:48
@TheLittleNaruto done
@KetanAhir @SweetWisherツ @TheLittleNaruto good morning
@Anjali Morning GoOd :)
@Anjali very good morning
hi @TheLittleNaruto @anjali @ketanahir gm
@all gm
plz help me...i have latlong of specific place and i want to convert that latlong into degree minutes and seconds...
hi @dipali
05:01
Here's How:

(1)The whole units of degrees will remain the same (i.e. in 121.135° longitude, start with 121°).
(2)Multiply the decimal by 60 (i.e. .135 * 60 = 8.1).
(3)The whole number becomes the minutes (8').
(4)Take the remaining decimal and multiply by 60. (i.e. .1 * 60 = 6).
(5)The resulting number becomes the seconds (6"). Seconds can remain as a decimal.
(6)Take your three sets of numbers and put them together, using the symbols for degrees (°), minutes (‘), and seconds (") (i.e. 121°8'6" longitude)
@PiedPiper and how to write this whole paramter in ditrection map url?
What is that?
@PiedPiper my lat long is here:
latitude=45.74639781659538
langitude=26.94501008838415
plz give me convert in degree minutes and seconds
Dev
Dev
incoming code attack !!
    Calendar cal = Calendar.getInstance();
    cal.add(Calendar.HOUR_OF_DAY, 24);   // expiry set to 24 hours
    java.util.Date token_expiration = cal.getTime();

    // default DATETIME format of MySQL is YYYY-MM-DD HH:MM:SS
    final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
    sdf.setTimeZone(TimeZone.getTimeZone("GMT"));  // setting time zone to GMT
    String formattedDate = sdf.format(token_expiration);

    // formattedDate is then stored in database
    // Now my question is, how do I compare the dateTime in database with current dateTime so that I could 
@dipali Wasn't those steps straight forward?
double lat_double = 121.135;

int degree_int = (int) lat;

double minutes_in_double = (lat_double - degree_int)*60;

int minutes_int = (int) minutes_in_double;

double seconds_in_double = (minutes_in_double - minutes_int)*60;

int second_int = (int) seconds_in_double;
Same for longitude
05:14
@PiedPiper this is my string
String str = String.format(
"%d\u00b0 %d' %d.%d\", %d\u00b0 %d' %d.%d\"", latDegrees,
latMinutes, latSeconds, latSeconds_fractioncomponent,
longDegrees, longMinutes, longSeconds,
longSeconds_fractioncomponent);
i want to replace special character to %..
because this string is bind in urk
url
i have already encode to enccoder.encode use UTF but no result
Let me try
05:28
@dipali there?
yes@PiedPiper
@dipali So you already converted it but facing encoding issue?
@PiedPiper i want to convert this string to encode...
34° 47' 53.466694200", 38° 0' 14.929006457"
i already encode but how i know this string encode right?
Hey everyone!
@dipali URLEncoder.encode(str, "UTF-8")
05:39
@PiedPiper i have this url:
but no record found in this url
http://maps.googleapis.com/maps/api/directions/json?origin=23%B0%2041%27%2018.103688626%22%2C%2069%B0%207%27%2059.43549299%22&destination=22%B0%2040%27%2044.197890682%22%2C%2078%B0%2031%27%2020.438965559%22&sensor=true&mode=driving
@PiedPiper i laready tried it
Hi everyone
Anybody had an idea for this stackoverflow.com/questions/21619930/…
@Appu @dipali @Dev @PiedPiper
@dipali hi dips mrng
@PiyushGupta hi
@dipali kem 6?
have you create map direction url using latlong?
@PiyushGupta
05:41
@dipali means display path between two locations?
and create a path for it
?
yes
no still not..But what are you exactly want?
@PiedPiper ok
Hello @PiedPiper
How are you?
its being too long to see you.
05:47
hello @piyush @dipali
@AndroidDev Sorry, haven't done that part.
@Barun hi
@PiedPiper this is work but sometomes no record found
Dev
Dev
@AndroidDev Hello, sorry I'm a noob
0
A: How to add event on default Google calendar

Pied PiperTry this method : public static Uri addCalendarEvent(final CalendarEvent calendarEvent, final Context context) { try { Calendar now = Calendar.getInstance(); TimeZone timeZone = now.getTimeZone(); long startTime = ((Date) new SimpleDateFormat("dd-MM-...

are u working on map
@dipali
05:57
@Barun yes
@dipali ?
sometomes no record found ?
Actuall i m also working on that but stuck at very first position.My map is not loading on mobile .need some help to resolve it @dipali @PiyushGupta
@RobinHood Hi brother
Sorry I didn't see you in crowd!
How are you?
:P its okay, fine.
what about you? & where you are now a days?
@RobinHood I am here as it is
06:04
cool
@Barun have you create api key?
@PiedPiper plz give me some solution
@dipali I didn't get your problem yet
may i explain in hindi?
What is issue exactly?
Yes Hindi, Gujarati, Urdu, Tamil ...
@PiedPiper: u mind to look into this ?
06:08
2
Q: Should user talk at chat room in other language than english?

Pied Piper Possible Duplicates: What are the different types of reasons for banning a particular user? How are moderators chosen? If one user want to explain a thing to other user(who understands) in his first language, is he doing anything wrong? Also can user create a language specific chat ro...

1
Q: Intent filter does not unregister even programatically

Vamsi Pavan MaheshI want to Toast a message, whenever an sms is received. I tried with explicitly putting intent filter in manifest and I partly succeeded, except that I don't want to invoke it when the app is killed, so with the advice of some programmers here, I tried making the broadcast receiver programatic...

@RobinHood Do you remember those days?
2
A: Intent filter does not unregister even programatically

WindsurferOakA reason for this not working is because the register/unregister isn't tied to the activity lifecycle, potentially leaving multiple broadcast receivers being registered. Consider this scenario: User navigates to MainActivity then taps on Register button. Then, the user leaves the activity (witho...

I am perfectly agree with answer
no dude .. the thing is it is getting invoked
even the app is not in the onResume()
i don't even have to press the register button
it simply invokes when the sms comes
@VamsiPavanMahesh Don't make Toasts within your broadcast receiver
so .. where do i ?
06:15
In activity
@PiedPiper :D ya ya
@VamsiPavanMahesh Try to receive broadcast as this pastebin.com/ap0XndJk
yes @dipali .I have done it already
k but i'm using two classes @PiedPiper
Good Morning all
06:22
@VamsiPavanMahesh Try using within activity only, I am not sure; but than you can tie it with activity life cycle.
ok .. thanq
@VamsiPavanMahesh I am trying it my end wait
good morning guys
ok .. :)
i will send the project itself if you would like ? @PiedPiper
or you can come via team viewer
@VamsiPavanMahesh I am in office.
06:28
ok ..
@rekire good morning
Helloww geeks,,Does anybody know how to pass the Message datas such as "number and message body" to the Hangout app via intent??
@VamsiPavanMahesh @PiedPiper
question is too broad
@VamsiPavanMahesh leave that freaking question.. could you pls help me if you know??
i know how to use intent to send message to another activity
or to use send data to server using http
06:41
mhm... it's k.. @VamsiPavanMahesh
@PiedPiper: got any clue ?
0
A: Intent filter does not unregister even programatically

Pied PiperInstead of declaring BroadcastReceiver in manifest try as follows within your activity, That will tie it with Activity life cycle (Don't forget to add permissions in manifest file) : public class ExampleMainActivity extends Activity { //Activity Stuff private BroadcastReceiver broadcast...

07:07
10
Q: How to integrate the metaio + Open CV for android application?

BaluHi i'm trying to create a application related to the Augmented Reality (AR) and was able to configure my application with Metaio SDK and OpenCV library successfully in two separate application. but the thing is i want to use both the library of OpenCV and Metaio together into one application. so...

0
Q: App download from own server shows unknown resource, How to make it trusted one

user2934866May be I am asking discussion related question, I am sorry if you feel it wrong, but I am really stuck while deciding what to do. For first time app Installation I have to give Download link for users from My own server because users don't have access to other Internet (also play store). I hav...

Any Idea guys , I also want to know something similar to this , is it possible
@PiedPiper
07:21
@PiedPiper: no dude not working
@VamsiPavanMahesh What is not working ?
one min sir .. i forgot to put permission ..
lemme recheck
Didn't you get broadcast?
It's working for me.
Add RECEIVE_SMS, READ_SMS, SEND_SMS permissions
but it is not working in background ..
and it is leaking intent .. when pressed register button two times ..
@PiedPiper
thr ?
@PiedPiper
07:38
Now
@VamsiPavanMahesh It will not
If you declare in manifest it will independent from other app components like Activity or services
yeah ..
the thing is i have implemented what you have posted as the answer
If you will use it as I suggested it will work only within single Activity
i am saying .. listen pls
07:40
OK
instead of onPause and onResume ..
i have created two buttons ..
Yes I got that
which regsiters and unregisters
now .. it's working .. when i press register
and unregiister
ok this is the scenario
when the app is in foreground ..
let's talk about when the app is in background ..
assume i pressed register button already ..
and i pressed home ..
What you want to do when app is in background ?
so sms comes to the phone
ans nothing happens
i want the toast to get displayed ..
07:43
OK
when the user presses register button and backgrounds the app
what should i do now ?
Do you know how to use Application Preferences ?
i thought i need to meddle with activity lifecycle is it not ?
07:44
Let me explain first about broadcasts
If you will add broadcast in Manifest it will "always" received
No matter you do anything apart
yeah that is static i know
You can not unregister it
but we doing programatically ..
yeah yeah ..
07:45
Anyhow!
that i know perfectly
You can't programatically remove broadcast you declared in manifest
So you must receive broadcast
that's what we did right
you mean to say there is no solution ?
07:47
Solution is there
Listen
ok pls tell me
Learn application preferences
hmm thats it ?
That will allow you to store a Boolean permanently
That is very is
07:50
Make one boolean preference.

Now while user press "Register" set it to true.

When user press "Unregister" set it to false.
set it to true and in onStop()
check if it is true ..
then ?
And add condition in your "SmsReceiver " class
@KetanAhir Great!
@Anjali @dipali Good Noon :) Sorry guys kinda busy today :( @VamsiPavanMahesh
@Appu hey
@user33 did you check your mail ?
@VamsiPavanMahesh If that preference boolean is true; only then you display your Toast
@TheLittleNaruto
ok will that preferences stack over time ..
it will take more memory
over period ?
07:53
boolean isRegistered = GetApplicationPreferenceBooleanHere;
if(isRegisered){
//showToast
}
See application preferences tutorial
yeah in onStop right ?
no ..
the thing is ..
It is very important to learn
will the broadcast receiver still recieves ?
@PiedPiper
did someone work with the ArcMenu yet?
Change your broadcast receiver in your version of code
Forget about my solution for while
07:58
vgm@TheLittleNaruto
what is the change @PiedPiper
boolean isRegistered = ApplicationPreferencesGetBooleanSomeHowYouMustLearn.
OR

After lunch I will edit my answer with full new solution
@TheLittleNaruto, hangout
08:00
yeah even i'm thinking for going to lunch ..
but still can't say the excuse ..
since u r helping me out here
thanks .. even i'll go to lunch and come
@all ssup guys?
Hello
Does java provide any inbuilt profiling ?
i dont want to use 3rd party like jprofiler.. etc
or jprobe
08:23
@Java_User no idea
:) @SweetWisherツ
@Java_User u happy ???
Dev
Dev
I feel like calling him Sweety ;p
@VamsiPavanMahesh I am back
me too ..
so what do i do ?
@PiedPiper
@TheLittleNaruto: thr ?
08:35
@VamsiPavanMahesh Here is complete solution
I edited both your classes
ok .. let me check ..
will it work in background too ?
Yes
I have edited your classes
Forget about my first solution
Hey all.
08:41
ok .. i'll check and ping u :)
I'm having some seriously huge issues with the Java reflection API if someone could give me a hand... pastebin.com/NcxDx2jS
@VamsiPavanMahesh OK
context is showing error
@PiedPiper
@Caerulius That is simple "that method not exist"
@VamsiPavanMahesh remove it
Yes :( But WHY?
08:44
in context.getSharedpreferences
context is showing error
call getSharedPreferences... directly
@VamsiPavanMahesh OR replace context with this
@Caerulius In my this answer see edit section.
There is method that list all the private/public methods of any class
Debug and confirm that the "method name" you are invoking really exist or not
08:47
I used getMethods and iterated/printed that out.
My method name is there.
In addition, when logging my method.toString() after getMethod, it prints correctly, with the public void and the correct parameter type (string[])
no @PiedPiper
the toast does not get displayed ..
after i pressed register button
the log message was register pressed ..
after that i sent a message to
the phone
the toast does not get displayed ..
@PiedPiper
why it is not displaying ??
@VamsiPavanMahesh Did you add it to manifest?
yeah ..
same app ..
08:51
OK
Is this log is being printed?
Log.i("SmsReceiver", "senderNum: "+ senderNum + "; message: " + message);
log is getting printed
no nothing is coming
from sms
side
only register pressed is coming to log ..
@TheLittleNaruto @SweetWisherツ GA :)
@ExecutingDreams GA :)
08:53
@VamsiPavanMahesh Now that is strange
Let me debug
@SweetWisherツ no I was thinking to say "then get idea" :P
@Java_User hehehe
@VamsiPavanMahesh Yeah! but busy right now
@ChintanRathod Sure , will ping when I'll be free
@ExecutingDreams GA dude :)
ASR
ASR
08:58
1
Q: How to Resolve the CkEditor CurlyBraces?

LaxmanI am new to the CKEditor. In My Project I have an issue related to Curly Braces. My Problem is when i enter the code for the curly braces in the source window like below; Code View: <h1>Normal code for curly braces</h1> {Normal Code} <h1>Hard code for curly braces</h1> &#123;Hard code&#125; W...


« first day (457 days earlier)      last day (3018 days later) »