[android-developers] How to transmit raw 802.11 data packets

2016-12-18 Thread Stern0m1


Is there any way I could transmit raw 802.11 data packets from an android 
app?

I want to transmit data without connecting to a network. The receiver will 
pick it up without a network.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/d23a1404-4642-4274-8dd0-596f30e1df55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] ImageView animated movement from one FrameLayout (parent) to another FrameLayout (should be the new parent)

2016-12-18 Thread Christian Thomas
Hi,

actually I've got some problems, getting an animation running. Please have 
a look to following sketch:





   - I have a GridLayout 3x3, that contains a custom Field Class (extends 
   FrameLayout)  --> I'm new to Android native development and unsure, if the 
   chosen layout-types are the right one for my use case.
   - At bottom left there is a figure (circle) set as a child of the field
   - Now I want to move the figure to the top middle field. *This should be 
   animated*
  - Here some "hacky/testing" code for the first prototype:
  - 
  
  public class Board extends RelativeLayout {
  
  
  private Map fields = new HashMap<>();
  
  ...
  
  public void placeFigure(AbstractFigure figure, String fieldCoord) {
  final Field field = fields.get(fieldCoord);
  field.setFigure(figure);
  }
  
  public void moveFigure(final String fromCoord, final String 
  toCoord) {
  final Field from = fields.get(fromCoord); // EXTENDS 
  FrameLayout
  final Field to = fields.get(toCoord); // EXTENDS FrameLayout
  final AbstractFigure figure = from.leaveFigure(); // EXTENDS 
  ImageView 
//leaveFigure will also remove the Android parent 
  relation between the FrameLayout(Field) and the ImageView (Figure)
  
  if (figure != null) {
  Log.i("BOARD", "FOUND FIGURE = " + figure);
  // ready to perform movement ;-) 
  
  Scene scene = new Scene(to, figure);
  
  //scene.setExitAction(new Runnable() {
  //@Override
  //public void run() { // is actually not performed?!
  //Log.i("SCENE", "setExitAction --> placeFigure 
  to new position...");
  //placeFigure(figure, toCoord);
  //}
  //});
  
  final TransitionSet transitionSet = new TransitionSet();
  
  ChangeTransform changeTransform = new ChangeTransform();
  //changeTransform.setReparent(true);
  //changeTransform.setDuration(3000);
  
  transitionSet.addTransition(new ChangeBounds());
  transitionSet.addTransition(new ChangeTransform());
  
  transitionSet.setDuration(1000);
  transitionSet.setInterpolator(new 
  FastOutSlowInInterpolator());
  final ArcMotion pathMotion = new ArcMotion();
  pathMotion.setMaximumAngle(50);
  transitionSet.setPathMotion(pathMotion);
  
  //TransitionManager.beginDelayedTransition(to);
  TransitionManager.go(scene, transitionSet);
  
  }
  ...
  }
  
  - 
  - For this I thought to use the Transition Framework of the Android 
  SDK, but sadly it is not working.
  - *I will see the figure at the desired field but without an animated 
  movement?!*
  - 
  - 
  
It would be great, if someone can give me a hint or snippet, link or so for 
a similar use case.

Thanks a lot!

Cheers!

Christian

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/6721bd55-f919-4181-ae59-4d105312f20a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Looking to turn a simple Excel worksheet into an Android App

2016-12-18 Thread Paul Bevins
Hi,

My name is Paul and I'm new to the forum. I looked, but did not see this, 
so posting.

I have a simple, one sheet Excel file that does basic calculations, 
counting points for activities done during the week.
I'm looking for a simple way to convert the sheet into an app. 
Right now, it seems like everything wants me to use some sort of web based 
forum for calculations and then drop to the app.
However, frequently, people will not have web access, so this is not 
feasible.
Is there a simple way to get this created?

Alternatively, all the sheet does is count points for people trying to 
improve the quality of their life.
Is there an easy way to build an app that does simple addition and color 
codes correspondingly?

For instance, Journaling gets 3 points for each day done, a total of 7 days 
per item (row).
At 2 days (6 pts) or less, the total is red. 3-5 (9-15 pts), yellow and 6-7 
(18-21), green.

There are four sections. Mental, Physical, Recreational and Spiritual. 
Each of the four (15 row) sections also need to be totaled, though I'm not 
sure I want those colored.

Finally, the complete total of all 60 rows needs to be displayed at the 
bottom, or for an app, maybe on top?

This is a volunteer project and I'm willing to put a bit of money into it.
However, since the people using the app won't be paying for it (or even 
able to), 
this really needs to be as inexpensive as possible, at least to start. 

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/45925b98-f4f9-4a4b-bc60-79c375b90d29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Cannot add Google account after factory settings reset Moto E Android 5.1

2016-12-18 Thread Piotr BÅ‚achut
Hi, 

