« first day (497 days earlier)      last day (2753 days later) » 

12:00 PM
So there is no need to use any lib
@Dev findViewById()
 
Hmm need to read more about it :P
Back to google for me
The google dev "training" and reference is quite an overload on information and terms btw.
 
You can use mybringback.com
For android and ios
 
Dev
@Rahul maine pagar pr set ni kiya bhai
sirf tabs bnay hain
 
@Rahul yar blanck view dal raha hu but kam nai kar raha hai gridlayout me and row and cols ke position pe imageview assing hona chhaiye
 
Dev
mera ek view hai waisa
 
12:03 PM
@Rahul
4 mins ago, by DroidWorm Narendra
@Rahul can I pass the same imageview in the onActivityResult of camera capture, for which its called?
 
Hi Guys
how to get SHA1 key from ANdroid Studio
 
ye dekh @Rahul pastie.org/10331224
 
I tried this one from cmd prompt
its asking for password
but, i could not enter password
 
Dev
@Rahul
 
how to get image name ?
@Rahul
from grid view
 
12:09 PM
@Roman first you need imagename there
@Dev i mean getTabAt(I).findviewbyid
 
how to get?
 
Dev
@Rahul aisa koi method call nhi hai
 
String name = getResources().getResourceEntryName(imageId[position]);
Uri bmpUri = Uri.parse("android.resource://"+getApplicationContext().getPackageName()+"android.resource://com.adult_emoji/drawable/"+name);
is it right way?
 
@Rahul no solution for that?
 
Yes
@DroidWormNarendra Chang request code at the runtime
After all its static
 
12:12 PM
9 mins ago, by DroidWorm Narendra
4 mins ago, by DroidWorm Narendra
@Rahul can I pass the same imageview in the onActivityResult of camera capture, for which its called?
wt about this @Rahul
 
Nope
 
You can try with putextra
 
how to get those values in onActivityResult
 
Check karne me kya jata h
 
12:13 PM
using getExtra?
hmm
k, let me check
 
But I will return image that you pick
Not that you pass
 
was asking about imageview
 
@Rahul
i select canmovefree image from grid
and i got in logcat
System.outīš• <<<<<<>>>android.resource://com.adult_emojiandroid.resource://com.adult_emoji/dr‌​awable/cantmovefree
is it right?
 
Nope see package name
You are getting two times
 
            Uri bmpUri = Uri.parse("android.resource://"+getApplicationContext().getPackageName()+"android.resource://com.adult_emoji/drawable/"+name);
this is line i have
 
12:19 PM
"android.resource://com.adult_emoji/drawable/
Remove this
 
Uri bmpUri = Uri.parse("android.resource://"+getApplicationContext().getPackageName()+name);
done?
is it ok?
 
After package name "/drawable/"+name
android.resource://com.adult_emoji
Remove this much only
 
            Uri bmpUri = Uri.parse("android.resource://"+getApplicationContext().getPackageName() +"/drawable/"+name);
ok now?
 
Yes
 
but still image is not attacing
it attachs image name with some other extentsion
 
12:26 PM
Which. Extension ?
 
in properties detail
i checkd
it shows
 
@Rahul 1problem hai
 
Type File
it means it is file type
 
agar original image dekhe redbus ka usme 6 rows hai ..nd yaha mera row count me 4 hi aa raha hai ..so layout v sahi se aa nai raha hai
 
i think it isbecause of i am getting image name only
not its extension
 
12:32 PM
@Tufan ??
 
i am getting cantmovefree
it should cantmove.png
isnt it @Rahul
?
 
dekh mera aisa aa rhaa hai....
 
@Tufan row colum dekh
 
tu ye code ko dekh me redbus ka original image nikalta paste.ofcode.org/358fE5SA6viARw5c3jzHWgC
are dekh mera me 4 rows and 10 cols hai
 
@DroidWormNarendra : hey
 
12:35 PM
ye dekh redbus ka...6 rows hai inka
@Rahul
 
@Tufan @Rahul
"is_created": "1438330075" isko is format me chahye k date and time dono mil skain
aur time am/pm pe chahyain
 
@Rahul
 
i think date nai milega @Erum ..ye mili second me hai time mil jayega tujhe
date ka yar pata nai
 
@Erum long me convert karna
Then cal.setTime(value)
Ho gaya date time me convert
 
@Rahul tune dekha kya mera ...kya karu ab aise 6 row inka kaise aa raha hai
 
12:40 PM
@Tufan are tuchhe row aur columns se server se mil rahi h
 
haa server se mil raha hai na..dikhaya tha na tujhe pastie me
 
Abe tuchhe Jo tuchhe link diya usame dekh settings.row tha
Vo list.get(I).getRow() nahi ho sakta h kya
 
ho sakta hai but problem is if agar yaha se 5 return ho to wo loop me 5*10 cols means 50 banayega imageview
karke dekhta hu me ..dekhte hai pahle kiya to extra aa gaya tha now fir se karta hu
 
50 kaise banega
Dhyan se dekh usame
 
okay dekhta hu
 
12:46 PM
Usame dekh settings ko as a list consider kar
 
@Rahul
 
@Roman you are getting image
When you save on window and click on image
Thus it asking for open with
 
wahi kiya now output ..puch mat dekhne de kya ho gaya..itna sara imageview..but 1 bat bata.wo gridlayout me usi position me jake kaise enter hoga
 
i dont want to open
 
Abe seatno me multiply kiya h
 
