« first day (1677 days earlier)      last day (1798 days later) » 

2:24 AM
Dead chat. :(
 
G'day.
 
 
2 hours later…
4:00 AM
"Positive anything is better than negative thinking." -Elbert Hubbard (source)
 
 
1 hour later…
5:22 AM
how do I get the item clicked from a custom adapter?
I need to send an intent from the activity using it as i can't send from the adapter, and i need to add the id of the item clicked
 
use onItemClickListener
 
is doesn't work
 
Where is the error ?
 
inside the adapter class it does
in the activity it doesn't
 
Give code of your activity
listView.setOnItemClickListener(){
    new AdapterView.OnItemClickListener(){

        @override
        public onItemClick(AdapterView<?> parent, View view, int position, long id){
            MsgObject m = (MsgObject)view.getTag(R.id.listItemTag);
            Toast.makeText(context, "Pos[" + position
                + "] clicked, with msg: " + m.getMessage(), Toast.LENGTH_SHORT).show();
        }
    }

};
 
5:26 AM
all not needed was deleted
the onClick from within the adapter worked
but on the activity it doesn't
is something missing?
 
You dont need this code .
int last=adapter.getLastPosition();
Rather try with this code :
int last = i ;
Hope the code will be ok .
 
still the toast isn't displayed
 
send me your project .
or give me teamviewer access
 
sec
ill give you a link soon
the activity is ViewUploadsActivity
@IccheGuri here it is
 
5:43 AM
ok I am downloading this project
 
I hope you will find whats wrong
 
There is no file in main folder
What have you sent ?
@DeStr
 
6:08 AM
its in the misc folder
wait what
everything is there
OnTheGo->app->src->main
 
I split the files into folders
its in the mainpart folder
sorry about that
mainpart\ViewUploadsActivity
 
Give link
 
give access
 
6:19 AM
this should work I think
found it?
 
yes
 
great
 
There is no file in Misc folder
You are wasting my time
Why do not you upload the full project ?
 
I uploaded the whole project
 
give link
 
Sorry I will not check your project unless you have uploaded the whole project
 
what is your email address
 
sultan@era.com.bd
 
6:49 AM
shared it with you
 
7:04 AM
There is no file in MISC folder
 
cmon
 
    private ArrayList<? extends BaseItem> items = new ArrayList<>();

    public void addItem(BaseItem item) {
        items.add(item);
    }
Does someone see any problem in above code?
 
@rupinderjeet no clue sorry
@IccheGuri look at the picture, the files are there
 
@rupinderjeet , do you face any error ?
ok @DeStr
checking
 
> add <capture<? extends BaseItem>> in ArrayList can not be applied to (BaseItem)
 
7:15 AM
hello everyone
 
I can not insert a BaseItem in an arraylist of its children. :) sounds legal. But, I want to. Would be a complete family.
 
anybody familiar with android programming? :)
 
hello o/
ask it away
 
//groups android
right the bot is offline
 
@rupinderjeet you need to do it like the following way
ArrayList<? extends BaseItem> items = new ArrayList<? extends BaseItem>();
 
7:18 AM
now, that is a compilation error :D
 
so i have this onScale method which doesnt work smooth but kind of shaky when zooming in/out. I'd like to change these values to doubles but it throws error paste.ofcode.org/37HwqJLyjCPvDkcZ6MzMZwF
 
wild cards can not be instantiated directly
 
List<? extends Base> list is a declaration that is not actually designated for declaring variables you cannot add() any object in it, only nulls.
 
ok, so ArrayList<BaseItem> then?
 
Yes
ArrayList<? extends A> means an ArrayList of some unknown type that extends A.
That type might not be C, so you can't add a C to the ArrayList.

In fact, since you don't know what the ArrayList is supposed to contain, you can't add anything to the ArrayList.

If you want an ArrayList that can hold any class that inherits A, use a ArrayList<A>.
 
7:27 AM
@IccheGuri have you figured out what wrong
 
thanks
 
checking
 
ok
 
@rupinderjeet ,thanks. it is a bit complicated. can you guide me to adjust my code ?
 
