« first day (929 days earlier)      last day (1316 days later) » 

4:05 AM
@Prince vMG :)
@Kedarnath Access granted
 
4:19 AM
Good morning all :)
 
4:31 AM
GM all
any good and easy way to apply image on switch instead of text
 
5:26 AM
Gm all
 
Sun
0
Q: Get Geo-Locations using Postal Code

SunWriting a program in which i have to show near by places using postal code so for that first of all i have to get geo locations by using user's postal code (postal code accepted by user) and then need to show near by locations from that geo-locations still i am getting user's current location an...

 
@Sun what is d issue ? O_o
 
Sun
how to get geo-locations using postal code ?
@SweetWisherヅ
 
5:45 AM
i dnt want to bring my app in recent apps list
then i m doing
android:excludeFromRecents="true"
but where should i write this may i need to write this in splash activity ?
only or in all activity
?
@SweetWisherヅ
 
Sun
@SweetWisherヅ yes but did not find solution :(
 
Sun
@SweetWisherヅ check this: pastebin.com/ZiSZXShq
 
6:16 AM
are you able to get lat-log ?
@Sun what you get here List<Address> addresses = geocoder.getFromLocationName(strPostalCode, 1);?
 
Sun
how to log this ?
 
debug and check.
 
Sun
Log.d("", addresses);
 
itz List, u cant directly log it. try logging addresses.size()
are you getting any toast ?
 
Sun
Log.d("addresses", addresses.toString()); is it correct way ?
 
6:24 AM
nop.it wont show u the expected data
2 mins ago, by SweetWisher ヅ
debug and check.
 
Sun
sweety i already told you that i am getting this in Toast: Unable to geocode zipcode
 
it simply mean addresses is NULL or itz empty
Check this if u r getting null, also try with some other zip code
 
Sun
yes
 
6:26 AM
i have shown u the way, now rectify error and solve it.. nd u r done
 
Sun
what would you recommend me to do ?
because i have tried many times and always getting null
 
@DroneDev issue ?
 
there are 4 fragmnets in a pager, and on every fragment i have to hit 2 web services,
but add hote he 8 web services ek sath call hoti hain
but i dont want that
@SweetWisherヅ ?
@RobinHood hello
 
o/
 
can u help?
 
@RobinHood trying to show dialog from broadcast reciever
but getting error
then tried to show activity and then from activity showing dialog
 
6:58 AM
did you add permissions in manifest for system alert window?
 
no
@DroneDev where ?
 
manifest file
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.SYSTEM_OVERLAY_WINDOW" />
check this paste and modified it according to your requireent
 
@DroneDev try pager.setOffscreenPageLimit(0);
@RobinHood huhd
SweetAlertDialog hihhihi :P
 
i m using custom layout for dialog
@RobinHood
have added permission but again my app crashed
 
is Robin replying u ?
 
7:06 AM
oh sorry
@DroidDev
 
lol
he is not even in the room
 
@SweetWisherヅ sample hai
 
@DroneDev use pager.setOffscreenPageLimit(1);
 
userAppDialog = new UserAppDialog(context,appName);
userAppDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
userAppDialog.show();
using this
 
@SweetWisherヅ myth
 
7:07 AM
@RobinHood it was for DroidDev
 
huhd
 
RodinHuhd :P
 
@nida what error?
seem context is null.
 
yes 01-21 12:10:16.618: E/AndroidRuntime(9699): Caused by: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
i have registered broadcast reciever only from manifest not registering from my activity class
@RobinHood
 
show me your code
 
and how you calling?
 
i have registered it in manifest
added manifest code as well
@RobinHood
 
try to debug and trace
 
the issue is of window
userAppDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
in this line
 
3
A: does android.intent.action.PACKAGE_ADDED requires users permission?

Pankaj KumarYou don't need to add permission. Read How can I get Actions: PACKAGE_REMOVED and PACKAGE_ADDED thread for more. You can try one more thing is, add exported and enable option as true for Receiver into Manifest, and then try. Like <receiver android:name="com.heyzap.sdk.ads.PackageAddedRece...

 
7:19 AM
i want develop share Android device screen to monitor or other device in real-time any example or sample code
 
brb
 
@nida umm...
??
 
it was wrong number :P @Droid
 
7:22 AM
@DroidDev still error is here
 
now help the help -vamp :P
 
@SweetWisherヅ lol
@nida where is error in it? I only see code :/
 
@nida did you debug the code?
 
yes the issue is of context
while i m passing context in some method which is working fine
 
7:28 AM
so pass proper context
 
Sun
0
Q: Handle Toggle button in onResume()

SunI am using Toggle button in one of my activity, Toggle button default state is OFF, but when Toggle button is ON and then i move to other activity, and when i come back again to Toggle button activity - Toggle button remains ON which is good. Now when i do toggle state OFF (getting state as OFF ...

 
@nida I don't' think the code you posted is where you are getting exception. You need to debug your app
 
where is Erum? Nida
 
I think those links are enough to help you
 
Sun
@SweetWisherヅ will you help me ?
 
7:30 AM
in medical leave
 
oh! you both work together?
hmm...
anyway, Sayonara
 
@SweetWisherヅ what made you people that nida is erum?
and even does it matter?
 
@Sun wht is the value here : tg1pref = preferences.getBoolean("tg1pref", false); ?
@RobinHood Ya.. alot..
help vamps are not entertained here
 
@SweetWisherヅ what?how?
 
7:32 AM
she already has 2 accounts
 
Don't forget your time
@SweetWisherヅ again does it matter?
 
@RobinHood i never did.. but atleast she can try before asking here
@RobinHood it's simply making us feels both are same
 
so you mean, that she didn't tried before asking?
how you observer?
 
I m not here to argue with u.. u carry on
 
then live and let live
 
7:34 AM
humm i m still trying to resolv and still googling as well
 
lol... whom M i killing.. FYI, i'm not a killer :P
 
i just asked issues when
i failed to resolve
 
Good :)
 
or unable to understand same code is working fine in case of activity but failed torun in case of reciver
 
@SweetWisherヅ u should be written as you.
 
7:36 AM
@RobinHood lolzziiiiii
 
huhd now
times up.
 
1
A: How to open Alert DIalog System level in android

Gopal Gopithis may help you... @Override public void onReceive(Context context, Intent intent) { final WindowManager manager = (WindowManager) context.getApplicationContext().getSystemService(Context.WINDOW_SERVICE); WindowManager.LayoutParams layoutParams = new WindowManager.Layou...

@RobinHood this code is working
 
I have no time to identify help vamp.
 
Crunch Time :)
 
well...then you can trust our instincts
anyway...if flagged, the user can be ip-banned for having multiple accounts
 
Simply blaming people its not enough you must educate them.
 
we are trying to educate since last few months
 
7:54 AM
keep it up
 
the user needs to have tendency to learn
 
@DroidDev In case if user miss use
 
rather then just asking straight
@RobinHood sorry, didn't quite get what you meant by "user miss user"
 
who will going to aware them about tendency of learning?
 
@RobinHood we, as we are trying to do now
 
7:55 AM
1 min ago, by RobinHood
keep it up
 
@RobinHood well..you can also try
all the best
 
thank you so much
 
anytime
 
8:21 AM
0
Q: How to put close imageview at top right corner with margin in a dialog?

user1726619I am trying to put an imageview having close image at top right corner with slightly outside margin. This is my layout for dialog: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:la...

Please help me.
 
@Shadow want this ?
 
8:47 AM
@user1726619 use FrameLayout
 
Sun
0
Q: Handle Toggle button in onResume()

SunI am using Toggle button in one of my activity, Toggle button default state is OFF, but when Toggle button is ON and then i move to other activity, and when i come back again to Toggle button activity - Toggle button remains ON which is good. Now when i do toggle state OFF (getting state as OFF ...

@SweetWisherヅ
 
1 hour ago, by SweetWisher ヅ
@Sun wht is the value here : tg1pref = preferences.getBoolean("tg1pref", false); ?
@DroidDev playing game ;P
 
Sun
@SweetWisherヅ ohk wait
nice pic
 
9:06 AM
@Sun what is the timer? what is it meant for ?
check the false values is correctly getting strored in preferences and in onResume, u r getting the same
 
lol
haha
 
9:30 AM
@user1726619 check answer
 
Sun
@SweetWisherヅ timer i am using to upload data to server
getting true
really frustrated with this issue
 
Debug n check the false values is correctly getting stored in preferences here : editor.putBoolean("tg1pref", false); // value to store
 
i created folder in DCIM but that folder is appearing after restart device
 
@Sun keep debug points at onResume and onCheckedChanged and run the app once
check when the onCheckedChanged is called with which value, u will surely get it resolved
 
@nida haha, great
@SweetWisherヅ help to @nida
 
9:45 AM
i think we have to refresh gallery after making folder
i know there is a code of media scnaner
 
cool, good luck
 
but that folder is working fine in smasung and creating issues in LG device
 
lol running Robin , hahahahha
 
2 hours ago, by DroidDev
@RobinHood well..you can also try
wecuummsss @SilentKiller :))
 
