[android-developers] How can I make my Android a GPRS server to be accessed from the Internet?

2012-11-20 Thread Antonis Kanaris
Hello.I am new android developer and i want to make a simple application to acesss byte data from one file into my webserver(www.mydomain.com/Ledstate.txt and store to a string.I want out the data to bluetooth or to usb for command my arduino board(example on off led).I want help.code for

[android-developers] HttpUrlConnection no print data to my screen

2012-11-20 Thread Antonis Kanaris
I am new android developer. I am trying this code for access data from my webserver @Overridepublic void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); URL url; try { url = new

[android-developers] Get data from the web on android with AsyncTask....

2012-11-21 Thread Antonis Kanaris
Hello.I am new developer and i want a good simple and analytical example for get data from my website.net/ledstate.txt with AsyncTaski try without asynctask and no workthis code...with permissions internet public class GetDataWeb extends Activity { @Override

[android-developers] Get data from the web on android with AsyncTask

2012-11-21 Thread Antonis Kanaris
I am new developer and i want a good simple and analytical example for get data from my website.net/ledstate.txt with AsyncTaski try without asynctask and no workthis code...with permissions internet public class GetDataWeb extends Activity { @Override public void

[android-developers] Automate update every x secs get data from myUrl

2012-11-21 Thread Antonis Kanaris
Hello.I am new developer android and i want to make an application read data from my webserver and control my arduino board... I start with this example .for get data...ok work but only when click buttoni want to convert to automatic update.How i make this?. public class

[android-developers] problem with timer and AsyncTask error....

2012-11-22 Thread Antonis Kanaris
Hello.I try this code for get data from mywebsite every x secsbut i have a syntax error on token.Why? public class ReadWebpageAsyncTask extends Activity { private TextView textView; /** Called when the activity is first created. */ @Override public void onCreate(Bundle

[android-developers] Auto refresh data from webserver to activity

2012-11-22 Thread Antonis Kanaris
Hello.I want to make an application for get web data every x secs i try this code but no work...where is the mistake?Thanks. public class ReadWebpageAsyncTask extends Activity { private TextView textView; private final Handler handler = new Handler(); @Override public void

[android-developers] Re: Auto refresh data from webserver to activity

2012-11-22 Thread Antonis Kanaris
Τη Παρασκευή, 23 Νοεμβρίου 2012 8:38:22 π.μ. UTC+2, ο χρήστης Antonis Kanaris έγραψε: Hello.I want to make an application for get web data every x secs i try this code but no work...where is the mistake?Thanks. public class ReadWebpageAsyncTask extends Activity { private

[android-developers] Re: Auto refresh data from webserver to activity

2012-11-22 Thread Antonis Kanaris
I use Android:onClickvoid for call from layout main activity...is ok?or wrong method? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

[android-developers] Re: Auto refresh data from webserver to activity

2012-11-23 Thread Antonis Kanaris
i use this code for call function refreshRunable from button layout... Button android:id=@+id/button1 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_alignRight=@+id/textView1 android:layout_below=@+id/textView1

[android-developers] Re: Auto refresh data from webserver to activity

2012-11-23 Thread Antonis Kanaris
I have this message on editor main.java ... The value of the field ReadWebpageAsyncTask.refreshRunnable is not used -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Re: Auto refresh data from webserver to activity

2012-11-23 Thread Antonis Kanaris
Τη Παρασκευή, 23 Νοεμβρίου 2012 10:38:57 π.μ. UTC+2, ο χρήστης skink έγραψε: Antonis Kanaris wrote: i use this code for call function refreshRunable from button layout... Button android:id=@+id/button1 android:layout_width=wrap_content

[android-developers] Re: Auto refresh data from webserver to activity

2012-11-23 Thread Antonis Kanaris
How i can use this http://stackoverflow.com/questions/5822161/refreshing-the-activity inside my code with AsyncTask for update activity? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Auto refresh data from webserver to activity

2012-11-23 Thread Antonis Kanaris
ok i look it betterthanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Re: Auto refresh data from webserver to activity

2012-11-23 Thread Antonis Kanaris
Τη Παρασκευή, 23 Νοεμβρίου 2012 2:06:11 μ.μ. UTC+2, ο χρήστης Paul-Peter Tournaris έγραψε: You should try to use an AlarmManager isntead and create a Broadcast Receiver to update the data when the Alarm is fired Please send me a link with a good tutorial for convert my code with

[android-developers] Problem get data web sent bluetooth

2012-11-26 Thread Antonis Kanaris
Hello.I try this code package com.example.timer1; ; public class ReadWebArduino1 extends Activity { TextView txt; Handler handler = new Handler(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

[android-developers] Android application with usb host shield 2.0 and arduino problem

2012-12-04 Thread Antonis Kanaris
I try test Usb host shield 2.0+Arduino duemilanove with example ArduinoBlinkLED sketch from Usb host shield 2.0 Library.I upload it in my arduino board and after upload to my android cell phone(4.0.4) this application

[android-developers] Android get web data and output to usb

2012-12-06 Thread Antonis Kanaris
I want to make an application to get web data and out to usb every x secs.I make it for output to bluetooth.For get web data i use AsyncTask and timer for repeat.I found this for usb http://allaboutee.com/2011/12/31/arduino-adk-board-blink-an-led-with-your-phone-code-and-explanation/How i

[android-developers] How i call IntentService from Broadcast Receiver?

2012-12-07 Thread Antonis Kanaris
I make an intent service for download data and i want to repeat with broadcast receive and alarm manager.How i call my intent service?I try this but no work public class AlarmActivity extends Activity { @Overridepublic void onCreate(Bundle savedInstanceState) {

[android-developers] Download web data out to usb automate repeat

2012-12-08 Thread Antonis Kanaris
I make this service for download file.How convert code for output data to usb+arduino? public class DownloadService extends IntentService { private int result = Activity.RESULT_CANCELED; public DownloadService() { super(DownloadService); } // Will be called asynchronously be

[android-developers] Problem read data from file out to usb

2012-12-09 Thread Antonis Kanaris
I try this but work only for text no out the dataAny help? public void blinkLED(View v){ //Find the directory for the SD Card using the API //*Don't* hardcode /sdcard String line = null; File sdcard = Environment.getExternalStorageDirectory();

[android-developers] Read file convert bytes

2012-12-10 Thread Antonis Kanaris
Hello.I have a simple file.txt with only data the 1 but when put if(value==1) no work why? File sdcard = Environment.getExternalStorageDirectory(); //Get the text file File file = new File(sdcard,LEDstate.txt); byte[] byteArray = new byte[(int)

[android-developers] Problem stop repeat alarmmanager.

2012-12-11 Thread Antonis Kanaris
I make an application download file repeat with alarm manager and my problem is how i call alarmmanager.cancel() with button on click for stop it.My code is... protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

[android-developers] How stop alarm manager and call cancel

2012-12-11 Thread Antonis Kanaris
I make an application download file repeat with alarm manager and my problem is how i call alarmmanager.cancel() with button on click for stop it.My code is... protected void onCreate(Bundle savedInstanceState) { super.onCreate( savedInstanceState);

[android-developers] How stop alarm manager problem call cancel

2012-12-11 Thread Antonis Kanaris
I make an application download file repeat with alarm manager and my problem is how i call alarmmanager.cancel() with button on click for stop it.My code is... protected void onCreate(Bundle savedInstanceState) { super.onCreate( savedInstanceState);

[android-developers] SharedPreferences no work

2012-12-13 Thread Antonis Kanaris
Hello.I make an apk with two activities and use SharedPreferences for store user values but no workthis is my code...Need something extra to manifest for work SharedPreferences? public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) {

[android-developers] Re: SharedPreferences no work

2012-12-14 Thread Antonis Kanaris
Τη Παρασκευή, 14 Δεκεμβρίου 2012 9:15:12 π.μ. UTC+2, ο χρήστης Antonis Kanaris έγραψε: Hello.I make an apk with two activities and use SharedPreferences for store user values but no workthe string url no store this is my code...Need something extra to manifest for work

[android-developers] problem display all data sharedpreference

2012-12-14 Thread Antonis Kanaris
I save data url,device name but when call getstring display only device name...this is my functionfor one string work ok public void Save(View view) { SharedPreferences preferences = getSharedPreferences(dataioweb.txt , MODE_PRIVATE);

[android-developers] How to upload to a webserver simple integer variable from android?

2012-12-17 Thread Antonis Kanaris
How to upload to my webserver a simple integer variable from android?I want send the temperature variable.My server support php.Need permisions from webserver? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] How use and call AsyncTask into my code for upload data?

2012-12-17 Thread Antonis Kanaris
How use and call AsyncTask into my code for upload data? ListNameValuePair nameValuePairs = new ArrayListNameValuePair(2); //you should put here your temp variable nameValuePairs.add(new BasicNameValuePair(temperature, String.valueOf(30))); HttpPost request =

[android-developers] How i call class into my activity?

2012-12-17 Thread Antonis Kanaris
Hello i find this class for upload data...but how i call it from my Activity?On create... public class SimpleHttpPut { public static void main(String[] args) { HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost(http://www.power7.net/temp.php;);

[android-developers] How will combine download and then upload in a loop?

2012-12-18 Thread Antonis Kanaris
I make an Android application for download a variable from my webserver (use AsyncTask) and then send it to bluetooth.I make it with loop (handler,postdelayed).I make a receive function from bluetooth and display the insert new data temperature.I know how i upload i make a class and work in

[android-developers] How i getting a value out of the function?

2012-12-18 Thread Antonis Kanaris
Hello.I make an apk for listen bluetooth and i want to get value data from function ListenBt() to pass to another function upload().I make public final string data but no work!Any help? public class Activity2 extends Activity { public String strValue; public String strValue2;

[android-developers] Re: How i getting a value out of the function?

2012-12-18 Thread Antonis Kanaris
I try it but no work... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] How i convert upload code to AsyncTask?

2012-12-18 Thread Antonis Kanaris
How i convert this class code with AsyncTask method? public class SimpleHttpPut { public static void main(String urlt,int t) { HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost(urlt); try { ListNameValuePair

[android-developers] Problem exit,close my application...

2012-12-19 Thread Antonis Kanaris
I make an application download data from web send to bluetooth,listen bluetooth and upload to web with loopbut when push button close my apk freeze...no work... /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) {

[android-developers] How i send data from intent service to Main activity?

2012-12-23 Thread Antonis Kanaris
Hello.I make an intent service for download data and store to a string.How i pass the data (string s inside my code) to main activity? i try this code... public class DownloadService extends IntentService { private int result = Activity.RESULT_CANCELED;public String s = ; public

[android-developers] How i remove my old apk and publish update on google play market?

2012-12-27 Thread Antonis Kanaris
How i remove my old apk and publish update on google play market?I publish my apk but i put something extra to my code...I make unpublish...but how i delete the old and upload new? -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] How i upload my battery level data to my web server with service?

2013-01-02 Thread Antonis Kanaris
How i upload my battery level data to my web server with service?I try this code but no work...any help?What is wrong? public class BatteryLevel extends Activity { private TextView contentTxt; String strUrlup =http://bat_android.php; String textbat; private BroadcastReceiver

[android-developers] Problem upload location with service and broadcast receiver

2013-01-05 Thread Antonis Kanaris
Hello.I try upload location with service and broadcast receiver...but no worki have make for battery level and workmanifest is okthis is my code. private void buttonGetLocationClick() { getCurrentLocation(); // gets the current location and update

[android-developers] I can not choice in eclipse Qvga 240x320

2013-01-08 Thread Antonis Kanaris
I can not choice in eclipse Qvga 240x320 2.7 for small layout.Graphical layout no work...I have message Exception raised during rendering: Index: 1, Size: 1 Exception details are logged in Window Show View Error Log Why? How i fix it? Avd manager is ok. -- You received this

[android-developers] Help for stop service with Alarm Manager

2013-01-13 Thread Antonis Kanaris
I have created the start alarm as shown below public class MyScheduleReceiver extends BroadcastReceiver { // Restart service every 30 secondsprivate static final long REPEAT_TIME = 1000 * 5; @Overridepublic void onReceive(Context context, Intent intent) { AlarmManager service =

[android-developers] How i pass downloaddata to my main activity?

2013-01-14 Thread Antonis Kanaris
Hello.I have an downloadservice.class for download data and i call it from main activity inside onCreate.How i pass download data to main activity for display as text? public class DownloadService extends IntentService { public String response; public DownloadService()

[android-developers] How do I fix error open Bluetooth?

2013-01-16 Thread Antonis Kanaris
I created an application with bluetooth, but when bluetooth is closed i put enable request for open bt but apk crashing,close after show toast request for user and must restart the apk and I have this error... * java.lang.NullPointerException* in *io.webbt.Activity2.openBT.Any idea?I must

[android-developers] problem samsung android.graphics.Bitmap.createScaledBitmap

2013-01-22 Thread Antonis Kanaris
Hello i create an application with camera and resize the photo 640x480.In my smartphone android sony ericsson work but no work Samsung Galaxy Tablet.I have this error java.lang.NullPointerException at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:432) at

[android-developers] How i connect from android to another cellphone with (DUN or PAN)?

2013-02-12 Thread Antonis Kanaris
I create a simple bluetooth terminal for android and i want to connect with other cellphone not android support uuid=1115(PAN) with personal area networkand share internet connection to android.How i do this?I know for (DUN) is AT+CGDCONT=1,IP,APN...and after dial with ATD*99***1#