15,895,746 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Darren_vms (Top 89 by date)
Darren_vms
14-Jun-18 15:02pm
View
It looks like the issue is caused by jtds, try using jtds-1.3.0 just to see if the problem is resolved
Darren_vms
25-Jan-18 5:09am
View
I noticed you had another issue https://www.codeproject.com/Questions/1223336/Android-registration-with-PHP-mysql-error with what looks like the same code reused in this example. You posted the stack trace for that one which is reporting
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.sajid.complainprotectioncell, PID: 2346
java.lang.NullPointerException: Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference
So your problem lies in CheckEditTextIsEmptyOrNot();
Darren_vms
23-Jan-18 6:33am
View
Do you have the correct activity defined in AndroidManifest.xml ?
Darren_vms
9-Feb-17 9:14am
View
I believe you can use both.
Darren_vms
6-Feb-17 8:12am
View
what happens when you run the same command from the command line with the same arguments ?
What is in /android/build.gradle ?
Darren
Darren_vms
22-Sep-16 6:06am
View
It is possible however you will need to select the sim and then send a message, it also depends on the hardware implementation by the manufacture. Android has no default way of doing this.
Darren_vms
21-Sep-16 7:19am
View
I would change the code to
while (toRotation < 0.0f) {
toRotation += 360.0f;
}
while (toRotation >= 360.0f) {
toRotation -= 360.0f;
}
That should work and give you a bearing.
Darren_vms
21-Sep-16 6:45am
View
did you try my fix ?
if (toRotation < 0)
{ toRotation = toRoatation + 360 ;}
Darren_vms
20-Sep-16 8:00am
View
You mentioned 3-4 minutes, if you double the buffer size does it take half the time to get the delay ? Thinking it could be something like heap size and the GC jumping in. Other than that I don't see a problem with the code.
Darren_vms
15-Sep-16 10:52am
View
So the rotation is calculated from
final float toRotation = prevLocation.bearingTo(location);
The documentation says
https://developer.android.com/reference/android/location/Location.html#bearingTo(android.location.Location)
Returns the approximate initial bearing in degrees East of true North when traveling along the shortest path between this location and the given location. The shortest path is defined using the WGS84 ellipsoid. Locations that are (nearly) antipodal may produce meaningless results.
While (toRotation < 0)
{ toRotation = toRoatation + 360 ;}
Darren
Darren_vms
15-Sep-16 9:35am
View
Deleted
So if you are getting the data from pubnub I don't understand the prevLocation it appears you are getting the GPS data.
private void rotateMarker(Location location,Location preLocation){
Location prevLocation = new Location(LocationManager.GPS_PROVIDER);
Maybe I miss understand but you are showing the client code ??? as that would only need the rotate the marker.
/Darren
Darren_vms
15-Sep-16 9:26am
View
My desktop also has powered USB even when shutdown, not sure how you would measure this without an external device. Just another dimension to think about.
Darren_vms
15-Sep-16 7:33am
View
pubnub appears to be just a relay system, driver gps data -> pubnub -> user. Still you need to check that the app is getting good valid data.
Darren_vms
14-Sep-16 11:34am
View
How are you getting the location (GPS/WIFI/BOTH) ?
Is that data 100% accurate or does it drop sometimes ?
Work out if locations are correct, and then you can start looking for a coding issue. if locations are dropped or bad data then you can correct the code and ignore them.
I mapped a push bike rides the other day and it reported I hit 56 mph for about 1 second. I know this is bad data because I would have remembered hitting that speed or pulled the breaks well before. It should be ignored.
Darren_vms
13-Sep-16 11:52am
View
this may sound like madness but try a smaller buffer say 40 bytes.
/Darren
Darren_vms
13-Sep-16 11:33am
View
That is what I thought I had been doing, helping. If you are saying I've been of no help then I guess you are entitled to your opinion. If you are asking me to write the code for you then I would have to decline. If I wrote the code i would rob you of the chance to improve and learn.
The code you found gets you 90% of the way, come on I know you can do it. Read a little, try things, look at the code and understand it.
When you have a pet project and that's the best time to learn, you want something so go out and get it. We are here to
help
chat, not write the application for you. That would be cheating and take me away from my real job which pays the bills so I can
help
chat to you on here.
Darren_vms
13-Sep-16 9:38am
View
Well that depends on the specs, does the user have to select a video or could they just play one after the other ?
Do you want the application to remember which video has been played and continue from the last one seen ?
I could ask more questions and the answer may change what I recommend.
Is this a pet project or something commercial ?
/Darren
Darren_vms
13-Sep-16 9:25am
View
The code from stackoverflow is only one part and is missing the playing the routine. If you was able to put that together yourself then you can solve this with the pointers I gave
Darren_vms
13-Sep-16 9:24am
View
keep saying the same thing over and over doesn't make it happen, perhaps you should read up on intents and passing between them.
Darren_vms
13-Sep-16 9:10am
View
ok so this is the code
http://www.androiddevelopersolutions.com/2013/12/android-play-video-from-sd-card.html
/Darren
Darren_vms
13-Sep-16 9:07am
View
Its not hard coding, You already have the call vv.setvideopath() in the code you provided, You present a listview the user selects one of the items. You then load the intent extra and call the intent to play the video. However my passing just the filename of the selected item from the listview you sort of shoot yourself in the foot for playing any more. Why don't you pass the media store ?
Your code looks a lot like http://stackoverflow.com/questions/20007342/how-to-get-list-of-video-files-in-a-specific-folder-in-android have you been working on this for two years ?
/Darren
Darren_vms
12-Sep-16 7:30am
View
Deleted
is this a format bug or the real code <java><c:if test="${result>=1}"></pre> wouldn't the correct format be
<c:if test="${result >=1}">
/Darren
Darren_vms
7-Sep-16 12:51pm
View
https://developer.android.com/reference/android/media/MediaCodec.html
Darren_vms
7-Sep-16 6:24am
View
No one is going to write the code for you, unless you are willing to pay with beer and bacon.
This will get you started it will play one video from the sd card. So you will have to work out how to scan a directory and loop around.
String SrcPath = "/sdcard/Video/how_to_use_google.mp4";
setContentView(R.layout.main);
VideoView myVideoView = (VideoView)findViewById(R.id.myvideoview); //This is a videoview in the xml
myVideoView.setVideoPath(SrcPath);
myVideoView.setMediaController(new MediaController(this));
myVideoView.requestFocus();
myVideoView.start();
With this basic example you should be able to research the rest.
Darren_vms
7-Sep-16 6:08am
View
Make setListAdapter(listAdapter); the last call
Darren_vms
7-Sep-16 5:26am
View
Are you talking about an application you have written ? Since Android 4.1 (Jelly Bean version), Android seems to provide access to hardware accelerated decoders at application level through JAVA APIs.
If you are talking about application from the play store or already pre built then I would say probably.
Darren_vms
5-Sep-16 9:12am
View
In the link provided you will see
for printing an image the coder does
byte[] sendData = null;
PrintPic pg = new PrintPic();
pg.initCanvas(384);
pg.initPaint();
pg.drawImage(0, 0, "/mnt/sdcard/myimage.jpg");
sendData = pg.printDraw(); !<--- render data first
mService.write(sendData);
You will need to render the PDF before printing
Darren_vms
5-Sep-16 6:40am
View
configuring the wireless camera is the key, with that setup displaying the data should be easy. with 100's of wireless cameras available it would be foolish for me to give advise on its setup. Google or youtube maybe your friend.
Darren_vms
16-Jun-16 6:38am
View
HttpResponse httpResponse = httpclient.execute(httpPost);
Should be called asynchronously, but I'm not sure if that is the problem.
Darren_vms
19-May-16 5:09am
View
Hacks or users ? for hack web site you visit then https://play.google.com/store/apps/details?id=org.mulliner.telstop
users on the other hand will always find a way unless you replace the dialler I feel.
Darren_vms
13-Apr-16 3:54am
View
google says...
http://www.codeforge.com/article/220087
Darren_vms
24-Dec-15 9:12am
View
Maybe you might get more help on https://groups.google.com/forum/?fromgroups#!forum/android-ide Id never heard of ide until I read this.
Darren_vms
24-Dec-15 8:04am
View
A guess but on the tablet did you change the SERVER address ?
Darren_vms
22-Dec-15 5:23am
View
try displaying the file with the font "Arial Unicode MS" this should work for both English text and Tamil.
Darren_vms
4-Dec-15 6:58am
View
I've not reviewed the code but the comment
/**
* This is where we can add markers or lines, add listeners or move the camera. In this case, we
* just add a marker near Africa.
* <p/>
* This should only be called once and when we are sure that {@link #mMap} is not null.
*/
Notice the near Africa ?
Darren_vms
23-Nov-15 3:23am
View
There are plenty of ways to debug your phonegap code on android:
o logcat
o Weinre: http://people.apache.org/~pmuellr/weinre/docs/latest/Home.html
o Chrome Remote Debugging (only Android 4.4+): https://developer.chrome.com/devtools/docs/remote-debugging
Darren_vms
12-Nov-15 5:13am
View
I have no knowledge of the tools or application but if I had to guess it could be folder names causing a failure when it fails to find the .exe
example:
C:\PROGRAM FILES\FILENAME.EXE
If you have another folder called
C:\PROGRAM it will look in that location and fail, you need to put the original execution line in double quotes "C:\PROGRAM FILES\FILENAME.EXE"
or rename the folders if you have no control over the execution location.
/Darren
Darren_vms
2-Apr-15 7:53am
View
so it works but you don't know what to do with the returned barcode scan ?
Darren_vms
2-Apr-15 6:06am
View
I would have to ask why ? is it important to low memory usage ? if so then java may not be the best language.
You can call repeatedly
System.gc();
this should reduce the heap and return memory and the number of times it needs to be called depends on the GC algorithm.
Darren_vms
2-Apr-15 5:06am
View
Is zxing (barcode scanner) installed ?
Does it work standalone ?
Darren_vms
2-Apr-15 4:39am
View
what are you expecting to happen when the image is made larger ? why do you feel this is a problem ?
Darren_vms
31-Mar-15 9:27am
View
Whilst it looks old, this may help you
https://groups.google.com/forum/#!topic/android-ndk/pUfqxURgNbQ
not sure on the version of gcc you are using but the thread mentions a patch is needed.
Darren_vms
31-Mar-15 9:04am
View
is this the problem
https://tracker.crystax.net/issues/833
Darren_vms
31-Mar-15 5:40am
View
Using your part number one web site reports "RJ45 and WiFi optional" and the manufacturers site didn't even mention it. Every site reported demo code and SDK but no link, do you have the code/SDK ?
Darren_vms
27-Mar-15 11:38am
View
I'm the same as Richard with regards to encryption but reading the java code it looks like its using padding whilst the c# has PaddingMode.None;
Darren_vms
23-Mar-15 6:12am
View
What are you saying, this code sample doesn't work ? the SMS is delivered even when abc123 is in the message ? what is the real problem ?
Darren_vms
18-Mar-15 10:17am
View
You need to put more effort into the question before any meaningful answer is going to come out.
You say secure do you mean all three systems are in the same room with a locked door and only you hold the key ?
Secure as in they need to login ?
Secure as in the data needs encrypting ?
Chat program is this text or voip ?
Do you really only need 2 clients or is that the minimum ?
Have you even search here on code project
http://www.codeproject.com/Articles/524120/A-Java-Chat-Application
Might not cover all your needs but its a start and may help you understand what might be needed.
Darren_vms
16-Mar-15 4:51am
View
Can't see anything else wrong, what happens if you debug the routine ?
Darren_vms
13-Mar-15 12:33pm
View
have you tried to call repaint()
Darren_vms
13-Mar-15 12:23pm
View
should have re read the above ignore ^^^^ (the idiot above asking questions)
Darren_vms
13-Mar-15 11:16am
View
is this when you change the combo box ?
Darren_vms
13-Mar-15 10:21am
View
could you post the exception
Darren_vms
13-Mar-15 9:18am
View
SMB = Server Message Block and it maybe Mozilla implements it, you could use JCIFS if all else fails https://jcifs.samba.org/
Darren_vms
13-Mar-15 9:10am
View
You could try
new File("\\\\server\\path\\to\\file.txt")
// (double-backslashes required for backslashes in path)
Not 100% but this could be windows only
Darren_vms
13-Mar-15 9:05am
View
and the problem is ?
Darren_vms
11-Mar-15 6:41am
View
Have you looked at
http://www.codeproject.com/Articles/119293/Using-SQLite-Database-with-Android
It may answer your question
/Darren
Darren_vms
3-Mar-15 5:42am
View
What make of phone ?
Some manufacturers have specific USB drivers. Try googling
samsung usb driver
htc usb driver
or whatever the phone is...
Darren_vms
27-Feb-15 11:14am
View
This may help you get started
http://www.codelearn.org/android-tutorial/twitter/introduction
Darren_vms
2-Jan-15 12:54pm
View
I know and I don't know what happened, when I looked the post was unanswered I went to mock up the code and noticed the return; so I posted. When I came back to look at the item your post was hours before mine so it made my post look dumb... perhaps I should refresh the tab just to make sure no one has answered in between.
Darren_vms
2-Jan-15 9:22am
View
This is an OS level operation and should have been performed before the user runs your application. So are you talking about listing all the available wifi hotspots and attempting to connect to one or just opening a socket that happens to be wifi ?
Darren_vms
15-Apr-14 4:24am
View
I've never seen it used like that, and looking at the docs http://docs.oracle.com/javase/tutorial/essential/io/pathOps.html I don't believe its possible
Darren_vms
2-Feb-14 17:01pm
View
http://www.achartengine.org/content/javadoc/org/achartengine/renderer/XYMultipleSeriesRenderer.html#setYLabelsColor(int, int)
Are you sure ?
Darren_vms
16-Jan-14 8:06am
View
doesn't this depend on how the images are stored ? if they are stored as individual items that all need one request each then threading might be the answer. Of course store them in chunks of 10-15 and each request loads 10-15 items.
Darren_vms
19-Dec-13 5:29am
View
When you say run, you mean in the emulator or on a live phone ?
What is 192.168.1.16 the same system you run the emulator on ?
Darren_vms
19-Dec-13 5:20am
View
Are we talking Adobe flash player, if so then look at how to restrict playing or security at the Adobe site. it's also worth mentioning Android no longer supports Adobe Flash Player, since June 2012. Adobe hasn't made a new version since then, and on Android 4.4 the player will not function.
Darren_vms
17-Dec-13 4:15am
View
Are you asking to play the flash only on that phone is that the restriction ? or does the device have restrictions ?
Darren_vms
5-Dec-13 3:51am
View
Have you contacted the Author ?
https://plus.google.com/+JeffTycz/posts
Darren_vms
5-Dec-13 3:48am
View
Don't see any question
Darren_vms
4-Oct-13 12:37pm
View
Perhaps provide people with an example of your code, if the file ends up in the adobe folder you are just using an intent to call whatever pdf reader is installed ? More information about how you are doing the action will help get you an answer....
Darren_vms
26-Feb-13 15:11pm
View
What you describe can be normal, the filter is simple. If you have a list of names and none of them begin with "z" type that in and they will all disappear. This type of filter will only match the beginning of words.
example :
one
two
three
type r nothing will show
type t (two and three should be left)
type th (three should be left)
if you want something better than this simple filter you need to create your own adapter and write the code.
Or you may just have a bug in the implementation :-)
I will tidy up what I have and send you a link.
/Darren
Darren_vms
24-Feb-13 13:03pm
View
Please check what you have posted and correct links if needed, adding code help people to understand what you are doing. As it stands this is unanswerable.
Darren_vms
8-Feb-13 10:41am
View
ok I tried, good luck
Darren_vms
6-Feb-13 6:09am
View
I noticed you added a few bugs to this, perhaps the problem lies in TextualMetaEvent.java or text.java
Darren_vms
3-Feb-13 14:35pm
View
I'm unable to see the images the site times out, did you try PinyinTest I pointed out on the link above ?
Darren_vms
8-Jan-13 12:25pm
View
So are you saying they don't appear, or because of a hardware limitation you can't press a button to get them to appear ?
Darren_vms
30-Dec-12 18:36pm
View
Mexcromex showed up nothing in Google, does the phone go by any other name ?
Darren_vms
3-Jul-12 10:30am
View
Are you talking about the colours (theme used) then the answer is no, Someone on 2.3.3 could have an ICS theme and your picker would look like it does on 4.0.3.
Having a custom control picker should get you around any other issues
Darren_vms
26-Jun-12 6:15am
View
seems to have been cut off during the transfer
Darren_vms
26-Apr-12 12:55pm
View
no you don't need a rooted phone, you have a wireless router that your pc is connected to ? then all you need to do is attach you phone to the wireless and reference the 192 address of the web server on your pc. failing that use the 3g network and use dynamic dns or something to present you pc on the internet.
Darren_vms
24-Apr-12 9:59am
View
so the API number for 1.5 is 3 and 15 is 4.0.3, set the manifest to 3 and see if the app still works. If you have called any API from a higher version the app will fail to compile.
Darren_vms
24-Apr-12 7:12am
View
http://www.codeproject.com/Articles/191930/Android-Usb-Port-Forwarding might be worth a read
Darren_vms
24-Apr-12 7:00am
View
so you need to get a network between the phone and website, wireless or 3g and change the address to that of the webserver
Darren_vms
13-Mar-12 5:12am
View
This works on the emulator and not on a phone and that is down to the address 10.0.2.2 (special loop back 127.0.0.1).
If you want this to work on a phone, you need to change the ip address. So if you are using wireless within your hub use the registered address from the hub. If your outside using 3g or another wireless network you will need to find the external address of your hub and allow a port forward)
Darren_vms
30-Nov-11 8:24am
View
what are you attempting to do, what code do you already have ?
Darren_vms
18-Nov-11 16:17pm
View
Just plug the phone in via usb and from eclipse hit the debug, that will deploy and run the application on the phone.
Darren_vms
16-Nov-11 6:42am
View
When you say read a pdf, are you using a library or intent to fire up the application ?
Darren_vms
15-Nov-11 6:19am
View
did you click on the UI elements XML link ? I'm sure that answers the problem.
Darren_vms
14-Nov-11 6:11am
View
You need to override onSaveInstanceState not call it and the same goes for onRestoreInstanceState.
Darren_vms
18-Jun-11 9:24am
View
good call and worth 5
Show More