9:47 AM
@SweetWisherヅ thanks.
 
@SweetWisherヅ even you too
Its prayer time else I won't left hand of my weak student :P
 
@RobinHood will do if I want...
@RobinHood haha come n hold it back :P
 
@RobinHood and you are not rancho too.. xD ;)
 
But may be rancho like me
 
@RobinHood 3:18 which salat time ? :O
PJ of the day ^^
 
9:49 AM
he is running late ;P or running from something else :P
 
grow up SK
 
alredy, but you know na *difficult to improve perfection . xD
 
For last 3 year we performing zohar at this time only
 
then its bit late.
 
FYI zohar time is till 4*. (discussion end)
 
9:52 AM
go before it gets toooo late
 
i didn't mentioned that its not time of zohar. i said its bit late.
 
10:10 AM
@RobinHood i hve applied media scanner code but still folder not appearing in LG devices
 
@DroidDev nah. busy :/
 
@SweetWisherヅ ok, maybe some other time
 
hmmm :)
 
oh no whats going on here
 
@nida no need to react you cont with your query
 
10:27 AM
@SilentKiller hiya!
 
@DroidDev yes principal. hws ya ?
 
@SilentKiller I am fine sir, hows you? :P
 
anyone is here
 
@DroidDev managing some how
 
@SilentKiller Story of our life
 
