« first day (733 days earlier)      last day (703 days later) » 

4:35 AM
Good Morning People :D
 
4:54 AM
good morning all..:)
 
good morning
 
Good Morning
 
morning, room
 
@Kaushik how can we make a view scrollable like truecaller's dialog ?
window manager doesn't allow to get scrolled
 
5:25 AM
@AnshulTyagi Looking for this?
if you don't want to use a library, you can take the implementation from the repo and customise it in your own way
also, this
 
you are coding in kotlin use some extension function
to reduce your code
@Kaushik why so serious ?
 
5:43 AM
goodmorning
 
This is my CommonMethods class
Thanks for sharing your code
I got 2-3 good points from that
I'll use them
 
@nawaabsaab dude that is Static method
i used extension function
those method available in activity by default
 
yes I have made a class
ok got
thanks
 
in activity you can call add(R.id.fragment,fragment)
and start<Activity>()
like that
 
5:49 AM
and this is for  override fun onCreateViewHolder(parent: ViewGroup?, viewType: Int): MenuViewHolder?
        = MenuViewHolder(parent?.inflate(R.layout.logistic_menu_item))
recylerview adapter
parent.inflate
only
@nawaabsaab and you don't need
class in Kotlin
 
I didn't get you
are you saying I don't need adapter class?
 
you need adapter
but
instead of LayoutInflater.from(context).inflate(layoutRes, this, attachToRoot) this
you can use parent?.inflate(R.layout.logistic_menu_item) this
if you have
fun ViewGroup.inflate(@LayoutRes layoutRes: Int, attachToRoot: Boolean = false): View {
  return LayoutInflater.from(context).inflate(layoutRes, this, attachToRoot)
}
this extension function
 
@AnshulTyagi which one?
@Rahul ha ha ha
 
6:08 AM
@Kaushik the dialog which comes when an unknown person calls you
it can be scrollable vertically only
 
very good morning all :)
 
@AnshulTyagi use static height of layout and put a scrollview inside main layout
@NarendraJi morning
 
@AnshulTyagi
@Rahul
 
?
 
@Kaushik yea, let me try this
 
6:16 AM
how to get particular fileds in get request using retrofit
for example:
/_api/lists/getbytitle('Employee')/items?$select=ID,Title,EmpRole,Username,Passw‌​ord,Plan,Actual,Client/ID,Consultant/ID&$expand=Client,Consultant&$filter=(Userna‌​me+eq+'" + username + "')+and+(Password+eq+'" + pwd + "')"
 
?
not clear
 
@Rahul that's nice
 
@Rahul
 
I'll be using these things
 
i have to pass particular fileds in get request like which i have given in example in select
how to pass that in retrofit
i dont want all fileds in that request
 
6:23 AM
@Rahul lol super experienced developers also not know about scrollviews xD
 
@IshitaSinha scrollViews?
@VishalThakkar use querymap
 
@Kaushik din't work
 
@AnshulTyagi what exactly are you looking for?
 
nvm
 
@Anshul I'm trying with popup window but i't not same as truecaller @Rahul do you know how to achieve truecaller system pop up with scrollable behaviour . already checked android-er.blogspot.in/2014/01/… In popup window we need view to open pop up or if i use window manager than it's not scrollable or movable on screen
 
6:32 AM
@Rahul I am studying your code
So we donot need class according to you
 
yes
those are extension function of activity
and ViewGroup
4
Q: How to open Alert DIalog System level in android

kiirohanaI have an app that opens an Alert Dialog when a bluetooth device is connected / disconnected. The alert dialog is triggered by a BroadcastReceiver on connect of a Bluetooth device. I want to open an alert dialog such that if I open my app (app A) > long press home > go to a different app (app B)...

@PoonamKukreti your dearest friend is here :p
 
i've 3 dearest friend .. you're talking about whom?
 
hmm will have to make many changes :P
 
@PoonamKukreti kab se
 
@Rahul but animation will happen itself not from ontouch
 
6:43 AM
you need to create custom one
 
i've to move pop up and down on ontouch event
custom animation @Rahul
 
@PoonamKukreti you want popup like truecaller
 
@nawaabsaab there no many changes
@PoonamKukreti then where this onTouch come
that dialog swipes left to right
right to left
and that's system alert dialog
 
no on incoming call there is one system pop up will come that can be move up and down
 
6:52 AM
if you touch and hold
 
yes
I'm trying like this
we can use pop up window but there we need anchor
how can we overlap that anchor with pop up
 
use systerm alert dialog
simple
 
simple alert dialog
like this AlertDialog dialog = builder.create();
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
WindowManager.LayoutParams wmlp = dialog.getWindow().getAttributes();
 
AlertDialog dialog = builder.create();
dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);
dialog.show();
use applicationContext
 
 
2 hours later…
9:20 AM
@Rahul
@Rahul in android any library you know like this github.com/WenchaoD/FSCalendar
i have to show week wise date user can swipe to change week
 
if you wanna be abusive go home talk to mirror
 
wow
 
:p
 
philosophy
hahahahahahahaha
 
@Belladonna no
 
9:24 AM
don't worry i'll kick you again
 
and my bf will kick you
xD
 
@Belladonna please don't fight and don't talk rubbish
if you have personal problem with anyone please use any social app or IM
 
@Rahul
@Kaushik
 
yes
 
@Kaushik well, people keep blocking me xD
 
9:31 AM
@Kaushik don't worry i'll kick him/her again
 
