« first day (714 days earlier)      last day (2536 days later) » 

4:15 AM
GM everyone
 
vgm all
 
vgm
@Erum
 
vgm all
 
4:33 AM
Hello
i am having doubt in android
i having recyclerview with multiple items which get data from user.when validate that works fine ,but request focus cursor on particular field seems problem
can any one help me?
 
asynctask is not connected to activity lifecycle
@Erum
@anbuselvan please explain more
 
ok from where u read this ? can u pls share link ? @nawaabsaab
 
77
A: AsyncTask won't stop even when the activity has destroyed

SnicolasThe answer given by @Romain Guy is correct. Nevertheless, I would like to add a complement of information and give a pointer to a library or 2 that can be used for long running AsyncTask and even more for network oriented asynctasks. AsyncTasks have been designed for doing stuff in background. ...

 
in that image you can see mutltiple item in recyclerview...which i need to validate and set cursor on particular field when it required to fill...
 
acha listen basically asynctask doInBackground me run hota hae tu wo ek separate thread bna k work krta hae UI thread pe kaam nhi krta hae but agr asynctask call krne k baad main activity ko close krdoon tu doInBackground ka kaam hota rhega but agr onPostExecute main Toast laga hua hae tu kia wo Toast fire hoga ? ya UI ko refresh krne ka kaam hua hae tu wo hoga ?
@nawaabsaab
 
4:41 AM
Good Morning All
 
is keyboard not getting open ontouch of edittext
?
 
Good morning every one
 
@Erum will depend on toast
 
toast ek hi type k hoote hain bhai
depend kia krna hae >
@nawaabsaab
 
4:43 AM
if Toast.makeText(activity,"download complete", Toast.LENGTH_SHORT).show();
will be displayed
but
Toast.makeText(activity,etName.getText().toString, Toast.LENGTH_SHORT).show();
will give exception
cos the activity is destroyed
3 mins ago, by nawaab saab
is keyboard not getting open ontouch of edittext
 
no...if field is empty,it should say 'need to fill that field' and cursor should go to that filed as editable
 
so you need to check if(edittext.getText().toString().isEmpty()){edittext.requestFocus();}
 
VGM
 
ok thanks @na
i will try
 
arey sir na type krne ki b kya jarurat thi only @ krrdete main samaj jaata
 
4:51 AM
VGM
 
@Shvet good mornng!
 
0
Q: Change selected view background color in Gallery view