10:32 AM
@DroidDev hahaha day life.. xD
 
wow.. ;)
@DroidDev hws den ?
 
@SilentKiller sleepy
Y U NO VISIT?
 
@RobinHood there ?
 
@DroidDev too much work. rooting a device and not working
 
10:37 AM
@SilentKiller never tried that
 
lollll
 
@qɘɘbɒɿq YAY!! THANKS!!
 
@DroidDev :P
 
unpinned...huh!
 
10:39 AM
@DroidDev post in den n star it:
 
good option
 
@SweetWisherヅ I can only post, can't star my own message
 
's sure
 
anyone idea ?
how to appear folder images in gallery
have already applied media scanner
 
10:41 AM
DejaVu
 
@nida folder images mean all images on SDCard ?
 
in Androidians, 10 mins ago, by Harish
need to get space from bottom to the last edittext in this view
 
@Harish show UI
 
have run the code for media scaner but its not appearing in gallery
no i have created folder in Directory PIctures
in LG devices
 
@nida you have created a folder and you want to show that folder images in default gallery app ?
 
10:45 AM
@SilentKiller
 
@Harish instead of using Relative go with vertical Linear and Horizontal Linear for rows that will be light and easy UI
 
@SilentKiller no i have created folder and saving images in that folder right ?
now that folder with all its images should appear in gallery
 