7:48 AM
@IccheGuri solved it
had to add : android:descendantFocusability="blocksDescendants"
so that it would work
 
Yes I have added it
But adding it also does not solve your case
 
thank you !
why not?
 
Are you successful ?
 
it displays the toast
 
7:54 AM
yup it works
thanks!
 
welcome
 
@IccheGuri can you help me with zoom?:)
 
what is the problem ?
 
so i have this onScale method which doesnt work smooth but kind of shaky when zooming in/out. I'd like to change these values to doubles but it throws error
 
Hi guys!!! can any provide me link for studying basic android..
 
8:10 AM
@IccheGuri so what you think?
 
what error do you get ?
 
I mean not the error coz it works .It is just that the zoom isn't smooth and doesn't go to the corners of the screen/layout but only zooms in from the center of the layout and out. And the second thing is that now I can't swipe to the second page anymore after implementing this code.
 
cant tell
try to explore what is actually happening here
 
how to do it?
exactly
@IccheGuri isnt it better to use ScaleAnimation instead of onScale?
 
may be
 
8:25 AM
thanks Icche
 
\o
 
@LunarWatcher question for you, can I ?:)
 
user8063991
DoggyBot online. Woof woof!
 
user8063991
@IccheGuri Type //help to see all my commands.
 
8:32 AM
//shutdown
 
user8063991
@IccheGuri Only admins can shut me down. :P
 
Sending message [room=145895]: DoggyBot online. Woof woof!
Responding to message [room=19132, user=Icche Guri, id=37565697]: @DoggyBot , get lost
Sending message [room=19132]: :37565697 Type `//help` to see all my commands.
 
user8063991
@LunarWatcher Type //help to see all my commands.
 
user8063991
cough
 
//8ball should DoggyBot get lost?
 
user8063991
8:38 AM
@LunarWatcher My reply is no
 
@LunarWatcher , I am trying to run a web project in netbeans
Tomcat started
but web project does not started
any idea to solve this ?
 
No, I don't use Netbeans or web projects
 
9:06 AM
lmao this tweet:
How I sleep knowing I'm the family disappointment & everyone talks about me https://t.co/UhHzNMvCyB
 
@TheLittleNaruto , help me man
 
user8063991
@IccheGuri Do //groups to find a list of programming langauges. Then do //[programming language name] to get a list of people who can help you with your issue. Woof woof! :D
 
@IccheGuri tell me how can help you
Bengali Boy
 
I am trying to run a web project in netbeans
Tomcat started
but web project does not started
any idea to solve this ?
 
@IccheGuri Run on browser
 
9:14 AM
@IccheGuri any error is thrown !!!
 
user8063991
@Srini5123 Remember to read the rules before you break them ;) Woof woof!
 
@DoggyBot why what I did which breaking the rules
 
user8063991
@Srini5123 Type //help to see all my commands.
 
@DoggyBot can you post where is rule book !!!please!!1
 
user8063991
@Srini5123 Type //help to see all my commands.
 
9:17 AM
//help
 
user8063991
==========| Commands |==========
//8ball               Simulates a magic 8-ball.
//GoToBed             Terminates the bot (admins only).
//about               Displays information about this bot.
//afk                 Allows users to mark themselves as "away".
//announcements       Shows recent updates to the bot that are important
//cat                 Does sumtng magical
//dog                 Displays a random dog picture. :3
//dogclub             It's the dogclub! Use //dogclub to list members, //dogclub join to join the club, or use //dogclub leave to leave the dogclub
 
No not any error is thrown
@Srini5123
I cant do this
@TheLittleNaruto
 
@Srini5123 Look at the room description.
 
@LunarWatcher okay
 
@IccheGuri press F12 and track network tab
on browser
 
9:28 AM
@IccheGuri no error weird
 
I am in linux
When I press F12 , no network tab is come
 
@IccheGuri post your log
 
Where is my log file ?
 
i think netbean
i think in netbean : Window->preferences->type console
@IccheGuri I do same as in eclipse
 
9:43 AM
There is no preference tab in windows tab
Do you want to see server log ?
Tomcat is not started man
So no server log is present there
Can you connect to me via teamviewer ?
 