him?
 
i would love to that cwl smiley
 
any one please
 
@Belladonna then just don't type anything :P
forget him/her
 
9:33 AM
@Rahul how can i move alert dialog up and down ?
11
Q: How to implement dialog like truecaller in android

KushalI am trying to implement the app similar to true caller,I am able to get the phone number when the phone rings using broadcast receiver and opening the MyCustomDialog Activity This is my receiver class by which I am getting the Call State that the call is starts or ends. In this, I make some met...

 
@Belladonna please don't use hindi
 
watch the video
@Kaushik happy?
 
yes
 
(Y)
@Poonam madam
please let me know if that's what u r looking for
 
9:41 AM
@Belladonna already checked this
 
13
A: Android: Dragging Popup Window

pskinkLaura, try this (place it in onCreate): final View cv = new View(this); setContentView(cv); TextView tv = new TextView(this); tv.setBackgroundColor(0xffeeeeee); tv.setTextColor(0xff000000); tv.setTextSize(24); tv.setText("click me\nthen drag me"); tv.setPadding(8...

 
i want to open this directly but i'm getting exception
 
what's the exception
and what do u want to open directly?
 
popup window on incoming call
 
oh
you need a broadcast receiver for that, right?
what's the exception btw?
 
9:47 AM
IncomingCallActivity has leaked window android.widget.PopupWindow$PopupDecorView{2e0fb75 V.E...... ......ID 0,0-347,399} that was originally added here
 
hmmm...
use a BR and a service
 
I've broadcast receiver and service too but system alert is not moving up and down on On touch event
 
and use an activity that has no gravity and its own context
 
activity is moving from calling screen to itself
 
itself?
 
9:50 AM
i mean as an intent because i'm using Intent
 
what I mean is, in that tutorial, they have used a popupWindow widget for the movable dialog
you need to use an activity itself
 
not a popupWindow
 
@PoonamKukreti you were using activity context
use application context
wint systemlert overlay something like that
 
I've to start activity or system alert window
hastebin.com/pezolivice.java i was doing like this
 
then how can we move alertdialog ?
 
add
systemlalert overlay
to that view
 
ok
show can we move system alert overlay
 
wm.setTypw
final WindowManager wm = (WindowManager) getSystemService(WINDOW_SERVICE);
after this
wm.setType
overlay
 
i did check above in the hastebin link
 
9:59 AM
?
 
also WindowManager.LayoutParams.TYPE_SYSTEM_ALERT
add this
 
and then she can't move the window xD
 
here
open your eyes
WindowManager.LayoutParams params = new WindowManager.LayoutParams(
        WindowManager.LayoutParams.WRAP_CONTENT,
        WindowManager.LayoutParams.WRAP_CONTENT,
        WindowManager.LayoutParams.TYPE_PHONE,
        WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
        PixelFormat.TRANSLUCENT);
@PoonamKukreti use that one ^
 
ha ha ha ha
then she can simply use

> PopupWindow(View contentView, int width, int height)
> Create a new non focusable popup window which can display the contentView.
meh...
 
10:17 AM
@Kaushik there is one good news
 
yes
 
i'll kick some one again
 
my eyes are already opened i can move system alert from from this code
@Rahul
 
15 mins ago, by Rahul
https://www.androidhive.info/2016/11/android-floating-widget-like-facebook-chat-‌​head/
use this one
 
with chathead i did
i.e working
 
10:25 AM
same thing do with your dialog
 
tried same thing with view if you'll check but ontouch is not working
*hastebin code
 
first copy past full code
 
can't help @Kaushik
my brain bleeding
 
@Rahul that won't work because I can't get the request
the webview is making the request, I'm not
:(
 
10:39 AM
who created code of how do you calling
?
 
final WindowManager.LayoutParams params = new WindowManager.LayoutParams(
WindowManager.LayoutParams.MATCH_PARENT,
WindowManager.LayoutParams.WRAP_CONTENT,
WindowManager.LayoutParams.TYPE_PHONE,
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
PixelFormat.TRANSLUCENT);
Done
thank you
 
told you
 
@Belladonna thank you
 
@PoonamKukreti what was her credit? :O
@Rahul calling what?
sorry I was on a call with Amazon [eyeroll]
@Rahul you have to eat apple again today
green apple
 
ok
@IshitaSinha :D
 
11:12 AM
@Rahul a question do you make data classes in different files for retrofit in kotlin
 
since you don't need
class to wrap everything
you can write data classes in one class
 
@IshitaSinha congrats
 
@Kaushik why are you behaving like Rahul -_-
 
11:38 AM
seriously
 
for what?
you are the one who should be congratulated [shrug]
 
ha ha ha
 
12:06 PM
hello folks
 
I don’t have the context right now… but who cares?
I love this line from that blog
@IshitaSinha
@AMANSINGH ello
 
Hi @Kaushik, did you worked on ndk
 
no
sorry
 
anyone here worked on ndk
 
 
5 hours later…
5:00 PM
 
 
5 hours later…
10:25 PM
posted on January 17, 2018 by Android Developers

Posted by the Android Security. In June 2017, the Android security team increased the top payouts for the Android Security Rewards (ASR) program and worked with researchers to streamline the exploit submission process. In August 2017, Guang Gong (@oldfresher) of Alpha Team, Qihoo 360 Technology Co. Ltd. submitted the first working remote exploit chain since the ASR program's expansio

 

« first day (733 days earlier)      last day (703 days later) »