|
I am working on an Android app which I need to send text file to WiFi printer(my printer doesnt support direct wifi .it is share on my wifi). I don't want to download app or use Google Cloud etc. It must be in my app. As I know there is no specific Android library which can search for available printers, let the user to select and send a file to it. or there is? All answers of similar questions of mine are about downloading app etc. there isn't any code example about sending files to printer.So I would really appreciate if someone show a way.
|
|
|
|
|
I use this code to redirect aspx page :
in locahost that run open Default.aspx page
but in http://tracklocation.somee.com/LocationService.asmx
it do not any thing . Somebody help me
[WebMethod]
public string DataLocation(string location)
{
string url = "http://tracklocation.somee.com/Default.aspx?id=" + location
Context.Response.Redirect(url);
location = Server.UrlDecode(location);
return location;
}
modified 15-Mar-14 10:50am.
|
|
|
|
|
What's that got to do with Android? This looks like ASP.NET, which should be in the ASP.NET forum[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Is GCM(Google cloud messaging) is compulsory need google account to received push notifications android applications.
|
|
|
|
|
|
I want to implement push notifications in my android applications is it any way to implement without using GCM(Google cloud messaging).
|
|
|
|
|
Why have you posted the same question twice three times?! If you want to change your question, there's an "Edit" button at the bottom of your posts.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
you can go with notification alert
setContentView(R.layout.notification_alert);
/*********** Create notification ***********/
final NotificationManager mgr=(NotificationManager)this.getSystemService(Context.NOTIFICATION_SERVICE);
Notification note=new Notification(R.drawable.stat_notify_chat,
"Your Status message!",
System.currentTimeMillis());
// This pending intent will open after notification click
PendingIntent i=PendingIntent.getActivity(this, 0,
new Intent(this, NotifyMessage.class),
0);
note.setLatestEventInfo(this, "Your Notification Title",
"This is the Your notification message", i);
//After uncomment this line you will see number of notification arrived
//note.number=2;
mgr.notify(NOTIFY_ME_ID, note);
Regards,
|
|
|
|
|
I want to implement push notifications in my android apps.what is the best way to implement.
|
|
|
|
|
setContentView(R.layout.notification_alert);
/*********** Create notification ***********/
final NotificationManager mgr=
(NotificationManager)this.getSystemService(Context.NOTIFICATION_SERVICE);
Notification note=new Notification(R.drawable.stat_notify_chat,
"Android Example Status message!",
System.currentTimeMillis());
// This pending intent will open after notification click
PendingIntent i=PendingIntent.getActivity(this, 0,
new Intent(this, NotifyMessage.class),
0);
note.setLatestEventInfo(this, "Android Example Notification Title",
"This is the android example notification message", i);
//After uncomment this line you will see number of notification arrived
//note.number=2;
mgr.notify(NOTIFY_ME_ID, note);
|
|
|
|
|
i want to expense manager coding with android,
|
|
|
|
|
|
How can i play the sound file in ASP.net i'm traing with this code but doesn't work for me.
'Dim player As New System.Media.SoundPlayer
' player.SoundLocation = ("\\servidor\sonidos\error.wav")
' player.Play()
other
Dim sp As SoundPlayer
sp = New SoundPlayer(My.Resources._error)
sp.Play()
Thanks a lot for your help.
|
|
|
|
|
Please do not post the same question in multiple forums.
|
|
|
|
|
when send data to web form then throws exception
android.os.NetworkOnMainThreadException
I do not what misstask. Somebody help me
Here my code:
I have asp page in address http://tracklocation.somee.com/Default.aspx[^]
private String SendData(){
String page="";
try {
try
{
sVariable = URLEncoder.encode("id;96.2122;106.12343", "UTF-8");
}
catch (UnsupportedEncodingException e1)
{
// TODO Auto-generated catch block
e1.printStackTrace();
}
URI tURI = new URI("http://tracklocation.somee.com/Default.aspx");
HttpClient httpClient = new DefaultHttpClient();
HttpGet pageGet = new HttpGet(tURI);
HttpPost pagePost = new HttpPost(tURI);
HttpResponse response = httpClient.execute(pagePost);
} catch (ClientProtocolException e) {
e.printStackTrace();
return page;
} catch (IOException e) {
e.printStackTrace();
return page;
} catch (Exception e) {
e.printStackTrace();
page = e.toString();
}
return page;
}
|
|
|
|
|
Here you could find answer. Clickety[^]
thatrajaCode converters | Education Needed
No thanks, I am all stocked up. - Luc Pattyn
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute
|
|
|
|
|
Hi,
Here u need asynctask Class. Because the above code that is working on Main Thread. Normally when u request from client to particular url it will take some time for getting response.in this time the entire work is depend on Main Thread. So Better touse Asynctask class.
|
|
|
|
|
What will happen while Asynctask is running, when Screen Orientation is change?
|
|
|
|
|
screen orientation is changed when activity is being loaded.
|
|
|
|
|
how can i get informations from a particular website for my app? please any one give a quick answer...
|
|
|
|
|
Answer on it's way...Oh...There is a problem, you didn't asked a question at all!
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
Member 10664040 wrote: please any one give a quick answer... Few options here
0) Web service[^]
1) RSS[^]
2) Web scraping[^]
N) Use Google for more details
thatrajaCode converters | Education Needed
No thanks, I am all stocked up. - Luc Pattyn
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is - Henry Minute
|
|
|
|
|
how to create an app using android?
|
|
|
|
|
Try to learn - start with Goole?
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
i have developed an Call recording application. it works absolutely right. i managed to show all recorded audio files to listView and managed to play these files from listView. i Have created a database to show the Caller number into listView. the database is working right and it Inserting and Selecting the data from database. know i want to show the database data into ListView. How can i do this plz help. thanks. i'm uploading the code for you to understand.
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
listView = (ListView) findViewById(R.id.mylist);
mp = new MediaPlayer();
// database
getData = new CallerDatabase(MainActivity.this);
getData.open();
receivedData = getData.retrieveData();
getData.close();
Toast.makeText(this, ""+receivedData, Toast.LENGTH_SHORT).show();
FileDataPathForArrayList();
}
private void FileDataPathForArrayList() {
// this will show the recorded files into ListVIew
myList = new ArrayList<String>();
File files = new File(MEDIA_PATH);
File list[] = files.listFiles();
for (int i = 0; i < list.length; i++) {
myList.add(list[i].getName());
}
know how can i show the database data in this ArrayAdapter?
adapter = new ArrayAdapter<String>(this, R.layout.rowlayout,
R.id.label, myList);
listView.setAdapter(adapter);
|
|
|
|