@IccheGuri I don't know netbeans.
 
pathetic
 
need to connect via teamviewer
u need *
 
9:56 AM
@IccheGuri I am asking to open developer tools where you can see console, network tab etc
 
yes got it
I have opened developer tools
then ?
@TheLittleNaruto
 
 
2 hours later…
11:41 AM
silence
 
//thunder
 
Are any of you familiar with OpenGL ES?
 
 
1 hour later…
user8063991
1:03 PM
reads a book
 
user8063991
@Arjun Remember to read the rules before you break them ;) Woof woof!
 
@DoggyBot Keep Calm and stop woofing. I did not break any rules.
 
user8063991
@Arjun Type //help to see all my commands.
 
Yeah, I know that you are a bot.
 
1:10 PM
@Arjun I daily see a decline in quality, but I guess that is because the old users (meaning rep > 500 IMO) actually do research while the new one-rep users panic at the first sign of error in the tutorial they're following
 
user8063991
@Arjun 99% of the time
 
user8063991
The remaining 1% I'm a bot controlled by someone not listed in my about-description on StackOverflow fighting crime and bad questions... :P
 
@LunarWatcher Thanks for your opinion. :)
 
 
2 hours later…
3:03 PM
anyone online?
 
@IccheGuri then it's too late to help you now...
@DeStr Yea
 
how to write the google maps address so that the user will automatically be routed to location yloc,xloc(that is the order of the coords)
 
@DeStr Didn't really understand you
 
foxxxxxxx why no war?
 
im sending from an activity an intent to google maps
 
3:11 PM
i didnt see any war
 
@ColdFire I'll ask berserk to start it. I never started any war yet.
 
:/
 
@DeStr What is there in intent ?
 
Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("http://maps.google.com/maps?daddr="+yloc+","+xloc));
 
3:13 PM
this just shows the location but doesn't route the user to it
 
It won't route
For routing you have to do a little extra effort
First thing you need to do is to get user's current location
 
do you have a link for a tutorial?
do I have to or I can just change the url?
 
Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
    Uri.parse("http://maps.google.com/maps?saddr=20.344,34.34&daddr=20.5666,45.345"));
startActivity(intent);
where saddr is user's current location
Look for how can you "fetch current location of the user".
 
I know how
 
So next thing is you need to do write above intent ^
 
3:16 PM
got it!
a different question
 
Smart boy
 
wait lemme check something first just to make sure
https://paste.ofcode.org/wmvid4uTga4MnmKm2BtsEL
the iv,titleTv,and descTv aren't set from this action
I checked the vars aren't null or empty
and it gets pass the if statement
@TheLittleNaruto sending the little israeli to saudi arabia are you?
 
@DeStr What do you mean ?
 
3:32 PM
20.5666,45.345-> somewhere in saudi arabia
 
do I get ultra high there?
 
Of course
that's what it for
 
:P
can you still help me with this? paste.ofcode.org/wmvid4uTga4MnmKm2BtsEL
 
user8063991
@DeStr Do //groups to find a list of programming langauges. Then do //[programming language name] to get a list of people who can help you with your issue. Woof woof! :D
 
3:37 PM
@DeStr What is there to help ?
 
when the action is called
the Textviews stay the same
even though the strings that are passed in aren't empty or null
 
3:52 PM
im not sure why though
im just using set text within an action
 
4:07 PM
\o
 
user8063991
o/
 
o/
 
yup
 
@DeStr 1. Confirm if the string is not empty. 2. if it's not empty check if the text color doesn't match background
 
4:10 PM
isn't empty and it displays texyView
white on black
 
@DeStr yup as in c = context?
 
yup as in nvm
 
oh
Could the TextViews be null?
 
That would throw NPE
 
dont think so
 
4:12 PM
Can I access remotely
 
Depends on how the method is caught
 
@TheLittleNaruto how?
 
It throws 3 exception, so if it catches Exception instead of the three individual it would also catch the NPE
 
@DeStr Team Viewer ?
 
but nothing fails, if so then the toast after i set the text should not be displayed right?
 
