« first day (1536 days earlier)      last day (3429 days later) » 
00:00 - 20:0020:00 - 00:00

8:00 PM
Basically you need to compile your c library for android
are u using Android Studio /gradle?
 
yes
 
ok
a few things:

1) disable the default ndk-build task
it is broken and will ignore your Android.mk
and create its own nonsense one which won't ever work
2) your jni (this c file) should be in: app/src/main/jni
you should put an Android.mk file there as well
it should look something like this:
thats mine for flac
for you the important stuff is the very first line
and then everything after #build jni
get rid of the localSharedLibraries part
and then rename LOCAL_MODULE := LibFlacWrapper
LOCAL_SRC_FILES := LibFlacWrapper-jni.c
to your things
I'm assuming you have the ndk toolchain properly set up?
 
no
actually, I used all the benefits of latest Android Studio - as I understand, they pathed lots of things for NDK. I just put the *.c file where you said and it generates all other. No *.mk files
I was able to compile and use jni method with that way
 
ah you're not linking libraries
so most of the things i'm talking about probably don't matter
 
oh, there's two ways to use native code. Now I get it better. No, I'm not compiling it to *.so
 
8:08 PM
ok cool
so all android run arm
and the default armeabi is sufficient
#define ABI "armeabi"
is the one you want
as for where to put that, i would assume at the top of your file
 
after includes before class definition?
 
but i'm not 100% sure, since i precompiled my library to ARM, and let the ndk-defaults handle the rest
i would assume so
that #define is a preprocessor directive
are you referencing ABI in your code anywhere?
i don't think you actually need it
86
Q: What is Application Binary Interface (ABI)?

clawsI never clearly understood what is an ABI. I'm sorry for such a lengthy question. I just want to clearly understand things. Please don't point me to wiki article, If could understand it, I wouldn't be here posting such a lengthy post. This is my mindset about different interfaces: TV remote is ...

"Also, regarding your note about C++ name mangling: The ABI can define a "standardized" way for a C++ compiler to do name mangling for the purpose of compatibility. That is, if I create a library and you develop a program that uses the library, you should be able to use a different compiler than I did and not have to worry about the resulting binaries being incompatible due to different name mangling schemes."
 
hm, so that ABI is to be used in somth like if ABI = arm {} else {}
I guess I won't need it
 
yea, either that or its in reference to name mangling
i'm not sure which
in either case though, I think you are fine getting rid of it since you're using the same compiler chain to consume that library as was used to generate it
but I would defer to C guru's on these points
 
new hat dance
 
8:19 PM
hehe
 
update!!!
 
DAWW
SO CUTE
 
:D
 
hahah so awesome
 
I feel left out but I like my paratrooper android hat
 
8:28 PM
lol
 
fuck it I can change it back later
 
exactamundo
 
there's my hat
 
hat doesn't look good on me though
 
I've turned it into an ugly christmas sweater
 
8:42 PM
lol
that actually looks pretty sweet
 
LOL
The Origins of the <blink> Tag http://www.montulli.org/theoriginofthe%3Cblink%3Etag “We were drunk at the time…”
 
hahaha
 
9:22 PM
^ When i found out IE was being phased out
 
What's happening Androiders?
Looks like a lot of hat showing off
 
Sweet sweet hats
 
cM is jealous his avatar isn't hat friendly
 
It's true :(
 
Eski is too adorable with the hat
its like.. making me uncomfertable
 
9:32 PM
lol
I feel the same about your google glasses
it's nerdorable?
 
haha
 
hehe
i like that
 
thats one creepy cat
 
^ "So you want to port your app to Window Phone?"
 
9:44 PM
hahaha
trash day cat
 
lol
wait that's not a cat
 
haha
^developing Android apps on a Mac
 
10:08 PM
is there a more elegant way to show tooltips other than using a Toast?
or a generally accepted one?
 
theres a hover text library someone did floating around
 
tooltips?
 
yeah.. some sort of messaging that says "hey you can double-tap this to do a thing"
looks like this SuperToolTips might be the way to go
 
LOL
> This button do nothing very well
yeah that one might work too
 
I really need to get myself a bit more motivated.. Sigh.
 
You can do it Pearson!
 
For those who really want a star/ hat today: chat.stackoverflow.com/rooms/1/sandbox
 
@PearsonArtPhoto Just think about how a stupid app like Yo is evaluated at $50 Million.
this should get you motivated to push out something.
 
10:40 PM
omg
3
users...
 
Haha....I almost fell out of my chair. Can that seriously be real?!?
@PearsonArtPhoto I've been having the same issue :(
I think my hat fits a little better now that I adjusted it except the hat doesn't show up well :/
 
I've had an entire 2 weeks where I could have probably done something, and it looks like I'm not really going to get anything done... Sigh.
 
Yep, same. I've been off the last two weeks. Was able to spend more time with the kids but haven't worked on anything really
 
Hi codeMagic, I'm back! Decided not to bother you and posted on the main SO instead: stackoverflow.com/questions/27713611/…
 
I was just looking at that actually and was about to ask who it was I was talking to yesterday about BT :D
Wasn't sure if that was you
Have you tried on anything < 4.4?
 
10:54 PM
I don't have any other devices handy
Actually, I'm lying. I got the Parrot Asteroid
Gonna give it a shot at some point, too
 
Why aren't you breaking out of the loop once the connection is accepted?
 
How do I accept the next connection, then?
 
@Ahmad do you have several minutes?
 
