This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) { | |
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_USER_PORTRAIT); | |
lastOrientationRequested = Configuration.ORIENTATION_PORTRAIT; | |
} else { | |
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_USER_LANDSCAPE); | |
lastOrientationRequested = Configuration.ORIENTATION_LANDSCAPE; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DumbViewHolder extends RecyclerView.ViewHolder { | |
TextView textTitle; | |
TextView textLocation; | |
TextView textDate; | |
ImageView mapIcon; | |
public DumbViewHolder(View itemView) { | |
super(itemView); | |
textTitle = (TextView) itemView.findViewById(R.id.text_title); | |
textLocation = (TextView) itemView.findViewById(R.id.text_location); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ExcellentAdventure { | |
@Retention(SOURCE) | |
@StringDef({ERA_BC, ERA_AD}) | |
public @interface Era { | |
} | |
public static final String ERA_BC = "BC"; | |
public static final String ERA_AD = "AD"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* For debug builds, this adds the ability to set up StrictMode on the fly via the command line with a command like | |
* adb shell am broadcast -a com.your.pakcage.action_change_strict_mode --ez enabled true --esa penalties log\,flash\,death | |
*/ | |
private void setupStrictModeReceiver() { | |
if (BuildConfig.DEBUG) { | |
final String tag = "StrictModeReceiver"; | |
IntentFilter intentFilter = new IntentFilter(); | |
intentFilter.addAction("com.your.package.action_change_strict_mode"); | |
registerReceiver(new BroadcastReceiver() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.signnow.android.util; | |
public class IconFontMapping { | |
public enum Icon { | |
CURSOR(0, ""), CROSSHAIR(1, "⌖"), SCREENSHOT(2, "⌖"), SEARCH(3, "🔎"), ZOOM(4, ""), ZOOMIN(5, ""), ZOOMOUT( | |
6, ""), VIEW(7, "👀"), EYE(8, "👀"), LOOK(9, "👀"), VISIBLE(10, "👀"), VISIBILITY(11, "👀"), ATTACH( | |
12, "📎"), ATTACHMENT(13, "📎"), PAPERCLIP(14, "📎"), LINK(15, "🔗"), UNLINK(16, ""), MOVE(17, ""), EDIT( | |
18, "✎"), WRITE(19, "✎"), PENCIL(20, "✎"), WRITINGDISABLED(21, ""), PENCILDISABLED(22, ""), ERASE(23, | |
"✐"), ERASER(24, "✐"), COMPOSE(25, "📝"), LOCK(26, "🔒"), LOCKED(27, "🔒"), PRIVATE(28, "🔒"), SECURE( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
cp /data/data/com.signnow.android/databases/documents.db /sdcard/ | |
cp /data/data/com.signnow.android/databases/signnow.db /sdcard/ | |
exit | |
exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GetNonceServlet extends HttpServlet{ | |
public final static String KNOWN_NONCES = "KNOWN_NONCES"; | |
@Override | |
public void doGet(HttpServletRequest req, HttpServletResponse resp) | |
throws IOException { | |
resp.setContentType("text/plain"); | |
// We need a session object to store temporary data for the user. | |
HttpSession session = req.getSession(); |