Nirav RanparaI want to change background color of selected view but after putting below code I got Error. When user selected other view of gallery previous view come to default color but now I got below error gallery.setOnItemSelectedListener(new OnItemSelectedListener() { @SuppressLint("ResourceAs...

 
VGM @praneethkumar
 
5:21 AM
@NiravRanpara ur view is null
please show row layout
 
here position means gridview's or whatever u have used position
 
    u have only one textview in row so if you click on 5th position then parent.getChildAt(5).setBackgroundColor(Color.RED);
 then it will try to find the 5th element in ur row which is not present thats why you got NPE
instead of passing a arraylist of string pass an arraylist of object in that pojo keep one String and one boolean flag for handling click event depending upon condition set view's background
also a tip try to use viewholder pattern @NiravRanpara
 
PRB
5:31 AM
Good mrng @AnshulTyagi @DroidWormNarendra @Rahul @Kaushik
 
yo morning @PRB
 
PRB
can someone give some link to undrstand better about thread service and handler
 
morning
 
vgm
 
5:34 AM
Usually I Start a service and put a handler inside it to run asynctask
@curiousMind paypal ka code milega step by step
 
PRB
who r in this grp are in bangalore?
 
haa
 
Poonam
@curiousMind de yaar urgent requirement hai
 
apna bhi de sakti hai hastebin k thorugh
jaldi ho jaayega mera
 
5:44 AM
okk
ruk
 
thanks
 
ruk
wo glt h :p
 
@AnshulTyagi 1 strange problem
 
haan ruka
bolo
 
5:52 AM
photo upload kr rha hu base64string me convert kra ke php service se
string ko jb postman se check krta hu toh shi chalta h
 
@curiousMind same hai
 
but jb mobile se upload krta hu toh blank image aa ta h
@AnshulTyagi
 
string ki length jyada ho rahi hogi
so connectivity break ho rahi hogi
multipart k liye bolo usko
 
bahut bada string bna rha h
 
multipart me karo image upload
 
5:56 AM
apne end se ya service end se
@Kaushik
 
dono ko
 
server end me tumhara end pe bhi
 
ok
 
Hi all. .
 
hii
 
6:07 AM
can anyone tell is there any specific reason to create a layout programatically?
 
well.. almost time its depend on requirment
 
very good morning all :) @curiousMind @Kaushik @AnshulTyagi @PRB @Dev @Shvet @nawaabsaab @Rahul @Tufan @Prabhakar @Sayyaf
 
good morning
 
very good morning @DroidWormNarendra
 
@DroidWormNarendra Very good morning bro
 
PRB
6:09 AM
@DroidWormNarendra come to offc late is nt good manner :P
 
@curiousMind matlab koi changes rehte hain creating in xml or programatically?
 
@PRB LOL :D
I am a bad boy :p
 
PRB
we kno :D :P
 
ohh...you already know?
 
jo normal xml se aap kr skte ho wo programatically bhi kr skte ho...lkin agr custom requirmnt ho jo aap xml se nhi kr pa rhe den go for programtically..
@Sayyaf
 
6:12 AM
agree with curiousMind
 
@curiousMind @DroidWormNarendra theek hai aisa koi example jo xml mein nai kar sakte ya kaunse situation mein aa sakta hai? whether you guys have faced such stituation?
 
handler runs in UI thread ? @DroidWormNarendra
 
@Erum yes, it runs in UI thread
@Sayyaf yes, in case you have dynamic no of views to inflate from server response, you need to do it programmatically
 
@DroidWormNarendra aadha samjh aaya bhai
baaki ka samjhne ki koshish kar raha hun
 
@Sayyaf okay
In short, whenever the views / no of views are not predecided, that is, when we need to do it on runtime, we need to create dynamic layout programmatically @Sayyaf
 
6:23 AM
k bro this is much understanding @DroidWormNarendra
thanks
 
pleasure buddy :)
 
:)
@DroidWormNarendra
 
@AnshulTyagi multipart ka koi demo do bhai
@Kaushik
 
kuch aur kar lo mai thodi der me code deta hoon
 
ok
 
6:30 AM
fb pe hai bhai?
 
kaam kar raha hoon FB
 
hi
 
hi
 
PRB
hello :D
 
6:45 AM
Bonjour :D
 
@AnshulTyagi
tym lgega kya?
 
wait
@Prabhakar class de du?
 
@DroidWormNarendra french :O
 
usme pura code hai
bas wo crop waala crop nhi akrna
 
pura de de
 
6:50 AM
maine crop bhi ki
 
ok de de
 
marshmallow ka bhi mlaga rakha hai
benefit hoga
 
ha yr wo bhi krna h
marshmallow me camera open nhi ho rha h
 
camera bhi hai
gallery bhi
 
ok
marshmallow me permission ko kaise resolve kru?
 
6:52 AM
arey mera code le le
sab hai isme
 
global option h bta
 
setOnClickListner se utha sab
 
marshmallow me custom permission hoti u
 
fir jiski requirement ho wo class me dekh
haan marshmallow me chal raha hai mera
 
user apne hisab se permission de skta h
 
PRB
6:54 AM
@AnshulTyagi @DroidWormNarendra @Rahul is there any way which replace viewflipper?
 
Service - It is running in UI thread, so u want to run server call or io operation or any async operation (Blocking operation) the use asynctask inside service.
Intent Service - It is running on worker thread, so that no need to create async task inside the Intent service for blocking operation
 
vgm @DroidWormNarendra
 
