http://www.nextbus.com/xmlFeedDocs/NextBusXMLFeed.pdf
http://webservices.nextbus.com/service/publicXMLFeed?command=agencyList
Obtain a list of available transit agencies.
http://www.nextbus.com/xmlFeedDocs/NextBusXMLFeed.pdf
http://webservices.nextbus.com/service/publicXMLFeed?command=agencyList
Obtain a list of available transit agencies.
RecyclerView
does not have an OnItemClickListener like it's predecessor, ListView
. However, detecting item clicks is pretty simple.
Set an OnClickListener
in your ViewHolder
creation:
private class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder> {
public static class ViewHolder extends RecyclerView.ViewHolder
#include <cstdio> | |
#include <cassert> | |
#include <stdint.h> | |
#include <vector> | |
#include <string> | |
#include <iostream> | |
#include <iomanip> | |
using namespace std; |
[...] = starting state | |
States: | |
not running (dead) | |
onResume (running) | |
onStop (minimized) | |
onPause (screen off) | |
Launch Application: |
import android.annotation.TargetApi; | |
import android.os.Build; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.LinkedBlockingQueue; | |
import java.util.concurrent.ThreadPoolExecutor; | |
import java.util.concurrent.TimeUnit; | |
/** | |
* Created by Grantland Chew on 11/14/13. |
// source: http://stackoverflow.com/questions/7841610/xcode-4-2-debug-doesnt-symbolicate-stack-call | |
void uncaughtExceptionHandler(NSException *exception) { | |
NSLog(@"CRASH: %@", exception); | |
NSLog(@"Stack Trace: %@", [exception callStackSymbols]); | |
// Internal error reporting | |
} | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ |
To fix the following warning, you must add "-keepattributes EnclosingMethod" to your proguard config. | |
Dx warning: Ignoring InnerClasses attribute for an anonymous inner class | |
(me.kiip.internal.c.h) that doesn't come with an | |
associated EnclosingMethod attribute. This class was probably produced by a | |
compiler that did not target the modern .class file format. The recommended | |
solution is to recompile the class from source, using an up-to-date compiler | |
and without specifying any "-target" type options. The consequence of ignoring | |
this warning is that reflective operations on this class will incorrectly | |
indicate that it is *not* an inner class. |