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 Location implements Parcelable{ | |
@Expose | |
private Integer id; | |
@Expose | |
private Coords coords; | |
@Expose | |
private Double distance; | |
public Location(Parcel in) { |
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 Version implements Parcelable { | |
@Expose | |
private String versionname; | |
@Expose | |
private Integer versionid; | |
@Expose | |
private Integer pageid; | |
@Expose | |
private Integer pagenumber; |
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
10-22 09:20:39.483 3359-3359/devaamci.testlifecycle E/myActivity﹕ onCreate | |
10-22 09:20:39.483 3359-3359/devaamci.testlifecycle E/myActivity﹕ onStart | |
10-22 09:20:39.493 3359-3359/devaamci.testlifecycle E/myActivity﹕ onResume | |
10-22 09:20:39.533 3359-3359/devaamci.testlifecycle I/Adreno-EGL﹕ <qeglDrvAPI_eglInitialize:381>: EGL 1.4 QUALCOMM build: (CL3869936) | |
OpenGL ES Shader Compiler Version: 17.01.11.SPL | |
Build Date: 01/17/14 Fri | |
Local Branch: | |
Remote Branch: | |
Local Patches: | |
Reconstruct Branch: |
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
try { | |
PackageInfo info = getPackageManager().getPackageInfo( | |
"com.testing.yourPackageName", | |
PackageManager.GET_SIGNATURES); | |
for (Signature signature : info.signatures) { | |
MessageDigest md = MessageDigest.getInstance("SHA"); | |
md.update(signature.toByteArray()); | |
Log.d("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT)); | |
textView.setText(Base64.encodeToString(md.digest(), Base64.DEFAULT)); | |
} |
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
10-29 16:50:16.923 11430-11430/com.devaa.debugstaging E/AndroidRuntime﹕ FATAL EXCEPTION: main | |
Process: com.devaa.debugstaging, PID: 11430 | |
java.lang.NullPointerException: uriString | |
at android.net.Uri$StringUri.<init>(Uri.java:467) | |
at android.net.Uri$StringUri.<init>(Uri.java:457) | |
at android.net.Uri.parse(Uri.java:429) | |
at com.devaa.app.activities.PDPActivity$AddToListOnClickListener.removeFromList(PDPActivity.java:483) | |
at com.devaa.app.activities.PDPActivity$AddToListOnClickListener.onClick(PDPActivity.java:446) | |
at android.view.View.performClick(View.java:4630) | |
at android.view.View$PerformClick.run(View.java:19331) |
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 BActivity extends Activity implements View.OnClickListener { | |
private Button mLaunchMainButton; | |
private Button mLaunchBButton; | |
private Button mDoIt; | |
@Override protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
Log.e("bActivity", "otCreate"); | |
setContentView(R.layout.activity_my); | |
mLaunchMainButton = (Button) findViewById(R.id.launch_main); |
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
Author.joins(:articles).where(articles: { author: author }) |
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
class TutorialsController < ApplicationController | |
before_action :set_tutorial, only: [ :show ] | |
before_action :correct_user, only: [ :show, :edit, :update, :destroy ] | |
before_action :authenticate_user! | |
... | |
... | |
... | |
private |
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 step.title != nil %> | |
<p> | |
<%= step.title %> | |
<%= step.problem %> | |
<%= step.solution %> | |
<%= link_to 'Destroy', tutorial_step_path, method: :delete, data: { confirm: 'Are you sure?' } %> | |
</p> | |
<% end %> |
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 step.title != nil %> | |
<p> | |
<%= step.title %> | |
<%= step.problem %> | |
<%= step.solution %> | |
<%= link_to 'Show', tutorial_step_path(tutorial_id, step) %> | |
<%= link_to 'Destroy', tutorial_step_path(tutorial_id, step), method: :delete, data: { confirm: 'Are you sure?' } %> | |
</p> | |
<% end %> |