Or is the best practice to keep the connection open until you're done?
And gotta run again :( Maybe I should stop expecting the BT adapter to function as an TCP socket...
 
11:07 PM
Sorry got distracted. Yes, you would keep it open until you are done and then close the soclets and streams
 
@codeMagic you have some time to talk higher level design?
 
In just a moment I will
You can start, I just might not respond right away
 
trying to figure out how to restructure things to meet the latest desired changes here...
Currently in the top-level mode of the Trover app,
I have a "MainBrowse" activity
which extends FragmentActivity
it has the ViewPager and several tabs of fragments
on the ActionBar,
I have 3 IconButtons
News, Globe, and Profile.
The default if you're not logged in, is to show the Globe, which is the viewpager full of fragments
if you click on either the news iconbutton, or the profile iconbutton, I create a fragment, and add it to the stack
when you click one of the other buttons, I remove that fragment
Well, now what they want is to have two different Viewpagers. One displayed when you're in the Globe mode, and one displayed when you're in the News mode, and for me to move one or two of the fragment/tabs out of the Globe Mode into the new Viewpager on the News mode.
(I wish we had better screenshots of this on our app page so I could display them)
so I'm just trying to think of how to structure things now... does the MainBrowse Activity hold two Viewpagers?
do I split it into two activities, both of which look very similar, and hold the Viewpagers?
having two Activities doesn't seem like the right thing to do, because when the user pushes the 'Back' button when in this view, I want it to exit the app
 
I think what you're looking for is StrictMode
Just kidding
The one activity with two ViewPagers sounds like the way to go to me...no need for two activities unless it will make the code somehow cleaner
 
11:22 PM
do I just show/hide the Viewpagers then?
 
I haven't looked at ViewPager much recently so I'm not sure if that will cause an issue but...
That's what I was thinking
Can't you store those in a fragment in xml and load the appropriate one when needed?
 
gotta head to the car, childcare is only until 4 today
will continue this on my phone from there
 
Okie doke
See ya
 
Just got done splitting up a dog fight so that was fun
 
11:30 PM
Yeah so maybe that's the way to go for now
 
@Carl What about keeping two view pagers in memory, but only having a single view pager in layout.xml, then you set the view pager in xml to be the one you want based on the context
 
That might work too. Would probably have to invalidate the layout or something to get it to refresh
 
@CarlAnderson yeah
what's up?
 
yeah you might need to call a redraw but might have better performance than drawing both and only hiding one.
that's just how I'd approach it and see what happens.
 
Ahmad read my wall of text
 
11:33 PM
Or if you want to get fancy, you could have an animated page swap where you fucking fling the old fragments off the screen and slide in the new ones.
 
LOL
FuckingFlingAnimation
 
you know append the new fragments to the end and have some animation that animates a scroll to the new target fragment and after the animation remove the old fragments from the pager
idk how well that'd work but it'd look cool
 
At some point I have to revisit the memory usage again and try to do better. Right now OutOfMemory errors are happening too often
 
maybe then you want two xmls, one for each pager, and only one is inflated at a time
trade performance for memory
 
I really don't want to do this view pager change though. The last time I tinkered with these files I ended up having to file a bug against the AOSP to fix things
 
11:39 PM
but I don't think you want two Activities. You want two states and when you switch you just load the right pager.
 
7
Q: NullPointerException in FrameLayout.onMeasure()

Carl AndersonEdit: I've created a Github project that crashes in the exact same way as my app does. You can find it here Edit: As I've debugged this and tried various changes, I realized the original code I posted wasn't really relevant, so I removed it: I have an Activity that can switch between 3 differen...

 
I remember that
OH!
why not just use two pager adapters
 
Yeah, I agree, I need to keep it as one activity.
 
just set the adapter. the notify call happens
one pager two adapters.
 
Yeah will give it a shot tomorrow. These are the times where I wish there was another more senior Android Dev on the team to bounce these things off of, but you guys are a good fill in.
 
11:42 PM
I know those feels as the only iOS AND Android Dev
 
Yeah. Also not sure there are that many more experienced people out there
 
Not unless you work at a Tech Giant
 
Luckily I don't have that problem. My "boss", he "knows android'. That's why he wanted me to clean up the layout folders and make everything work on different devices with only one layout folder...genius!
 
such a genius
 
My team at amazon still only had one or two people who knew enough to just go look at the android source code to fix things.
 
11:44 PM
and you can run it on Windows with that emulator right cM!?
 
Of course!
 
I haven't even dabbled in the source code. My philosophy, did it work? no. Do I understand it? kinda? Try something else!
 
wall of text?
oh that wall ;_;
just a min
 
so my iOS update just got reviewed and approved in less than 24 hours
record time
 
11:46 PM
There were certainly people there who really knew their stuff because they were modifying Android for Amazon's own flavor of the OS
 
yeah, though I think Amazon should have stuck with the base and supported google play store
 
Google would have too much leverage then
 
I guess so, we just don't even try to put apps on Kindles though because of it. Too small to spend the time so far.
 
I tried somehow imagine how it's structured but I'm currently unable to
 
11:50 PM
There are only a few players that can take on Google in the Android arena. Amazon, Samsung, and the government of China
 
but in general, no please don't go for 2 activities
this will end bad
 
Yeah I need pictures
 
What you need to do is implement an emulator for iOS and then develop it in Xcode
 
lol carl
 
clearly the best solution
 
11:51 PM
Behold, the Amazon FireWatch
 
Anyway, need to drop out to get the kids. Loving the holiday lack of traffic, but will need to help my wife
Talk to you guys tomorrow.
 
Right now I'm developing our iOS app, running an Android beta, being more directly involved with the China Firmware team with regular voice conferences and developing some server side stuff in PHP for the grills. I'm spread too thin =\
later Carl
 
cya carl!
 
See ya, Carl
 
00:00 - 20:0020:00 - 00:00

« first day (1536 days earlier)      last day (3429 days later) »