4:14 PM
right
 
then there is no Exception
somethings fishy
@TheLittleNaruto how to send you the id and pass?
 
@DeStr share and immediately delete
May 1 at 18:00, by TheLittleNaruto
I am the fucking RO you know
 
got it?
 
yep
pass
You need to reset your password
 
now?
 
4:18 PM
I am not able to connect
Unknown Reason
 
here is the new one
still nothing?
 
then maybe copy paste the code here?
 
Can you reset your password ? It should be something like this: 6mzq82
 
i got a 4 digit
 
4:22 PM
Pretty sure Java blew through its C++ inheritance on some kind of drug that made it extremely verbose. The more I work with C# and Java side by side, the more Java makes me want to bleach my eyes. — Damon Drake Jun 4 '15 at 20:03
lel
 
Now I got it
Your way of doing is pretty wrong
AsyncTask does asynchronous call
So you can't expect a value immediately after executing it
 
but i use the get
yah I used get();
it waits for the info to come
again the strings are with the info that I get from the async task
 
You should move your code from int success = jsonObject.getInt("success"); to onPost
Try this way
 
works fine
thanks!
 
hello all
 
4:29 PM
@DeStr Smart boy
@Ramona hey
@DroidDev lol
 
@DroidDev Any language can be made infinitely worse by trying to learn something that is so poorly documented you would have to be a wizard-mind reader-thingy to figure it out
 
why this code is giving me trouble? doesn't work smooth and i'm not able to swipe to the next page/screen?
 
Example: OpenGL ES - so poorly documented I had to find a library that is documented
 
4:44 PM
@TheLittleNaruto Any idea why? See my post above
 
hi android ninjas, i'm just starting out using phonegap. Whats the best practice for creating a lookup table / object within the app, using indexedDB? The table / object would contain 1500 - 2000 records. thanks
 
user8063991
@Dino Remember to read the rules before you break them ;) Woof woof!
 
oopps better check them!
thanks
 
4:58 PM
//phonegap
 
user8063991
@LunarWatcher Sadly, no users can help with questions about phonegap
 
thanks
 
why i can not set scaleFactor for a double value? anybody?
 
@Ramona because it is a float?
 
5:38 PM
changed for double and get error now - Error:(212, 33) error: incompatible types: possible lossy conversion from double to float@LunarWatcher
 
6:13 PM
whenever you add, subtract or do anything with floats, write it like: [number].[decimalvalue]fNOTE THE LOWER-CASE f AT THE END! That says the value is a float and not a double
example: 123.45f, 987.6543f
 
but now I get setScaleX and Y not able to change for double value
what I want to achive is to have a smooth working zoom so I thought to change values but not sure it this is the good idea
it says in View cannot be applied to double
 
14
Q: method in class cannot be applied to given types

user1368970I'm creating a program that generates 100 random integers between 0 and 9 and displays the count for each number. I'm using an array of ten integers, counts, to store the number of 0s, 1s, ..., 9s.) When I compile the program I get the error: RandomNumbers.java:9: error: method generateNumb...

//GoToBed
 
user8063991
6:28 PM
Shutting down. See you later.
 
o/
 
Lunar, why after applying this onScale method I can't swipe to the next screen anymore? Should I write break; somewhere in this method?
 
6:58 PM
@anbuselvan looks good :) maybe you can help me with zoomable layout :)
 
user8063991
computes 10 trillionth digit of pi
 
user8063991
DoggyBot online. Woof woof!
 
user8063991
poof
 
user8063991
licks food bowl
 
user8063991
runs across field
 
user8063991
7:09 PM
creates getters and setters...
 
8:04 PM
//gotobed
 
user8063991
Shutting down. See you later.
 
goodbye dog
 
posted on June 11, 2017 by Cody Toombs

The third developer preview of Android O came with a stack of new versions for Google's assorted apps. Many of them are essentially unchanged from the regular versions available through the Play Store, but there are a few offering up some excellent new features. Android Messages falls into that group as it adds the option to mark a message read from the notification shade and customization f

 

« first day (1677 days earlier)      last day (1798 days later) »