• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Send UDP from Application

Hello ,
I'm new at android\java so be patient :)

I want to create a small application that send a udp string to my server when I press the button.
everything is working - but it doesn't seem to send
this is what I have

btnAction.setOnClickListener(new View.OnClickListener() {
@ override
public void onClick(View v) {

try {

String messageStr = "test!";
int server_port = 1111;
DatagramSocket s = new DatagramSocket();
InetAddress local = InetAddress.getByName("My.Public.Server.IP");
int msg_length = messageStr.length();
byte[] message = messageStr.getBytes();
DatagramPacket p = new DatagramPacket(message, msg_length, local,server_port);
s.send(p);
}
catch (Exception e) {

}



}
}

whant could be the reason for it?

Thanks ,

Help Getting google calendar to see hotmail calendar on 10+

That's possible: I would never have considered configuring on a PC as I don't use Outlook on a computer. Back when I last had Outlook installed on my phone there was no such option (believe me, I looked!), but that was a couple of years ago.

(My MS account primarily exists as a backup: I've had Google's subscriptions to shared (non-Google) calendars fall over a few times over the years, so like to have an alternative I can switch to by just toggling visibilities. Plus I refuse to be dependent on any individual company, so for anything important I always have alternatives in place).

Help Transferring files to and from Acer Iconia7 tablet

Hi again, if somebody is out there :rolleyes:,
Earlier I said I can access the file directory in the tablet by way of Storage/Apps/Running/File Manager/LAUNCH/usbotg-sda1/

Now, today, the File Manager step is no longer offered in this series. How can this change? But I have discovered it in the main Apps menu and I am working on discovering how to download files from the USB-OTG drive to the tablet.
This is not yet clear to me: can someone please help?

Accessibility

Hi Friends,

I am using accessibility service in my project and its working fine but some times this permission get "This service is Malfunctioning" error, at this time i am unable to get any call backs to my accessibility service.

please help me on this.

"my project"? Is this an app or something you're developing? Maybe there's a problem with your code?

Android Development questions might be better addressed here.
https://androidforums.com/forums/android-development.28/

I'm not a dev myself of course, so can't really help you. Good luck!

[ROM]-v9 GamerROM Classic Pro™ v1.03 Nexus 6P (angler) Updated: 10/15/2019

Changelog:

• Applied security patch "October 5, 2019" update.

• Updated MusicFX this adds a new equalizer application.

• Updated Android System Webview.

• Added Original Nexus 6P (angler) stock wallpaper.

• Removed LineageOS Updater and now uses Google System Updater.

• Improvements to system performance.

• Removed all apps requiring root access.

• Applied Security Patch "September 5, 2019" update.

• Updated all built-in system apps.

• Removed Google Opinion Rewards.

• Removed GR TV (is no longer supported and you can purchase GR TV from our website for only $4.99+tax USD.

• Improved system performance and stability.

• Replaced Google Gallery Go with LineageOS Gallery.

• Added Google Play Services AR.

• Replaced ASOP Gallery with Google Gallery Go.

• Applied vendor security patch date to the build prop

• Initial release.

MAC SPOOFING

your phone number is what's used by WhatsApp
I personally know of an exception. When I originally attempted to set up WhatsApp, because my phone did not get a signal in my house, I couldn't use its number to receive the verification code. I used my landline's number, and received the code by voice.

(This led to a bewildering problem later, when I got a new phone, but that's a WHOLE other story!)

Help Moving files from old phone to new G9+

Just use Samsung's Smart Switch utility to migrate your data from your old S5 to your new S9+. It's less of a hassle transferring things manually.
https://www.sammobile.com/samsung-smart-switch/
https://www.androidcentral.com/how-use-samsung-smart-switch
You can do this by installing Smart Switch on a computer -- S5 to computer then computer to S9+; or just use the Smart Switch app installed on both phones and do the transfer via Samsung's integral S Beam technology -- S5 to S9+. I'd recommend using a computer, that way you have a full back up of your data. Backups are important, if some of your files only exist on your S5 it's really important to get a backup solution set up.
Be sure to check your S9+ thoroughly to ensure everything you need has been copied over, and don't expect perfection. You might still need to copy some things over yourself. And there could be issues with things like app data, depending on the spread between the Android operating system spread between your two phones.

Help Is there a way to permanently block an app from asking for draw over permission?

"Draw over other apps" is not one of the permissions that Google offer individual control over even in Android 10, so if it won't accept "no" for an answer all I can suggest is finding a different keyboard.

(My wife's phone came with Touchpal, and she's generally not that particular about things like that, but a few months ago even she got fed up enough with it to replace it. It's been getting worse for years, and if this particular straw isn't the breaking point all of the evidence suggests that they'll come up with something else soon).

pretty good phone for the price

Glad you like the J7 Crown!

My just replaced Moto G4 also has (I kept it) a 5.5" screen and 16gb of storage with 2 gb of ram. Before that I lived with a Moto G 2013 with 8gb. it's amazing how many apps you can keep on some devices.They worked very well.

If it has all the features you need and you like interfacing with a Samsung, I do, you did very well.

The cheaper end of the market has much better devices these days

Apologies to the previous poster who read perhaps too quickly. I wasn't being anal, I was just bored :)

Filter

Back
Top Bottom