Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
6127450d
Commit
6127450d
authored
Dec 12, 2012
by
hal
Committed by
Gerrit Review System
Dec 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fixes to docs for screen orientation and texting
Change-Id: I8302509a30c092e1ddab1ea84d05505b2adfb9d2
parent
6bddc40d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
appinventor/components/src/com/google/appinventor/components/runtime/Form.java
...s/src/com/google/appinventor/components/runtime/Form.java
+9
-4
appinventor/components/src/com/google/appinventor/components/runtime/Texting.java
...rc/com/google/appinventor/components/runtime/Texting.java
+1
-1
No files found.
appinventor/components/src/com/google/appinventor/components/runtime/Form.java
View file @
6127450d
...
...
@@ -682,13 +682,20 @@ public class Form extends Activity
}
/**
* The requested screen orientation. Commonly used values are
unspecified (-1), landscape (0), portrait (1), sensor (4), and user (2). " +
"See the Android developer documentation for ActivityInfo.Screen_Orientation for the " +
"complete list of possible settings.
*
* ScreenOrientation property getter method.
*
* @return screen orientation
*/
@SimpleProperty
(
category
=
PropertyCategory
.
APPEARANCE
,
description
=
"The requested screen orientation. Commonly used values are"
+
" \"unspecified\", \"landscape\", \"portrait\", \"sensor\", and \"user\"."
)
" unspecified (-1), landscape (0), portrait (1), sensor (4), and user (2). "
+
"See the Android developer docuemntation for ActivityInfo.Screen_Orientation for the "
+
"complete list of possible settings."
)
public
String
ScreenOrientation
()
{
switch
(
getRequestedOrientation
())
{
case
ActivityInfo
.
SCREEN_ORIENTATION_BEHIND
:
...
...
@@ -728,9 +735,7 @@ public class Form extends Activity
*/
@DesignerProperty
(
editorType
=
PropertyTypeConstants
.
PROPERTY_TYPE_SCREEN_ORIENTATION
,
defaultValue
=
"unspecified"
)
@SimpleProperty
(
category
=
PropertyCategory
.
APPEARANCE
,
description
=
"The requested screen orientation. Commonly used values are"
+
" \"unspecified\", \"landscape\", \"portrait\", \"sensor\", and \"behind\"."
)
@SimpleProperty
(
category
=
PropertyCategory
.
APPEARANCE
)
public
void
ScreenOrientation
(
String
screenOrientation
)
{
if
(
screenOrientation
.
equalsIgnoreCase
(
"behind"
))
{
setRequestedOrientation
(
ActivityInfo
.
SCREEN_ORIENTATION_BEHIND
);
...
...
appinventor/components/src/com/google/appinventor/components/runtime/Texting.java
View file @
6127450d
...
...
@@ -347,7 +347,7 @@ import android.widget.Toast;
"notification. "
+
"Selecting the notification will bring up the app and signal the MessageReceived "
+
"event. Messages received when the app is dormant will be queued, and so "
+
"several
ReceivingEnabled event
might appear when the app awakens. As an app "
+
"several
MessageReceived events
might appear when the app awakens. As an app "
+
"developer, it would be a good idea to give your users control over this property, "
+
"so they can make their phones ignore text messages when your app is installed."
)
public
boolean
ReceivingEnabled
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment