[android-developers] Digest for android-developers@googlegroups.com - 10 updates in 9 topics

Sudhakar The <the.sudhakar@gmail.com>: May 07 07:55PM -0700

Hi, I want to know what is the best way to develop a (network) file system provider. Is there any such class already defined?
 
Thanks
Arianna Milazzo <arianna@ariannamicrochip.it>: May 07 05:26PM -0700

Hello!
I use a Sony Smartwatch 3 with an iphone 6.
To use app, I manually install "wear part of app" (.apk insisde /raw .apk)
with adb.
 
But I can only use app that don't require mobile part of app :(
 
For example I can't use google calendar on my smartwatch.
Isn't it possible that the smartwatch is connected, via WiFi, directly to
google calendar without going through the phone?
Why doesn't exist an app, only for smartwatch, to manage a google account?
 
This is only for an idea... ;)
 
Arianna
benjamin.schneider.de@gmail.com: May 07 01:43PM -0700

I just setup a libGDX project in Android Studio. Among others, it has two
sub-projects 'android' and 'desktop'.
 
I have two Run Configurations:
 
 
- The standard 'android' one that gets created automatically
- A 'desktop' gradle task that is calling desktop:run
 
The 'desktop' project does not depend on the 'android' project in any way.
However, when I run the desktop configuration, Android Studio tries to
execute android:run, which fails because my emulator is not running (I
don't need that for a Desktop build).
 
If I run the following manually inside the terminal:
 
./gradlew desktop:run
 
Gradle runs as expected without invoking android:run
 
I already rebuilt the project and cleared Android Studio's caches, but
described behavior remains. Any ideas what is causing this?
 
Android Studio version: 2.1
Gradle version: 2.13
OSX version: 10.11.4
Java version: 1.8.0_77
Amir Hadifar <hadifar.amir@gmail.com>: May 07 12:11PM -0700

I read Documentation about Android studio version 2.0 (2.1) and cool update
about cacheing system. But I didnt understand why it take too much time in
first launch in android studio ? could you please clarify this issue ?
omalbaraa33 <om.albaraa33@gmail.com>: May 07 11:18AM -0700

hello everybody..
 
i wrote java code in eclipse to create a simple apllication to send textbox
content to c# application..
 
this is my code please
 
package com.example.clientsideand;
 
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.Socket;
import java.net.UnknownHostException;
 
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
 
public class MainActivity extends Activity {
 
Button b;
EditText et;
TextView tv;
private Socket socket;
int PORT = 4003;
String HOST = "10.0.2.2";
private Handler textview_handler_thread;
class ClientThread implements Runnable {
@Override
public void run()
{
try {
socket = new Socket(HOST, PORT);
 
BufferedReader in = new BufferedReader(new
InputStreamReader(socket.getInputStream()));
 
String server_response_str;
 
Message msg = null;
while(true) {
msg = textview_handler_thread.obtainMessage();
String temp = in.readLine();
msg.obj = "Process Completed Succesfully";
textview_handler_thread.sendMessage(msg);
}
}
catch (Exception e){
e.printStackTrace();
}
}
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
b = (Button) findViewById(R.id.button1);
et = (EditText) findViewById(R.id.editText1);
new Thread(new ClientThread()).start();
 
textview_handler_thread = new Handler() {
public void handleMessage(Message msg) {
Object o = msg.obj;

if (o == null)
o = "";

TextView tv = (TextView)findViewById(R.id.textView1);
tv.setText(o.toString());
}
};
b.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
try {
String input_str;
String server_response_str;
DataOutputStream output_to_server = new
DataOutputStream(socket.getOutputStream());
String client_str = et.getText().toString();
output_to_server.writeBytes(client_str);
output_to_server.flush();
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
 
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
 
}
 
 
the layout file
 
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
 
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/button1"
android:layout_centerHorizontal="true"
android:layout_marginTop="38dp" />
 
<EditText
android:id="@+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="86dp"
android:ems="10" />
 
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/editText1"
android:layout_alignParentTop="true"
android:layout_marginTop="40dp"
android:text="Command"
android:textAppearance="?android:attr/textAppearanceMedium" />
 
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/editText1"
android:layout_centerHorizontal="true"
android:layout_marginTop="105dp"
android:text="Delegate" />
 
</RelativeLayout>
 
 
the problem is No connection recived in c# side !!
what is the wrong thing in my code please?
i cant test the code in the emulator, my android application did not appear
in the emulator !!
So i just test my application using android device ...
 
 
thanks in advanced..
Samer Abu Quta <samquta@gmail.com>: May 07 08:35AM -0700

solved it
??????
 
 
 
 
 
بتاريخ الأربعاء، 23 يناير، 2013 6:34:16 ص UTC+2، كتب scadaguru:
Samer Abu Quta <samquta@gmail.com>: May 07 08:27AM -0700

AudioManager amanager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
amanager.setRingerMode(AudioManager.RINGER_MODE_SILENT);
 
 
this code is not run on all android vesrions
 
help me
christian cuadros arguedas <chrismark182@gmail.com>: May 07 05:21AM -0700

problem loading the android studio
 
<https://lh3.googleusercontent.com/-ISeRJU-fAV4/Vy3dw9jk7BI/AAAAAAAAAKE/PaBzcKDBoBgZ-uAnFniQfw5HB4gulDK6QCLcB/s1600/imagen2.jpg>
Mark Phillips <mark@phillipsmarketing.biz>: May 07 08:01AM -0700

Reinstall??
 
Mark
 
On Sat, May 7, 2016 at 5:21 AM, christian cuadros arguedas <
Mark Phillips <mark@phillipsmarketing.biz>: May 07 08:00AM -0700

The file may be there, but it appears to be empty - look at the error
message. Check the size of the file and the path to the file - you may be
looking in the wrong place for the file when you say "file is still on
location."
 
On my Ubuntu system I have the following -
mark@tsunami:~/junk$ locate support-annotations-23.3.0.jar
/home/mark/Android_Studio/sdk/extras/android/m2repository/com/android/support/support-annotations/23.3.0/support-annotations-23.3.0.jar
/home/mark/Android_Studio/sdk/extras/android/m2repository/com/android/support/support-annotations/23.3.0/support-annotations-23.3.0.jar.md5
/home/mark/Android_Studio/sdk/extras/android/m2repository/com/android/support/support-annotations/23.3.0/support-annotations-23.3.0.jar.sha1
 
The jar file is 19K in size.
 
You could also try downloading the sdk again.
 
Mark
 
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to android-developers+unsubscribe@googlegroups.com.

No comments:

Post a Comment