After reset to factory settings I`m not able to add any google account to 
enable Google Play store.

Scenario:
1. Open google play application (or any other which is connected with 
account, adding account from the settings gives the same result)
2. Put email
3. Put password
4. Put verification code (optional - I`ve tried account with 2 factor auth 
ant without it)
5. Accept privacy policy
6. Application crashes (Google Play has stopped working)

Device information:
Motorola Moto E
Android version: 5.1
Kernel version: 3.4.42-g70ad15f
hudsoncm@ilclbld36 #1
System version: 23.201.3.condor_reteu.reteuall.en.EU.reteu
Compilation number: LPCS23.13-34.8-3

Logs from crash:
12-18 12:34:24.206 13512-13512/? W/System.err: java.lang.
IllegalStateException: The specified child already has a parent. You must 
call removeView() on the child's parent first.
12-18 12:34:24.206 13512-13512/? W/System.err: at 
android.view.ViewGroup.addViewInner(ViewGroup.java:3938)
12-18 12:34:24.206 13512-13512/? W/System.err: at 
android.view.ViewGroup.addView(ViewGroup.java:3788)
12-18 12:34:24.206 13512-13512/? W/System.err: at 
android.view.ViewGroup.addView(ViewGroup.java:3729)
12-18 12:34:24.206 13512-13512/? W/System.err: at 
android.view.ViewGroup.addView(ViewGroup.java:3702)
12-18 12:34:24.206 13512-13512/? W/System.err: at 
com.google.android.gms.auth.login.BrowserActivity.c(SourceFile:936)
12-18 12:34:24.206 13512-13512/? W/System.err: at 
com.google.android.gms.auth.login.x.onPageFinished(SourceFile:882)
12-18 12:34:24.206 13512-13512/? W/System.err: at 
com.android.webview.chromium.WebViewContentsClientAdapter.onPageFinished(WebViewContentsClientAdapter.java:548)
12-18 12:34:24.206 13512-13512/? W/System.err: at 
org.chromium.android_webview.AwWebContentsObserver.didNavigateMainFrame(AwWebContentsObserver.java:67)
12-18 12:34:24.207 13512-13512/? W/System.err: at 
org.chromium.content.browser.WebContentsObserver.didNavigateMainFrame(WebContentsObserver.java:89)
12-18 12:34:24.207 13512-13512/? W/System.err: at 
org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)
12-18 12:34:24.207 13512-13512/? W/System.err: at 
org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:53)
12-18 12:34:24.207 13512-13512/? W/System.err: at 
android.os.Handler.dispatchMessage(Handler.java:102)
12-18 12:34:24.207 13512-13512/? W/System.err: at 
android.os.Looper.loop(Looper.java:135)
12-18 12:34:24.207 13512-13512/? W/System.err: at 
android.app.ActivityThread.main(ActivityThread.java:5343)
12-18 12:34:24.207 13512-13512/? W/System.err: at 
java.lang.reflect.Method.invoke(Native Method)
12-18 12:34:24.207 13512-13512/? W/System.err: at 
java.lang.reflect.Method.invoke(Method.java:372)
12-18 12:34:24.207 13512-13512/? W/System.err: at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
12-18 12:34:24.207 13512-13512/? W/System.err: at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
12-18 12:34:24.212 13512-13512/? A/chromium: [FATAL:jni_android.cc(295)] 
Check failed: false. Please include Java exception stack in crash report
12-18 12:34:24.248 13997-13512/? W/google-breakpad: -BEGIN BREAKPAD 
MICRODUMP-
12-18 12:34:24.249 13997-13512/? W/google-breakpad: O A arm 02 armv7l 
3.4.42-g70ad15f #1 SMP PREEMPT Mon Feb 22 10:07:50 CST 2016
12-18 12:34:24.249 13997-13512/? W/google-breakpad: S 0 BEFAEA18 BEFAE000 
3000
12-18 12:34:24.268 13997-13512/? W/google-breakpad: S BEFAE000 
520302A0EC31E7B62A00010020003EE8FABEE91BE6B63CE6FABE44E1FABE08E1FABEDA0A3CA90400DA0A3CA908E1FABE030044E1FABEA0E1FABEC4E6FABEECFF6C0B3CA9ED2EE6B6803FD056F0B7803FE47DE8B6445D18B53CE6FABEDA0A3CA903E1FABE1E00803F04E1FABEBBC6BB9B00A0BBC6BB9BBBC6BB9B80FA4AA95CEAFABE34EBFABE27E927A824EBFABE74001B006C0080FA4AA980FA4AA93700E47DE8B65CEAFABEBBC6BB9B3CEBFABE5CEAFABE705079B80CE2FABE0CEBFABED4E1FABE01005CEAFABE705079B8010081FE27A83CEBFABE14EBFABE1CEBFABE13001B008A001B008A00
12-18 12:34:24.269 13997-13512/? W/google-breakpad: S BEFAE180