@Prabhakar wo is code se permission manaagega user se
 
Dev
@DroidWormNarendra country, state, cities ki list chaiye, koi api pta hai?
 
ok
 
@PRB lib aati hai
but for images
baaki ka nhi pata
 
@AnshulTyagi isme multipart ka code kha lga rkha h
 
php ka code kar liya
 
@Prabhakar asynctask bhi deta hoon :P
 
hello friends
 
7:10 AM
countries ki list get ki h only, without using any API
aise
public static ArrayList<String> getCountryList() {
ArrayList<String> list = new ArrayList<String>();

try {
String[] locales = Locale.getISOCountries();

for (String countryCode : locales) {

Locale obj = new Locale("", countryCode);

System.out.println("Country Name = " + obj.getDisplayCountry());
list.add(obj.getDisplayCountry());


}
} catch (Exception e) {
e.printStackTrace();
}
return list;
}
 
Hi anyone know about that concept name.that i was posted screenshot
 
Dev
git pr pda hai ye
maine dekha tha ek bar
uber me hai ye
 
I searched for an hour but I didn't get the sample for that
 
@Naruto step rating bar
 
@Rahul ok
I think step progress bar
thank you
 
@Dev ok
@Dev I checked that sample.it is useful to me.thank you @Dev
 
i am integrating paytm in my android application, on payment success it is loading php page but on overriding onTrasactionSuccess(). please help if any body knows
 
7:48 AM
Hello. I am sending a bitmap image from Android to php server through POST. Any idea who to receive (save) that image on server side???? php group couldnt help. I guess Androidians will. :)
 
@SrujanBarai which php framework u r using?
 
sorry i dont even know that. I am new to php. I use wamp server with php 5.
that what i can say right now
But I am successfully sending text data from Android to my server and saving it to my database. I am facing issues when it comes to sending images
 
Dev
send stream from android client and get that stream on pho server in your php function and write image at some location, by default it will in tomcat
or the another option for you to convert your image in base 64 like in this tut, and save that string in db
same string you can return when user ask for image
 
Yes I have already converted it to base64 and sending it to server. But I am failing to getting the image on server side
 
Dev
bhai string aaygi
echo kro jo aa rah ahai
jaise text aa raha hai whi aayga
tumhe stream write ni krni hogi
 
8:00 AM
String ko image me convert nai karna padega kya?
 
Dev
no
same string tum wapis dogy, jb user ko khi image chaiye
 
@Tufan whre r u bro??
 
Dev
andorid has methods to set images in views using base64
 
wapis dena samaj aa gaya. But if I want to show that image on webpage then?
echo se ho jayega?
 
Dev
khi bhi dikhao
base64 se dikha skte ho bhai
jaise andorid method deta hai set krne k
 
8:01 AM
@Dev multipart work nhi kr rha h image upload me
 
Dev
aise angular bhi dega
 
bol bhai @Prabhakar
 
to to me khamakha hairan ho raha hu shayad
 
image uplad ka multipart krna h
@Tufan
 
Dev
@SrujanBarai hota hai
kuch din pehle mai java k case me hua tha, meri image write ni ho rhi thi :P
 
8:02 AM
simple compression se image upload nhi ho rha h@Tufan
 
kiya nai hai anshul ya kaushik se puch..unhone kiya hai
kaushik ne sample diya tha
kyun nahi ho raha
base64 ka code diya tha na
 
nhi yr
 
Dev
@Prabhakar why compression?
 
@Dev 1-2 mb ka file hoga to tu kya full image send karega
compress to karega na
 
@Dev base64 me string too long create kr rha h
 
Dev
8:04 AM
mai to 5 mb ki bhi aise he kr det ahu :P
@Prabhakar i know, krega he bhai,
 
ha ha ha ..client kuch bolta nahi..
wo to format hi hai uska
 
maybe service end se problem ho
 
