|
|
no problem, i think this is waste. if you provide code than answer me
|
|
|
|
|
It would help if you first read HOW TO ASK A QUESTION[^] and explained exactly what your problem is. But please do not expect someone to hand you a complete solution.
|
|
|
|
|
ok, no problem but hand me a solution if possible...
|
|
|
|
|
Certainly, just send me $100,000.
|
|
|
|
|
|
|
Did you even bother reading here and here?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
I try to create a simple android mobile app. Using Eclips, I just use WebView control and target that control to a mobile web form/web page (by using loadUrl) which is asp.net page.
On asp page I try to create a pdf and try to open/download. I successfully create the pdf file. But fail to open that file in separate window (adobe reader) and also I am unable to download that file in device.
Please give some solution to open pdf in separate window (outside mobile app) or download the pdf file from server to local device.
Thanks in advance.
What I have tried:
WebView wv1=(WebView)findViewById(R.id.webView1);
wv1.setWebViewClient(new MyBrowser());
String url = "http://example.com/testprint.aspx";
wv1.loadUrl(url);
<html xmlns="w3.org/1999/xhtml"; > <body>
<mobile:Form id="Form1" runat="server">
<mobile:Command ID="Command1" Runat="server" OnClick="Command1_Click">Command</mobile:Command>
</mobile:Form> </body> </html>
string FilePath = Request.PhysicalApplicationPath + "\\MyPDF\\test.pdf";
Response.ContentType = "application/pdf";
Response.AppendHeader("Content-Disposition", "attachment; filename=test.pdf");
Response.TransmitFile(FilePath);
Response.End();
string FilePath = Request.PhysicalApplicationPath + "\\MyPDF\\test.pdf";
Response.ContentType = "application/octet-stream";
Response.AppendHeader("Content-Disposition", "attachment; filename=" + Path.GetFileName(_Path));
const int _bufferLength = 10000;
byte[] _buffer = new Byte[_bufferLength];
int _length = 0;
Stream _download = null;
try
{
_download = new FileStream(_Path, FileMode.Open, FileAccess.Read);
do
{
if (Response.IsClientConnected)
{
_length = _download.Read(_buffer, 0, _bufferLength);
Response.OutputStream.Write(_buffer, 0, _length);
_buffer = new Byte[_bufferLength];
}
else
{
_length = -1;
}
}
while (_length > 0);
Response.Flush();
Response.End();
}
finally
{
if (_download != null) _download.Close();
}
|
|
|
|
|
That looks more like an issue with ASP.NET.
|
|
|
|
|
Yes, the same issue I post there, but not getting any response. However, when I run that page directly on browser, it working fine. But when same page using on webview it do nothing. Is any permission require?
|
|
|
|
|
_Subrata_ wrote: Is any permission require? What does the Android documentation say?
|
|
|
|
|
|
Yes, I have faced the same problem that you are facing and I also want to know its solution.
|
|
|
|
|
i want to build an android app that can take a picture of a voucher or
credit numbers and recharge my phone automatic can you help plz
modified 24-Nov-17 12:14pm.
|
|
|
|
|
Read #2 here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Will Eclipse fit on a thumb drive so that I can work on the same project at my desk and then later on my NetBook away from the internet ?
I didn't see anything about that.
But then, with today's typical websites, I tend to miss about ninety nine percent of the content anyway.
|
|
|
|
|
Depends how big the thumb drive is.
|
|
|
|
|
8 Gb
If it won't fit on 8, how large a thumb drive do I need ?
|
|
|
|
|
You may think this a stupid answer, but obviously one that is big enough to contain whatever it is you want to put on it. You can look at the distribution size on the eclipse website, or wherever it is installed on your PC.
|
|
|
|
|
I am trying to avoid an installation on my Desktop machine, and just put it on the thumbdrive.
I was formerly in love with the PortableApps website.
They changed; a lot; a whole lot.
My romance with them disappeared as of the last time I saw their site.
|
|
|
|
|
C-P-User-3 wrote: ...and just put it on the thumbdrive. So why not just try it and see? That's the only way to know for sure.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
I have been researching this for a week and would like some more advice from someone who has experience.
My requirements are:
1. Easy to learn
2. Easy to debug
3. Free tutorials (and plenty to choose from)
4. Free implementation. (no paid services)
My app is going to teach language, and have some simple quizzes with pictures and mp3 sounds.
Because the quizzes will need to shuffle words around, a table- style database would suit best.
This means SQLite or MySQL database rather than JSON.
From what I can tell, probably the best language to communicate with SQL type databases is SQL.
Although it's not the easiest language to learn, there are plenty of free tutorials I can find.
Another alternative that looks attractive is web2py, because it seems geared to suit my project, and might be faster, however, it's less widely used and less teaching material is available, so I might get stuck.
Kotlin looks like a wonderful language to learn, but there are very few free tutorials.
Java seems unintuitive to me and I would prefer to avoid it.
I know that Java is the official language for Android, but from what I can tell, it’s not the easiest to learn for beginners or the most suitable for database heavy apps.
I won’t be needing to access any of the Android phone features, like camera/GPS etc.
I have tried to grasp Java already and found it very difficult.
I am hoping that there are alternatives to learning Java.
Could you please recommend:
1. Which language to learn,
2. What code editor is suitable for beginner (especially debugging),
3. What database GUI would be easy to use for this kind of project.
4. Any other software that would help.
Any advice would be appreciated.
|
|
|
|
|
I would recommend Android Studio, but it requires Java (which, with very few exceptions, I find easy to read and understand). If I had the time, I would try a few projects with using C#, C++, or maybe Kotlin.
Chessologist wrote: researching this for a week
1. Easy to learn
Although it's not the easiest language to learn,
it's less widely used and less teaching material is available, so I might get stuck.
but there are very few free tutorials.
it’s not the easiest to learn for beginners
found it very difficult.
I am hoping that there are alternatives
2. What code editor is suitable for beginner
I started on this journey nearly 30 years ago, long before the web and its endless supply of free stuff existed in its current format. There were no tutorials, gift-wrapped code, teaching materials, or code made to order. On occasion, you might could find some chatter on a Usenet group, but those took a long time to navigate and replies weren't imminent. Instead, everything that you needed had to come from your own hands, or at the very least, a trip to the library or book store. The concept of easy and difficult did not exist; you did what was required to get the job done. That might've taken months, but at the end of that, you had so much time invested, you were the de facto expert.
Alas, I'm a crock pot living in a microwave society.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|