@nida default gallery app ?
 
default gallery of device
yes
 
@nida yes
 
10:50 AM
@SilentKiller
can u pls see issue
 
@nida just a min
 
@RobinHood
ok
my folder not appearing in device Gallery before restarting device
@SilentKiller
 
try this sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory())));
 
@Harish give marginbottom on qualificationtext textview
 
@nida check whether your created folder having ".nomedia" named file ?
 
10:52 AM
no no
my folder name is "Folder New"
 
@kaushik still it is showing same
@SilentKiller for each row need to take one layout so it is heavyweight
 
@Harish its linearlayout its much lighter then relative.
whenever its relational its heavy.
MyMediaConnectorClient client = new MyMediaConnectorClient(newfile);
MediaScannerConnection scanner = new MediaScannerConnection(context, client);
client.setScanner(scanner);
scanner.connect();
another option ^^ newfile is the File object of your new/saved file.
 
@Harish http://paste.ofcode.org/xgnZhxRA6xTKTvTBtVEdSn
or use LinearLayout as @SilentKiller suggested
 
@SilentKiller in this case for each row i need to design one linearlayout so it is heavy na..?
 
@Harish no boss it won;t be heavy
@Harish pastie.org/9847154 try this else go with linear
 
10:58 AM
01-21 15:58:00.164: E/AndroidRuntime(29472): Caused by: java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.MEDIA_MOUNTED from pid=29472, uid=10355
 
@nida search this on google
 
i already have added permission
<uses-permission android:name="android.intent.action.MEDIA_MOUNTED" />
<uses-permission android:name="android.permission.BLUETOOTH"/>
<protected-broadcast android:name="android.intent.action.MEDIA_MOUNTED" />
 
some missing check with google
 
did not get u
@SilentKiller
 
@nida still some permissions missing please search
 
11:06 AM
even if i m creating folder inside pictures folder its also not appearing
 
@nida do one thing create a folder paste some images there and then restart your device and then check.
 
yes restarting of device is working in LG devices
but without restarting device LG devices are not showing folder
@SilentKiller
while same code is working fine in samsung devices
 
2
Q: Permission Denial:broadcasting Intent is not exported

user2601556I have the following codes: sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory().getAbsolutePath()))); And in my manifest, I have added: <intent-filter> <action android:name="android.intent....

5
A: java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.MEDIA_MOUNTED on KitKat only

Lazy NinjaIt seems that google is trying to prevent this in KITKAT. Looking at core/rest/AndroidManifest.xml you will notice that broadcast android.intent.action.MEDIA_MOUNTED is protected now. <protected-broadcast android:name="android.intent.action.MEDIA_MOUNTED" /> According to this post you need ano...

17
A: Permission Denial: not allowed to send broadcast in android

CommonsWare How to fix this issue for KITKAT? That code has never been appropriate. Fortunately, Android is (finally) taking steps to prevent apps from spoofing more system broadcasts like this. If you want to tell Android to index a file you put on external storage, either use MediaScannerConnection o...

 
11:50 AM
not working in S5 as well @SilentKiller
 
check all links ?
 
yup even applied
@SilentKiller
 
@nida any crash ?
 
nops
that was crashing but i have put under condition
i will remove code later from here
 
@nida remove
 
11:57 AM
@SilentKiller
 
hello all
any one worked on xmpp
 
i have created folder Local Storage--->device storage--->Pictures--->my folder
@SilentKiller
 
12:15 PM
@nida keep try catch and check whether it is firing any exception or not.
 
no its not firing any exception code is running smoothly but giving result only in android version 4.4.4
and in rest its not updating even images inside folder without restarting device
@SilentKiller
 
Good eve all
 
12:40 PM
@Shadow Evening u :)
did u get the link ? @Shadow
 
12:57 PM
haha salute to great mind :)
Time to Leave tataa :)
 
Bye bye :)
 
byee @SweetWisherヅ
 

« first day (929 days earlier)      last day (1316 days later) »