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
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
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
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
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
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
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
Τη Παρασκευή, 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
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
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
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
Τη Παρασκευή, 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
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
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
Τη Παρασκευή, 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
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);
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
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
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) {
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
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();
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)
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);
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);
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);
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) {
Τη Παρασκευή, 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
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);
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
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 =
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;);
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
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;
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
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
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) {
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
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
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
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
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
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 =
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()
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
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
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#
46 matches
Mail list logo