mera client ne 1 din 1.5 mb ka image bheja tha bola splash me use kar..itna sunaya usko apne se compress karke 69 kb ka bheja
P:
haaa
 
poatman se base64 image dal kr check krta hu toh uplaod ho jata h @Dev
 
base 64 ka wahi format hai
 
8:05 AM
but device se krta hu to blank image aa rha h
 
long me hi aata hai string
 
Dev
@Prabhakar erro rkya det ahai andorid se
 
debug karke check kya
image ja raha ya nahi wo to check kar
 
kuch error nhi deta
 
are debug kar buddy and check image ja rhaa ya nahi
 
Dev
8:06 AM
@Tufan bhai upload krna or Ui pr dikhana is different thing, server se k jb aati hai mere pas to CDN se scale hokr aati hai
 
ha pura string ja rha h @Tufan
 
Dev
server pr CDN use krta hu mai
 
inta web service ka nahi pata @Dev mai apne end se hi compress karke bhejta hu
 
kaise resolve hogi ye problem??
 
fir kya issue hai bich me internet connection timeout nahi ho rhaa na
3g use kar
 
Dev
8:08 AM
@Tufan shi hai
 
wifi pe test karke dekh 1 bar
 
nhi yr wifi h turant upload ho jata h
 
1 kam kar debug se jo base64 string mil rhaa copy kar
and postman se check kar
 
@Tufan ye bta postman se ho rha h
but device se nhi ho rha
 
aisa kuch v kya ..kyun nahi ho rha..either timeout ho rhaa hoga nai to image nahi ja rhaa
2 hi option ho sakta hai
@Dev image mipmap me jo rakhta hai wo kon se format ka banwata hai
 
Dev
8:11 AM
@Prabhakar base 64 me bhi multipart ki request maar raha hai?
 
AAPT err(Facade for 1702892531): D:\Android Studio Project\MultipayworldB2C\app\src\main\res\mipmap-xxxhdpi\utility.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
mera ye warning aata hai
 
Dev
@Tufan png only
 
@Dev try kr rha hu
but ho nhi rha h
 
read kiya to bolta hai chunks hota hai png me remove karne
bhai to multipart kyun kar rhaa
simple bhej na
as a string
 
Dev
@Prabhakar abe base 64 ko string me bhejega
fiel me ni
or server kis format me accept kr rha hai
ye cross check kr
 
8:13 AM
strin me bhej rha hu
@Dev
 
code bata tu ab
 
>PNG
idher se bhi .PNG bhej rha hu
 
AAYA SHIKARI
bhai tu code bata na
 
8:31 AM
@Tufan kon sa code
 
Toast ko ms me time dena hai
batao zara
 
custom bana le
abe base 64 me string bhej rhaa na wo code bata
@AnshulTyagi
idea
handler use kar
 
mera bata
 
tera hi na
handler use kar
 
nahi ja raha cancel ho jaa raha
 
8:36 AM
like splash screen banate hai na
timeout afte sometime
like this
waise bana time out hoga to chal jayega
 
final Toast toast = Toast.makeText(ctx, toast_msg, Toast.LENGTH_SHORT);
toast.setGravity(Gravity.CENTER, 0, 0);
toast.show();

Handler handler = new Handler();
handler.postDelayed(new Runnable() {
@Override
public void run() {
toast.cancel();
}
}, 1000);
aise try kr
 
yahi hai re
 
hmm
fir ni pata yaar
 
fir problem kya hai code to sahi dikh rhaa
run ke andar cancel v hai
to issue kya hai bhai tera
code match kar
CONFUSION KI SHOP P:
me khana khane ja rhaa
brb
 
8:50 AM
@Tufan ab maine string ko bheja aur response me return krwa ke online image convert kra rha hu toh
err
aa rha h
ERROR: If you don't see the image here, please change your desired MIME type (e.g. SVG) or check base64 encoded string.
 
@DroidWormNarendra @AnshulTyagi
hai
 
@Dev ??
 

« first day (714 days earlier)      last day (2536 days later) »