From 39216f4bf71d7bbbf951b8deb6fc905cf255e45f Mon Sep 17 00:00:00 2001 From: aminecmi Date: Wed, 3 Dec 2014 12:05:50 +0100 Subject: [PATCH] Commit everything. --- app/proguard-rules.pro | 17 ++ .../bou/sendtowear/app/ApplicationTest.java | 13 ++ app/src/main/AndroidManifest.xml | 27 +++ app/src/main/ic_launcher-web.png | Bin 0 -> 11787 bytes .../bou/sendtowear/app/MainActivity.java | 63 +++++++ .../main/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 1171 bytes .../main/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 773 bytes .../main/res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 1597 bytes .../main/res/drawable-xxhdpi/ic_launcher.png | Bin 0 -> 2566 bytes app/src/main/res/layout/activity_main.xml | 24 +++ app/src/main/res/values-v21/styles.xml | 6 + app/src/main/res/values/strings.xml | 7 + app/src/main/res/values/styles.xml | 8 + build.gradle | 19 ++ device-2014-12-03-115350.png | Bin 0 -> 712767 bytes device-2014-12-03-115548.png | Bin 0 -> 856168 bytes device-2014-12-03-115644.png | Bin 0 -> 723846 bytes gradle.properties | 18 ++ gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 49896 bytes gradle/wrapper/gradle-wrapper.properties | 6 + gradlew | 164 ++++++++++++++++++ gradlew.bat | 90 ++++++++++ settings.gradle | 1 + 23 files changed, 463 insertions(+) create mode 100644 app/proguard-rules.pro create mode 100644 app/src/androidTest/java/com/amine/bou/sendtowear/app/ApplicationTest.java create mode 100644 app/src/main/AndroidManifest.xml create mode 100644 app/src/main/ic_launcher-web.png create mode 100644 app/src/main/java/com/amine/bou/sendtowear/app/MainActivity.java create mode 100644 app/src/main/res/drawable-hdpi/ic_launcher.png create mode 100644 app/src/main/res/drawable-mdpi/ic_launcher.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_launcher.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_launcher.png create mode 100644 app/src/main/res/layout/activity_main.xml create mode 100644 app/src/main/res/values-v21/styles.xml create mode 100644 app/src/main/res/values/strings.xml create mode 100644 app/src/main/res/values/styles.xml create mode 100644 build.gradle create mode 100644 device-2014-12-03-115350.png create mode 100644 device-2014-12-03-115548.png create mode 100644 device-2014-12-03-115644.png create mode 100644 gradle.properties create mode 100644 gradle/wrapper/gradle-wrapper.jar create mode 100644 gradle/wrapper/gradle-wrapper.properties create mode 100644 gradlew create mode 100644 gradlew.bat create mode 100644 settings.gradle diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..bef92eb --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,17 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in C:/Users/Amine/Desktop/android/sdk/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/app/src/androidTest/java/com/amine/bou/sendtowear/app/ApplicationTest.java b/app/src/androidTest/java/com/amine/bou/sendtowear/app/ApplicationTest.java new file mode 100644 index 0000000..830aac2 --- /dev/null +++ b/app/src/androidTest/java/com/amine/bou/sendtowear/app/ApplicationTest.java @@ -0,0 +1,13 @@ +package com.amine.bou.sendtowear.app; + +import android.app.Application; +import android.test.ApplicationTestCase; + +/** + * Testing Fundamentals + */ +public class ApplicationTest extends ApplicationTestCase { + public ApplicationTest() { + super(Application.class); + } +} \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..9b22683 --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/ic_launcher-web.png b/app/src/main/ic_launcher-web.png new file mode 100644 index 0000000000000000000000000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GAzqbAkMW5ngxmX0$$oOz;BKMdB>eF$Us(LnYlo16#sUZs3aonmNQ3VLisrm-B9TRS(a~@SW9RS;?{=ZqgEQX}Tju97KY&nluz=uZ$H_Rlot0 zqEVmSYVQ?nQcTd9?}cc9EWP=IgR0uXG3Q1}a*<0e_9_wxa7_?l)e}5XFTog^wV7mh zx`Vnz6#)jVs0$%L1a*gW_5w$g;zlu0dF{SXSTlw}sQe_sCMSZj*pLwMDD<52bwwD2)3utc`ko8m2FQKwrd>M~#S0UaMc~N|pmNH;t8E}I6Ru~-@Vf~6B zK^rY;fU+NgK;rs``1j4NlqKMBSs-BI%PtW6An?=(;fCggWpzo)6t~u>R0gzCySuV- z8)kxjkGu#7Xn2IqO;bC;9uVfpY#vv`d5CCpn^ShWRtSh?s{%gVAS@=K$V3YA1}1`)u}Ak0}=pBb11!!L>-hljq;z zF{Y@`M*WU(Tu?ar87IQK&2{S@-_)Sgj zu#G)Kb$BtpFNlF@9cUkd}@{-V#iB)VC^dVZlW0S4>@Kc(d2C-~n{%Z_w z`RksaL*`zYxn1Ttz#sQfI2)8ubc7Xu;fpqbE@tl?!cWpD04Fzo%&a)E0@yTBHr}N~ z%ms#(y4=17kUQ%l5itq3%7}@s@Y@o_2}M>eg2aep@G3KiDPlDOaIw}}p;;g807PI~ zE)z>?>+;e1F*{vQM_}3OFMVXclz~}!z90dqngN!AeB4~vJn*v)+5ozk1AQQYo&qWH z>22z2=0TsLzu*}o)p%PPJJ8^kF5v(A<+i}!*qB}VxcNim`Cnc2b&T&<-*tNV{{W{1 BbO`_e literal 0 HcmV?d00001 diff --git a/app/src/main/java/com/amine/bou/sendtowear/app/MainActivity.java b/app/src/main/java/com/amine/bou/sendtowear/app/MainActivity.java new file mode 100644 index 0000000..b030142 --- /dev/null +++ b/app/src/main/java/com/amine/bou/sendtowear/app/MainActivity.java @@ -0,0 +1,63 @@ +package com.amine.bou.sendtowear.app; + +import android.app.Activity; +import android.app.NotificationManager; +import android.content.Intent; +import android.os.Bundle; +import android.support.v4.app.NotificationCompat; +import android.view.View; +import android.widget.Button; +import android.widget.TextView; +import android.widget.Toast; + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + // Get intent, action and MIME type + Intent intent = getIntent(); + String action = intent.getAction(); + String type = intent.getType(); + + if (Intent.ACTION_SEND.equals(action) && type != null) { + if ("text/plain".equals(type)) { + handleSendText(intent); // Handle text being sent + } + Toast.makeText(getApplicationContext(), "Message envoyé.", Toast.LENGTH_LONG).show(); + } + + + Button b = (Button) findViewById(R.id.button); + b.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + TextView t = (TextView) findViewById(R.id.editText2); + createNotification(t.getText().toString()); + } + }); + } + + private void handleSendText(Intent intent) { + String sharedText = intent.getStringExtra(Intent.EXTRA_TEXT); + if (sharedText != null) { + createNotification(sharedText); + } + } + + private void createNotification(String sharedText) { + NotificationCompat.Builder mBuilder = + new NotificationCompat.Builder(this) + .setSmallIcon(R.drawable.ic_launcher) + .setContentTitle("My notification") + .setContentText(sharedText); + + int mNotificationId = 001; + NotificationManager mNotifyMgr = + (NotificationManager) getSystemService(NOTIFICATION_SERVICE); + mNotifyMgr.notify(mNotificationId, mBuilder.build()); + + } +} \ No newline at end of file diff --git a/app/src/main/res/drawable-hdpi/ic_launcher.png b/app/src/main/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..193e3a1b1ee322ff298e209526cbde851e7027e5 GIT binary patch literal 1171 zcmV;E1Z?|>P)Ba1E4#68d`%Xi--T>H)IBIxrcG1;wBm)LQTz z6o6C^7es^VfeerW8iQnT5LDV2W5#>14-5w}(PYp|i|=_l(Z=NSwvun41A{@f(_Qqn1hn)xo^up%1@#yD$K8=IDLYb&cQ^16OrxB{ z%{ny^4D?|vB^2ya;qx^T2EB=7N-z~vfm@)F!?s;%!S$*MLcqpkag5}8G%1p4Kq6@3 zVv2fMcS33n$_;`36z+!hk_K&8?fA0Hr(?kxA<(lX8$gYOK}yxAcq-7}r<_VWX7o16 z%w^JmhpL#<9ZdJBpD#j?OT$cMnJM;M1#|fAzS5_DN`wF}(A^>`LDHaSDi}12GG?z@ zF9cU%(eDUJgYK(f&@LbP7)EJ@F}N8P*Jnu@RIGwQ1s;>a=AcXn?1W95W0D5#Rb^}E z(;>}e`@=#|FKrH+{Ivd7(x6Ng3~CA<(17+kOfJ)ffOu{*-lok+2PgYvRkryqhP;F? zjD02Abfhz%F`(TN?G8wq^TE&BkXMZs2KUXTTFJNWi$a@65_cc34t$j~=(tK*bVis# z^2IjZ9S-iEJxnpJXYT69uc@qJrvXg9M$LD^B-IRB?$DT@v_8okQTS9T zbwthFcR3?iu@du6h7TYi{kcA#Dp7LM}=OBwx#nAD??AcY7 z2SdbXUU4kSHP_=E5)S^(Kr%w%> l($dn>($dn>($Wf~{s4VvIOE6bP5%G@002ovPDHLkV1iJrCv^Y- literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-mdpi/ic_launcher.png b/app/src/main/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..95abace2458b7208d634ad574baef48e95f7a06d GIT binary patch literal 773 zcmV+g1N!`lP)n=Q4flUq9Lbv5=9~&jG7#bh!;0J ziIIp40nuC(6+|)O#oa-1!*%=%{(+*Y*WEQ^&2*rC_zu(cru+R>-LIBZ%FD~k%gd2Q zfSQ;LOR%uAAis~my2ngLEF$w0Sd{Ah5|8yElvhJlr!jq&F}E2vAV zfvI3Q*bX|tOOO+|5B7j5uPv!^SaK~fXT*~liL!_ z#4~oB$w)^ruhSrK7A)qgH8&zY4Qeg!{R#BZuwu-cU}f!CSU}0Fw>( z7^%gW)<@MY4Wt7PR6Tu!i@a&va^~CC3isF<()-t3&jE{s2mcN%*iH-ouj0r^2AW(O zsE=4xW;r6#KKoqAe_xd1)MG-(()hLT!RECi!u*y}Z9^Xk3G{^gXANI7Dfx$m>;($d zULlDtA$~L0L18+<2ZLF7 zQ5LDX|3FLTGe6{9OrC;?%ZwAbW~$HZ~g6x00000NkvXXu0mjf Dx%p%J literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xhdpi/ic_launcher.png b/app/src/main/res/drawable-xhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..adfec6ae7f68ef577fdbac684231b428203b4b0c GIT binary patch literal 1597 zcmV-D2EzG?P)1i$6vt03inw5lR@8!6F}Q#zC}6-qhzq#JB_f(&Kuu9ACSaS078}JaE<_E9u?8?; z2vji|iBu6kSTwlA5M$J!(imG&>V_6tEu!Z*r^)MdwtMH^_j;%2m;67yd3Wai&&*xU zy)yuUAP9mW2!bF8f*=TjAP9ocXQ@D)Yf$4+L&Vm2#-Kh%{cAy8s8y)L#pYnjP(Px+ zLEVI!W>C{nwWto%t73I9_n|sbCs{nl?ff*15xaY{9`%vsbCh!cZV1mHN-B2*LVuZT(DPSj(lGbI4( z0iZj03913L7IhbD5^8mf>0#QAszD8t07O%asz%+0Iv#Z-H!oWarAGciy~|Bii3FfG z51~ee{5Ao#M)L^>5~WC9L0yd+Sf~K311}M0lVJ&G!gN@AjkI`w~?wNSC#Ls9d%eK(oGrOtakH;2|a8r6zw<~#60pAHH6 zUrE5Re$7BFHv3Axm5GT-H~%_kSP5;IOd!* z+L>aZ&-vSD;vW8PGJ3f2{Jt}vZD zw>H!ts8dsxSH$MqTCl&>XWlyj$K0bBfX+fs+~#pbW*R7~JFQ@YihxeGDd4zEG)6_& zLI#+^owuz%t0};^l>x_|t`UHzTsOarhqboS#I+&D%?!B~)c|aA*?gL0Ew|W?P7D}& zlHLvp_+X6yeC~1psx1!XjzH}Q$?pu07=@_@pw(6LX%tmyvHbcF!)}cD&j^hGw7F>h zkdSnSDX!8Sw@=atz%Ca9uoUdALQz_JcYskX3Fa8HH3G21#Q@ma6I#Th62D25yPA>k z#!wBwR@clQ$Y~23EC?}adBXp1(g?s>*8)(?Q~1e-%N>o{7hup=kS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