Android network on main thread exception

Android-network-on-main-thread-exception-featured.gif

Android Bump Api Network on main thread exception

To begin with, I am quite a new comer to the Android and JAVA world (originating from C/C++/Objective-C). I am attempting to integrate the Android bump API (3., latest version) but I am having trouble. I replicated the exemple, it’s working fine under Android 2.2, bump services are began properly, but for Android 3. and upper it doesn’t works. I have got an exception (the network on main thread one) when loading my activity, I understand this exception and just how to prevent it, however in this situation, Bump condition they run their API in their own individual thread and so i don’t fully realize why I first got it. They stated that you don’t have to operate a thread or tasks.

Android network on main thread exception1 Android network on main thread exception

This is a sample of my Activity

public class BumpActivity stretches Activity Funnel_CONFIRMED)
filter.addAction(BumpAPIIntents.DATA_RECEIVED)
filter.addAction(BumpAPIIntents.NOT_Matched up)
filter.addAction(BumpAPIIntents.Matched up)
filter.addAction(BumpAPIIntents.CONNECTED)
registerReceiver(receiver, filter)

@Override
public void onConfigurationChanged(Configuration newConfig)

private final ServiceConnection connection = new ServiceConnection() catch (RemoteException e)
Log.d(“Bump Test”, “Service connected”)

@Override
public void onServiceDisconnected(ComponentName className)

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)