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
| import android.accounts.Account; | |
| import android.accounts.AccountManager; | |
| import android.annotation.TargetApi; | |
| import android.content.Context; | |
| import android.content.SharedPreferences; | |
| import android.content.SharedPreferences.Editor; | |
| import android.os.Build; | |
| import android.preference.PreferenceManager; | |
| import com.google.android.gms.auth.GoogleAuthUtil; |
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
| from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage | |
| device = MonkeyRunner.waitForConnection() | |
| from javax.swing import JButton, JFrame, JPanel, ImageIcon | |
| frame = JFrame('Android Display!', | |
| defaultCloseOperation = JFrame.EXIT_ON_CLOSE, | |
| size = (960, 540) | |
| ) |
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.example; | |
| import android.content.Context; | |
| import android.database.Cursor; | |
| import android.support.v4.app.Fragment; | |
| import android.support.v4.app.FragmentManager; | |
| import android.support.v4.app.FragmentPagerAdapter; | |
| import android.util.SparseIntArray; | |
| import android.view.ViewGroup; | |
| import android.provider.BaseColumns; |
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.advinture.ukuleletabs.fragments; | |
| import android.app.ExpandableListActivity; | |
| import android.app.Fragment; | |
| import android.os.Bundle; | |
| import android.view.Gravity; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.AbsListView; |
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
| from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage | |
| import datetime | |
| def capture_and_save(fname): | |
| device = MonkeyRunner.waitForConnection() | |
| snapshot = device.takeSnapshot() | |
| snapshot.writeToFile(fname) | |
| def capture(prefix=""): | |
| d = datetime.datetime.now() |
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 some.awesome.package; | |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.util.AttributeSet; | |
| import android.view.View; | |
| import android.view.animation.Animation; | |
| import android.view.animation.Animation.AnimationListener; | |
| import android.view.animation.Transformation; | |
| import android.widget.RelativeLayout; |
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.thuytrinh.cardselectordemo; | |
| import android.os.Bundle; | |
| import android.support.v4.view.PagerAdapter; | |
| import android.support.v4.view.ViewPager; | |
| import android.support.v4.view.ViewPager.OnPageChangeListener; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.ImageView; | |
| import android.app.Activity; |
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
| /* | |
| * Copyright 2012 Google Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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
| /* | |
| * Copyright (C) 2012 Sebastian Kaspari | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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
| # -*- coding: utf-8 -*- | |
| from com.android.monkeyrunner import MonkeyRunner | |
| class MonkeyrunnerLibrary(object): | |
| """docstring for ClassName""" | |
| ROBOT_LIBRARY_SCOPE = 'Global' | |
| self.device = MonkeyRunner.waitForConnection() |