12:49 PM
i just want to share
 
After sharing image you are getting same image
 
usne kiya hai na @Rahul mai thodi kar raha hu mera 18 hi hai and wo v specif jagah pe
 
i have ten images in gridview
 
@Rahul condition kya lagega ..ki usi place pe jaye ..nd baki ko chod de
 
and i am sharing it with
gmail and facebook and other messengers
thats it
images in my drawables
got it now?
 
12:53 PM
But after sharing did you getting same image
@Tufan response dikha
 
wait
 
no
i am not getting
but in gmail its extension change with file
in whts app only i am getting same image
 
After attaching did you send the mail some
?
 
but row and column chodke baki sab dusri chijo ke liye use hota hai
 
@Rahul aese chahye mjhe 14 jul ,15 at 12:28pm
 
1:01 PM
Tumname cal.setTime() kiya na
@Erum
@Tufan dekh 0 colum me teen seat h
Tuchhe 0 colum vale seat ko group karna padega
 
nhi
 
@Erum vo karne ke bad cal.getTime karti to date return karta
Aur date ko easy format kar sakti ho
 
kia krne k bad
mene seconds ko millisseconds me convert kia hae then string se long me convert krdiya hae ab ?
 
Are tumhe already data milliseconds me mil raha na
 
@Rahul
 
1:05 PM
@Rahul maine row wise group kiya hai
 
nhi seconds me mil rha hae
Long timeInMillis = Long.parseLong(notificationRecords.getIs_created())*1000;

Calendar cal = Calendar.getInstance();

userNotificationHolder.usernDateTextView.setText(cal.getTime().toString());
isme format ?
 
Tumane multiply kyu kiya
userNotificationHolder.usernDateTextView.setText(cal.getTime().toString());
Esaki value kya h
 
milliseconds me convert krne k lye
run kr rhi hon
 
@Erum vo already milliseconds me h
 
wed aug 5 18:09:44 GMT +05:00 2015
ye arha hae
but mjhe date and time alag alag chhaye
then phir dono ko join krungi with date at .... time
@Rahul
 
1:11 PM
Date date =cal.getTime()
EEE ,dd-MMM-yyyy hh:mm:ss a ye pattern date ko format kar do
 
ok rehne do sirf is time inseconds ko hr and min me krna hae bus
< 60 hae tu min ...then seconds so on
aese
 
@Rahul grid layout kae sath kuch issue hai kya sabko 1 sath fill karne ka ..jaha blanck hai waha blanck kyun nai dal raha hai....
 
Abe vo cloumn aur row ka panga
Dekh tucche column ko group karna padega
 
are to ab kya kare website me v ye implement kiya hai but unhone sare div se kiya hai
wo ho jayega column ka kar lunga than
 
Usako response me mag muchh col 0 me jitnae seat vo group karke dene ko
 
1:16 PM
wo to mai hi kar sakta hu na ..sort karke column wise row ki jarurat nai hai na...
kar leta hu mai hi
 
Ha
 
wait 1 min ho gaya
i mean sort
ho gaya ye dekh
ab kya kare
 
@Rahul
 
bye all
 
@Kirti bye
@Tufan I mean HasMap<0,List<seat>> esha
 
1:23 PM
@Rahul
just tell me how we attach image via share intent
 
ye karke dega kya kuch v kya @Rahul ..isme or kuch option hai kya
mai kuch v kar lu wo serial wise fill kar raha hai....
 
Ha. Magr kisi colum me ek seat rah to
 
to uske liye dusra layout banana padega
3 layout banenge ..sleeper ,seater,and semisleeper
 
@Rahul
tell me'
frella
 
@Roman you share with WhatsApp right ?
 
1:38 PM
bye guys
 
yes
 
@Rahul koi aur tarika hai kya bhai
 
Then have you tryied to send email from gmail to some
@Tufan dekh ek column usame multiple seat
 
1 clumn me multiple seat nai aayega
kabhi psble nai hai
 
yes
23
Q: How to use "Share image using" sharing Intent to share images in android?

AbhijeetI have image galley app in that app I placed all the images into the drawable-hdpi folder. and i called images in my activity like this : private Integer[] imageIDs = { R.drawable.wall1, R.drawable.wall2, R.drawable.wall3, R.drawable.wall4, R.drawable.wall5, R.drawable.wa...

@Rahul
see this
Bitmap icon = mBitmap;
Intent share = new Intent(Intent.ACTION_SEND);
share.setType("image/jpeg");
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
icon.compress(Bitmap.CompressFormat.JPEG, 100, bytes);
File f = new File(Environment.getExternalStorageDirectory() + File.separator + "discovercover.jpg");
try {
f.createNewFile();
FileOutputStream fo = new FileOutputStream(f);
fo.write(bytes.toByteArray());
} catch (IOException e) {
e.printStackTrace();
}
share.putExtra(Intent.EXTRA_STREAM, Uri.parse("android.resource://" + getApplicationContext().getPackageName() + "/drawable/discove
i use this code
and getting error
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.graphics.Bitmap.compress(android.graphics.Bitmap$CompressFormat, int, java.io.OutputStream)' on a null object reference
at com.adult_emoji.Free_Cover_Activity$1.onItemClick(Free_Cover_Activity.java:124)
124 is icon.compress(Bitmap.CompressFormat.JPEG, 100, bytes);
@Rahul
 
1:52 PM
@Rahul trying with now table layout ):
 

« first day (497 days earlier)      last day (2753 days later) »